@proofhound/web-ui 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/annotation.d.ts +37 -16
- package/dist/hooks/annotation.d.ts.map +1 -1
- package/dist/hooks/canary-release.d.ts +62 -37
- package/dist/hooks/canary-release.d.ts.map +1 -1
- package/dist/hooks/dataset.d.ts +101 -0
- package/dist/hooks/dataset.d.ts.map +1 -1
- package/dist/hooks/dataset.js +27 -0
- package/dist/hooks/dataset.js.map +1 -1
- package/dist/hooks/optimization.d.ts +1 -1
- package/dist/hooks/production-release.d.ts +8 -4
- package/dist/hooks/production-release.d.ts.map +1 -1
- package/dist/hooks/prompt.d.ts +149 -38
- package/dist/hooks/prompt.d.ts.map +1 -1
- package/dist/hooks/prompt.js +20 -0
- package/dist/hooks/prompt.js.map +1 -1
- package/dist/hooks/release-line.d.ts +2522 -72
- package/dist/hooks/release-line.d.ts.map +1 -1
- package/dist/hooks/release-line.js +125 -0
- package/dist/hooks/release-line.js.map +1 -1
- package/dist/hooks/run-result.d.ts +9 -6
- package/dist/hooks/run-result.d.ts.map +1 -1
- package/dist/hooks/run-result.js +2 -1
- package/dist/hooks/run-result.js.map +1 -1
- package/dist/i18n/index.d.ts +652 -160
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +652 -160
- package/dist/i18n/index.js.map +1 -1
- package/dist/lib/releases/release-line-model.d.ts +8 -2
- package/dist/lib/releases/release-line-model.d.ts.map +1 -1
- package/dist/lib/releases/release-line-model.js +66 -29
- package/dist/lib/releases/release-line-model.js.map +1 -1
- package/dist/screens/annotations/annotation-detail-page.js +1 -1
- package/dist/screens/annotations/annotation-new-page.d.ts.map +1 -1
- package/dist/screens/annotations/annotation-new-page.js +213 -49
- package/dist/screens/annotations/annotation-new-page.js.map +1 -1
- package/dist/screens/annotations/annotation-task-model.d.ts +3 -2
- package/dist/screens/annotations/annotation-task-model.d.ts.map +1 -1
- package/dist/screens/annotations/annotation-task-model.js +5 -4
- package/dist/screens/annotations/annotation-task-model.js.map +1 -1
- package/dist/screens/annotations/annotation-ui.d.ts.map +1 -1
- package/dist/screens/annotations/annotation-ui.js +9 -4
- package/dist/screens/annotations/annotation-ui.js.map +1 -1
- package/dist/screens/annotations/annotations-list-page.js +1 -1
- package/dist/screens/connectors/connector-detail-page.js +2 -2
- package/dist/screens/connectors/connector-detail-page.js.map +1 -1
- package/dist/screens/connectors/connector-form-page.js +1 -1
- package/dist/screens/connectors/connector-form-page.js.map +1 -1
- package/dist/screens/connectors/connector-ui.d.ts +6 -0
- package/dist/screens/connectors/connector-ui.d.ts.map +1 -1
- package/dist/screens/connectors/connector-ui.js +7 -1
- package/dist/screens/connectors/connector-ui.js.map +1 -1
- package/dist/screens/connectors/connectors-list-page.d.ts.map +1 -1
- package/dist/screens/connectors/connectors-list-page.js +5 -5
- package/dist/screens/connectors/connectors-list-page.js.map +1 -1
- package/dist/screens/dashboard/dashboard-screen.d.ts.map +1 -1
- package/dist/screens/dashboard/dashboard-screen.js +27 -15
- package/dist/screens/dashboard/dashboard-screen.js.map +1 -1
- package/dist/screens/datasets/dataset-mappers.js +1 -1
- package/dist/screens/datasets/dataset-mappers.js.map +1 -1
- package/dist/screens/datasets/dataset-types.d.ts +1 -1
- package/dist/screens/datasets/dataset-types.d.ts.map +1 -1
- package/dist/screens/datasets/dataset-ui.d.ts +1 -1
- package/dist/screens/datasets/dataset-ui.d.ts.map +1 -1
- package/dist/screens/datasets/dataset-ui.js +2 -2
- package/dist/screens/datasets/dataset-ui.js.map +1 -1
- package/dist/screens/datasets/datasets-list-page.d.ts.map +1 -1
- package/dist/screens/datasets/datasets-list-page.js +35 -24
- package/dist/screens/datasets/datasets-list-page.js.map +1 -1
- package/dist/screens/experiments/experiment-detail-page.js +1 -1
- package/dist/screens/experiments/experiment-detail-page.js.map +1 -1
- package/dist/screens/experiments/run-result-labels.d.ts.map +1 -1
- package/dist/screens/experiments/run-result-labels.js +3 -4
- package/dist/screens/experiments/run-result-labels.js.map +1 -1
- package/dist/screens/prompts/prompt-detail-page.d.ts.map +1 -1
- package/dist/screens/prompts/prompt-detail-page.js +9 -10
- package/dist/screens/prompts/prompt-detail-page.js.map +1 -1
- package/dist/screens/prompts/prompt-model.d.ts +5 -2
- package/dist/screens/prompts/prompt-model.d.ts.map +1 -1
- package/dist/screens/prompts/prompt-model.js +3 -1
- package/dist/screens/prompts/prompt-model.js.map +1 -1
- package/dist/screens/prompts/prompts-list-page.d.ts.map +1 -1
- package/dist/screens/prompts/prompts-list-page.js +44 -20
- package/dist/screens/prompts/prompts-list-page.js.map +1 -1
- package/dist/screens/releases/release-input-route-editor.d.ts +39 -0
- package/dist/screens/releases/release-input-route-editor.d.ts.map +1 -0
- package/dist/screens/releases/release-input-route-editor.js +355 -0
- package/dist/screens/releases/release-input-route-editor.js.map +1 -0
- package/dist/screens/releases/release-line-detail-page.d.ts +62 -0
- package/dist/screens/releases/release-line-detail-page.d.ts.map +1 -1
- package/dist/screens/releases/release-line-detail-page.js +1877 -323
- package/dist/screens/releases/release-line-detail-page.js.map +1 -1
- package/dist/screens/releases/release-line-ui.d.ts.map +1 -1
- package/dist/screens/releases/release-line-ui.js +55 -39
- package/dist/screens/releases/release-line-ui.js.map +1 -1
- package/dist/screens/releases/release-new-model.d.ts.map +1 -1
- package/dist/screens/releases/release-new-model.js +1 -6
- package/dist/screens/releases/release-new-model.js.map +1 -1
- package/dist/screens/releases/release-new-page.d.ts.map +1 -1
- package/dist/screens/releases/release-new-page.js +101 -66
- package/dist/screens/releases/release-new-page.js.map +1 -1
- package/dist/screens/releases/release-topology-canvas.d.ts +11 -2
- package/dist/screens/releases/release-topology-canvas.d.ts.map +1 -1
- package/dist/screens/releases/release-topology-canvas.js +1015 -174
- package/dist/screens/releases/release-topology-canvas.js.map +1 -1
- package/dist/screens/releases/releases-list-page.d.ts.map +1 -1
- package/dist/screens/releases/releases-list-page.js +81 -32
- package/dist/screens/releases/releases-list-page.js.map +1 -1
- package/package.json +5 -4
|
@@ -5,11 +5,12 @@ export declare function useAnnotationTaskList(projectId: string, enabled?: boole
|
|
|
5
5
|
id: string;
|
|
6
6
|
projectId: string;
|
|
7
7
|
name: string;
|
|
8
|
-
scope: "canary" | "online";
|
|
8
|
+
scope: "canary" | "online" | "all";
|
|
9
9
|
releaseLineId: string;
|
|
10
10
|
releaseLineName: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
releaseVersionId: string;
|
|
12
|
+
releaseVersionLabel: string;
|
|
13
|
+
releaseVersionScope: "exact" | "journey";
|
|
13
14
|
promptName: string;
|
|
14
15
|
promptVersionId: string;
|
|
15
16
|
promptVersionNumber: number | null;
|
|
@@ -18,7 +19,7 @@ export declare function useAnnotationTaskList(projectId: string, enabled?: boole
|
|
|
18
19
|
modelId: string;
|
|
19
20
|
modelName: string | null;
|
|
20
21
|
modelProvider: string | null;
|
|
21
|
-
status: "active" | "
|
|
22
|
+
status: "active" | "archived" | "completed";
|
|
22
23
|
progress: {
|
|
23
24
|
total: number;
|
|
24
25
|
pending: number;
|
|
@@ -43,10 +44,14 @@ export declare function useAnnotationTaskOptions(projectId: string, enabled?: bo
|
|
|
43
44
|
status: string;
|
|
44
45
|
promptName: string;
|
|
45
46
|
inputConnectorName: string | null;
|
|
46
|
-
|
|
47
|
+
versions: {
|
|
47
48
|
id: string;
|
|
48
49
|
releaseLineId: string;
|
|
49
50
|
label: string;
|
|
51
|
+
kind: "production" | "candidate";
|
|
52
|
+
productionVersionNumber: number | null;
|
|
53
|
+
targetProductionVersionNumber: number;
|
|
54
|
+
candidateNumber: number | null;
|
|
50
55
|
promptVersionId: string;
|
|
51
56
|
promptVersionNumber: number | null;
|
|
52
57
|
promptVersionLabel: string | null;
|
|
@@ -54,8 +59,16 @@ export declare function useAnnotationTaskOptions(projectId: string, enabled?: bo
|
|
|
54
59
|
modelId: string;
|
|
55
60
|
modelName: string | null;
|
|
56
61
|
modelProvider: string | null;
|
|
62
|
+
runResultCount: number;
|
|
57
63
|
canaryCount: number;
|
|
58
64
|
onlineCount: number;
|
|
65
|
+
journeyCanaryCount: number;
|
|
66
|
+
journeyOnlineCount: number;
|
|
67
|
+
journeyCompatible: boolean;
|
|
68
|
+
categoryCounts: {
|
|
69
|
+
category: string;
|
|
70
|
+
count: number;
|
|
71
|
+
}[];
|
|
59
72
|
}[];
|
|
60
73
|
}[];
|
|
61
74
|
total: number;
|
|
@@ -64,11 +77,12 @@ export declare function useAnnotationTask(projectId: string, taskId: string): im
|
|
|
64
77
|
id: string;
|
|
65
78
|
projectId: string;
|
|
66
79
|
name: string;
|
|
67
|
-
scope: "canary" | "online";
|
|
80
|
+
scope: "canary" | "online" | "all";
|
|
68
81
|
releaseLineId: string;
|
|
69
82
|
releaseLineName: string;
|
|
70
|
-
|
|
71
|
-
|
|
83
|
+
releaseVersionId: string;
|
|
84
|
+
releaseVersionLabel: string;
|
|
85
|
+
releaseVersionScope: "exact" | "journey";
|
|
72
86
|
promptName: string;
|
|
73
87
|
promptVersionId: string;
|
|
74
88
|
promptVersionNumber: number | null;
|
|
@@ -77,7 +91,7 @@ export declare function useAnnotationTask(projectId: string, taskId: string): im
|
|
|
77
91
|
modelId: string;
|
|
78
92
|
modelName: string | null;
|
|
79
93
|
modelProvider: string | null;
|
|
80
|
-
status: "active" | "
|
|
94
|
+
status: "active" | "archived" | "completed";
|
|
81
95
|
progress: {
|
|
82
96
|
total: number;
|
|
83
97
|
pending: number;
|
|
@@ -126,11 +140,12 @@ export declare function useCreateAnnotationTask(projectId: string): import("@tan
|
|
|
126
140
|
id: string;
|
|
127
141
|
projectId: string;
|
|
128
142
|
name: string;
|
|
129
|
-
scope: "canary" | "online";
|
|
143
|
+
scope: "canary" | "online" | "all";
|
|
130
144
|
releaseLineId: string;
|
|
131
145
|
releaseLineName: string;
|
|
132
|
-
|
|
133
|
-
|
|
146
|
+
releaseVersionId: string;
|
|
147
|
+
releaseVersionLabel: string;
|
|
148
|
+
releaseVersionScope: "exact" | "journey";
|
|
134
149
|
promptName: string;
|
|
135
150
|
promptVersionId: string;
|
|
136
151
|
promptVersionNumber: number | null;
|
|
@@ -139,7 +154,7 @@ export declare function useCreateAnnotationTask(projectId: string): import("@tan
|
|
|
139
154
|
modelId: string;
|
|
140
155
|
modelName: string | null;
|
|
141
156
|
modelProvider: string | null;
|
|
142
|
-
status: "active" | "
|
|
157
|
+
status: "active" | "archived" | "completed";
|
|
143
158
|
progress: {
|
|
144
159
|
total: number;
|
|
145
160
|
pending: number;
|
|
@@ -157,9 +172,15 @@ export declare function useCreateAnnotationTask(projectId: string): import("@tan
|
|
|
157
172
|
}, Error, {
|
|
158
173
|
name: string;
|
|
159
174
|
releaseLineId: string;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
175
|
+
releaseVersionId: string;
|
|
176
|
+
releaseVersionScope: "exact" | "journey";
|
|
177
|
+
scope: "canary" | "online" | "all";
|
|
178
|
+
samplingMode: "random" | "per_category";
|
|
179
|
+
sampleSize?: number | undefined;
|
|
180
|
+
categorySampleCounts?: {
|
|
181
|
+
category: string;
|
|
182
|
+
sampleSize: number;
|
|
183
|
+
}[] | undefined;
|
|
163
184
|
}, unknown>;
|
|
164
185
|
export declare function useClaimAnnotationSamples(projectId: string, taskId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
165
186
|
data: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotation.d.ts","sourceRoot":"","sources":["../../src/hooks/annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAQ1F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAI9D,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,UAAO
|
|
1
|
+
{"version":3,"file":"annotation.d.ts","sourceRoot":"","sources":["../../src/hooks/annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAQ1F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAI9D,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,UAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOtE;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,UAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOzE;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAMlE;AAED,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,yBAAyB,EACjC,eAAe,GAAE,mBAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAS7C;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YASxD;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAU1E;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAU1E;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;YAU3E"}
|
|
@@ -21,9 +21,9 @@ export declare function useCanaryRelease(projectId: string, canaryId: string): i
|
|
|
21
21
|
stopConditions: {
|
|
22
22
|
maxDurationSeconds: number | null;
|
|
23
23
|
maxSamples: number | null;
|
|
24
|
-
maxFailureRate: number | null;
|
|
25
24
|
} | null;
|
|
26
|
-
recordMode: "all" | "correct_only";
|
|
25
|
+
recordMode: "all" | "selected_categories" | "correct_only";
|
|
26
|
+
recordCategories: string[];
|
|
27
27
|
filterRules: import("@proofhound/shared").CanaryReleaseFilterNodeDto | null;
|
|
28
28
|
variableMapping: {
|
|
29
29
|
source: string;
|
|
@@ -50,6 +50,10 @@ export declare function useCanaryRelease(projectId: string, canaryId: string): i
|
|
|
50
50
|
tpmLimit: number;
|
|
51
51
|
concurrency: number;
|
|
52
52
|
temperature: number;
|
|
53
|
+
stopConditions?: {
|
|
54
|
+
maxDurationSeconds: number | null;
|
|
55
|
+
maxSamples: number | null;
|
|
56
|
+
} | null | undefined;
|
|
53
57
|
};
|
|
54
58
|
totalReceived: number;
|
|
55
59
|
totalProcessed: number;
|
|
@@ -77,9 +81,8 @@ export declare function useCanaryRelease(projectId: string, canaryId: string): i
|
|
|
77
81
|
targetDatasetName: string | null;
|
|
78
82
|
createdByName: string | null;
|
|
79
83
|
annotationTaskId: string | null;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
releaseVariantLabel: string | null;
|
|
84
|
+
releaseVersionId: string | null;
|
|
85
|
+
releaseVersionLabel: string | null;
|
|
83
86
|
}, Error>;
|
|
84
87
|
export declare function useCanaryAnnotations(projectId: string, canaryId: string, query?: CanaryAnnotationListQuery, refetchInterval?: AutoRefreshInterval): import("@tanstack/react-query").UseQueryResult<import("@proofhound/api-client").CanaryAnnotationListResponseDto, Error>;
|
|
85
88
|
export declare function useCreateCanaryRelease(projectId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
@@ -101,9 +104,9 @@ export declare function useCreateCanaryRelease(projectId: string): import("@tans
|
|
|
101
104
|
stopConditions: {
|
|
102
105
|
maxDurationSeconds: number | null;
|
|
103
106
|
maxSamples: number | null;
|
|
104
|
-
maxFailureRate: number | null;
|
|
105
107
|
} | null;
|
|
106
|
-
recordMode: "all" | "correct_only";
|
|
108
|
+
recordMode: "all" | "selected_categories" | "correct_only";
|
|
109
|
+
recordCategories: string[];
|
|
107
110
|
filterRules: import("@proofhound/shared").CanaryReleaseFilterNodeDto | null;
|
|
108
111
|
variableMapping: {
|
|
109
112
|
source: string;
|
|
@@ -130,6 +133,10 @@ export declare function useCreateCanaryRelease(projectId: string): import("@tans
|
|
|
130
133
|
tpmLimit: number;
|
|
131
134
|
concurrency: number;
|
|
132
135
|
temperature: number;
|
|
136
|
+
stopConditions?: {
|
|
137
|
+
maxDurationSeconds: number | null;
|
|
138
|
+
maxSamples: number | null;
|
|
139
|
+
} | null | undefined;
|
|
133
140
|
};
|
|
134
141
|
totalReceived: number;
|
|
135
142
|
totalProcessed: number;
|
|
@@ -157,9 +164,8 @@ export declare function useCreateCanaryRelease(projectId: string): import("@tans
|
|
|
157
164
|
targetDatasetName: string | null;
|
|
158
165
|
createdByName: string | null;
|
|
159
166
|
annotationTaskId: string | null;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
releaseVariantLabel: string | null;
|
|
167
|
+
releaseVersionId: string | null;
|
|
168
|
+
releaseVersionLabel: string | null;
|
|
163
169
|
}, Error, {
|
|
164
170
|
promptVersionId: string;
|
|
165
171
|
modelId: string;
|
|
@@ -168,7 +174,8 @@ export declare function useCreateCanaryRelease(projectId: string): import("@tans
|
|
|
168
174
|
trafficRatio: number;
|
|
169
175
|
trafficMode: "split" | "dual_run";
|
|
170
176
|
runMode: "manual" | "fixed_duration";
|
|
171
|
-
recordMode: "all" | "correct_only";
|
|
177
|
+
recordMode: "all" | "selected_categories" | "correct_only";
|
|
178
|
+
recordCategories: string[];
|
|
172
179
|
variableMapping: {
|
|
173
180
|
source: string;
|
|
174
181
|
target: string;
|
|
@@ -183,7 +190,6 @@ export declare function useCreateCanaryRelease(projectId: string): import("@tans
|
|
|
183
190
|
stopConditions: {
|
|
184
191
|
maxDurationSeconds: number | null;
|
|
185
192
|
maxSamples: number | null;
|
|
186
|
-
maxFailureRate: number | null;
|
|
187
193
|
} | null;
|
|
188
194
|
externalIdField: string;
|
|
189
195
|
annotationSchema: {
|
|
@@ -200,6 +206,10 @@ export declare function useCreateCanaryRelease(projectId: string): import("@tans
|
|
|
200
206
|
tpmLimit: number;
|
|
201
207
|
concurrency: number;
|
|
202
208
|
temperature: number;
|
|
209
|
+
stopConditions?: {
|
|
210
|
+
maxDurationSeconds: number | null;
|
|
211
|
+
maxSamples: number | null;
|
|
212
|
+
} | null | undefined;
|
|
203
213
|
};
|
|
204
214
|
name?: string | null | undefined;
|
|
205
215
|
description?: string | null | undefined;
|
|
@@ -223,9 +233,9 @@ export declare function useStartCanaryRelease(projectId: string): import("@tanst
|
|
|
223
233
|
stopConditions: {
|
|
224
234
|
maxDurationSeconds: number | null;
|
|
225
235
|
maxSamples: number | null;
|
|
226
|
-
maxFailureRate: number | null;
|
|
227
236
|
} | null;
|
|
228
|
-
recordMode: "all" | "correct_only";
|
|
237
|
+
recordMode: "all" | "selected_categories" | "correct_only";
|
|
238
|
+
recordCategories: string[];
|
|
229
239
|
filterRules: import("@proofhound/shared").CanaryReleaseFilterNodeDto | null;
|
|
230
240
|
variableMapping: {
|
|
231
241
|
source: string;
|
|
@@ -252,6 +262,10 @@ export declare function useStartCanaryRelease(projectId: string): import("@tanst
|
|
|
252
262
|
tpmLimit: number;
|
|
253
263
|
concurrency: number;
|
|
254
264
|
temperature: number;
|
|
265
|
+
stopConditions?: {
|
|
266
|
+
maxDurationSeconds: number | null;
|
|
267
|
+
maxSamples: number | null;
|
|
268
|
+
} | null | undefined;
|
|
255
269
|
};
|
|
256
270
|
totalReceived: number;
|
|
257
271
|
totalProcessed: number;
|
|
@@ -279,9 +293,8 @@ export declare function useStartCanaryRelease(projectId: string): import("@tanst
|
|
|
279
293
|
targetDatasetName: string | null;
|
|
280
294
|
createdByName: string | null;
|
|
281
295
|
annotationTaskId: string | null;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
releaseVariantLabel: string | null;
|
|
296
|
+
releaseVersionId: string | null;
|
|
297
|
+
releaseVersionLabel: string | null;
|
|
285
298
|
}, Error, string, unknown>;
|
|
286
299
|
export declare function useStopCanaryRelease(projectId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
287
300
|
id: string;
|
|
@@ -302,9 +315,9 @@ export declare function useStopCanaryRelease(projectId: string): import("@tansta
|
|
|
302
315
|
stopConditions: {
|
|
303
316
|
maxDurationSeconds: number | null;
|
|
304
317
|
maxSamples: number | null;
|
|
305
|
-
maxFailureRate: number | null;
|
|
306
318
|
} | null;
|
|
307
|
-
recordMode: "all" | "correct_only";
|
|
319
|
+
recordMode: "all" | "selected_categories" | "correct_only";
|
|
320
|
+
recordCategories: string[];
|
|
308
321
|
filterRules: import("@proofhound/shared").CanaryReleaseFilterNodeDto | null;
|
|
309
322
|
variableMapping: {
|
|
310
323
|
source: string;
|
|
@@ -331,6 +344,10 @@ export declare function useStopCanaryRelease(projectId: string): import("@tansta
|
|
|
331
344
|
tpmLimit: number;
|
|
332
345
|
concurrency: number;
|
|
333
346
|
temperature: number;
|
|
347
|
+
stopConditions?: {
|
|
348
|
+
maxDurationSeconds: number | null;
|
|
349
|
+
maxSamples: number | null;
|
|
350
|
+
} | null | undefined;
|
|
334
351
|
};
|
|
335
352
|
totalReceived: number;
|
|
336
353
|
totalProcessed: number;
|
|
@@ -358,9 +375,8 @@ export declare function useStopCanaryRelease(projectId: string): import("@tansta
|
|
|
358
375
|
targetDatasetName: string | null;
|
|
359
376
|
createdByName: string | null;
|
|
360
377
|
annotationTaskId: string | null;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
releaseVariantLabel: string | null;
|
|
378
|
+
releaseVersionId: string | null;
|
|
379
|
+
releaseVersionLabel: string | null;
|
|
364
380
|
}, Error, string, unknown>;
|
|
365
381
|
export declare function useResumeCanaryRelease(projectId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
366
382
|
id: string;
|
|
@@ -381,9 +397,9 @@ export declare function useResumeCanaryRelease(projectId: string): import("@tans
|
|
|
381
397
|
stopConditions: {
|
|
382
398
|
maxDurationSeconds: number | null;
|
|
383
399
|
maxSamples: number | null;
|
|
384
|
-
maxFailureRate: number | null;
|
|
385
400
|
} | null;
|
|
386
|
-
recordMode: "all" | "correct_only";
|
|
401
|
+
recordMode: "all" | "selected_categories" | "correct_only";
|
|
402
|
+
recordCategories: string[];
|
|
387
403
|
filterRules: import("@proofhound/shared").CanaryReleaseFilterNodeDto | null;
|
|
388
404
|
variableMapping: {
|
|
389
405
|
source: string;
|
|
@@ -410,6 +426,10 @@ export declare function useResumeCanaryRelease(projectId: string): import("@tans
|
|
|
410
426
|
tpmLimit: number;
|
|
411
427
|
concurrency: number;
|
|
412
428
|
temperature: number;
|
|
429
|
+
stopConditions?: {
|
|
430
|
+
maxDurationSeconds: number | null;
|
|
431
|
+
maxSamples: number | null;
|
|
432
|
+
} | null | undefined;
|
|
413
433
|
};
|
|
414
434
|
totalReceived: number;
|
|
415
435
|
totalProcessed: number;
|
|
@@ -437,9 +457,8 @@ export declare function useResumeCanaryRelease(projectId: string): import("@tans
|
|
|
437
457
|
targetDatasetName: string | null;
|
|
438
458
|
createdByName: string | null;
|
|
439
459
|
annotationTaskId: string | null;
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
releaseVariantLabel: string | null;
|
|
460
|
+
releaseVersionId: string | null;
|
|
461
|
+
releaseVersionLabel: string | null;
|
|
443
462
|
}, Error, string, unknown>;
|
|
444
463
|
export declare function useCancelCanaryRelease(projectId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
445
464
|
id: string;
|
|
@@ -460,9 +479,9 @@ export declare function useCancelCanaryRelease(projectId: string): import("@tans
|
|
|
460
479
|
stopConditions: {
|
|
461
480
|
maxDurationSeconds: number | null;
|
|
462
481
|
maxSamples: number | null;
|
|
463
|
-
maxFailureRate: number | null;
|
|
464
482
|
} | null;
|
|
465
|
-
recordMode: "all" | "correct_only";
|
|
483
|
+
recordMode: "all" | "selected_categories" | "correct_only";
|
|
484
|
+
recordCategories: string[];
|
|
466
485
|
filterRules: import("@proofhound/shared").CanaryReleaseFilterNodeDto | null;
|
|
467
486
|
variableMapping: {
|
|
468
487
|
source: string;
|
|
@@ -489,6 +508,10 @@ export declare function useCancelCanaryRelease(projectId: string): import("@tans
|
|
|
489
508
|
tpmLimit: number;
|
|
490
509
|
concurrency: number;
|
|
491
510
|
temperature: number;
|
|
511
|
+
stopConditions?: {
|
|
512
|
+
maxDurationSeconds: number | null;
|
|
513
|
+
maxSamples: number | null;
|
|
514
|
+
} | null | undefined;
|
|
492
515
|
};
|
|
493
516
|
totalReceived: number;
|
|
494
517
|
totalProcessed: number;
|
|
@@ -516,9 +539,8 @@ export declare function useCancelCanaryRelease(projectId: string): import("@tans
|
|
|
516
539
|
targetDatasetName: string | null;
|
|
517
540
|
createdByName: string | null;
|
|
518
541
|
annotationTaskId: string | null;
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
releaseVariantLabel: string | null;
|
|
542
|
+
releaseVersionId: string | null;
|
|
543
|
+
releaseVersionLabel: string | null;
|
|
522
544
|
}, Error, string, unknown>;
|
|
523
545
|
export declare function useUpdateCanaryTrafficRatio(projectId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
524
546
|
id: string;
|
|
@@ -539,9 +561,9 @@ export declare function useUpdateCanaryTrafficRatio(projectId: string): import("
|
|
|
539
561
|
stopConditions: {
|
|
540
562
|
maxDurationSeconds: number | null;
|
|
541
563
|
maxSamples: number | null;
|
|
542
|
-
maxFailureRate: number | null;
|
|
543
564
|
} | null;
|
|
544
|
-
recordMode: "all" | "correct_only";
|
|
565
|
+
recordMode: "all" | "selected_categories" | "correct_only";
|
|
566
|
+
recordCategories: string[];
|
|
545
567
|
filterRules: import("@proofhound/shared").CanaryReleaseFilterNodeDto | null;
|
|
546
568
|
variableMapping: {
|
|
547
569
|
source: string;
|
|
@@ -568,6 +590,10 @@ export declare function useUpdateCanaryTrafficRatio(projectId: string): import("
|
|
|
568
590
|
tpmLimit: number;
|
|
569
591
|
concurrency: number;
|
|
570
592
|
temperature: number;
|
|
593
|
+
stopConditions?: {
|
|
594
|
+
maxDurationSeconds: number | null;
|
|
595
|
+
maxSamples: number | null;
|
|
596
|
+
} | null | undefined;
|
|
571
597
|
};
|
|
572
598
|
totalReceived: number;
|
|
573
599
|
totalProcessed: number;
|
|
@@ -595,9 +621,8 @@ export declare function useUpdateCanaryTrafficRatio(projectId: string): import("
|
|
|
595
621
|
targetDatasetName: string | null;
|
|
596
622
|
createdByName: string | null;
|
|
597
623
|
annotationTaskId: string | null;
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
releaseVariantLabel: string | null;
|
|
624
|
+
releaseVersionId: string | null;
|
|
625
|
+
releaseVersionLabel: string | null;
|
|
601
626
|
}, Error, {
|
|
602
627
|
canaryId: string;
|
|
603
628
|
body: UpdateCanaryTrafficRatioInputDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canary-release.d.ts","sourceRoot":"","sources":["../../src/hooks/canary-release.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,KAAK,EAKV,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAI9D,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,UAAO,wHAOrE;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"canary-release.d.ts","sourceRoot":"","sources":["../../src/hooks/canary-release.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,KAAK,EAKV,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;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AmD,CAAC;;;;;;;;;sBAAsS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA7F/pO;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA2F4xS,CAAC;;;;;;;;;;;aAA0T,CAAC;kBAAmD,CAAC;;;;;;;;;sBAAsS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAjF1+T;AAED,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA+EspY,CAAC;;;;;;;;;;;aAA0T,CAAC;kBAAmD,CAAC;;;;;;;;;sBAAsS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAxE11Z,MAAM;UACV,gCAAgC;YAS3C;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM;;;cAQxC,MAAM;YACR,OAAO;aACN,MAAM;YAOpB;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;YAc5E;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAW5E;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;YAW7E"}
|
package/dist/hooks/dataset.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ interface UpdateDatasetVariables {
|
|
|
11
11
|
datasetId: string;
|
|
12
12
|
body: UpdateDatasetMetadataDto;
|
|
13
13
|
}
|
|
14
|
+
interface DatasetLifecycleVariables {
|
|
15
|
+
datasetId: string;
|
|
16
|
+
}
|
|
14
17
|
export declare function useDatasets(projectId: string): import("@tanstack/react-query").UseQueryResult<{
|
|
15
18
|
data: DatasetListItemDto[];
|
|
16
19
|
total: number;
|
|
@@ -19,6 +22,7 @@ export declare function useDataset(projectId: string, datasetId: string): import
|
|
|
19
22
|
id: string;
|
|
20
23
|
projectId: string;
|
|
21
24
|
name: string;
|
|
25
|
+
status: "active" | "archived";
|
|
22
26
|
description: string | null;
|
|
23
27
|
sampleCount: number;
|
|
24
28
|
fieldSchema: {
|
|
@@ -44,8 +48,35 @@ export declare function useDataset(projectId: string, datasetId: string): import
|
|
|
44
48
|
createdByDisplayName: string | null;
|
|
45
49
|
createdAt: string;
|
|
46
50
|
updatedAt: string;
|
|
51
|
+
archivedAt: string | null;
|
|
47
52
|
deletedAt: string | null;
|
|
48
53
|
}, Error>;
|
|
54
|
+
export declare function useDatasetDeleteImpact(projectId: string, datasetId: string): import("@tanstack/react-query").UseQueryResult<{
|
|
55
|
+
datasetId: string;
|
|
56
|
+
experiments: {
|
|
57
|
+
id: string;
|
|
58
|
+
kind: "experiment" | "optimization";
|
|
59
|
+
name: string | null;
|
|
60
|
+
status: string | null;
|
|
61
|
+
datasetId: string | null;
|
|
62
|
+
promptId: string | null;
|
|
63
|
+
promptVersionId: string | null;
|
|
64
|
+
promptVersionNumber: number | null;
|
|
65
|
+
createdAt: string | null;
|
|
66
|
+
}[];
|
|
67
|
+
optimizations: {
|
|
68
|
+
id: string;
|
|
69
|
+
kind: "experiment" | "optimization";
|
|
70
|
+
name: string | null;
|
|
71
|
+
status: string | null;
|
|
72
|
+
datasetId: string | null;
|
|
73
|
+
promptId: string | null;
|
|
74
|
+
promptVersionId: string | null;
|
|
75
|
+
promptVersionNumber: number | null;
|
|
76
|
+
createdAt: string | null;
|
|
77
|
+
}[];
|
|
78
|
+
total: number;
|
|
79
|
+
}, Error>;
|
|
49
80
|
export interface DatasetSamplesQuery {
|
|
50
81
|
page: number;
|
|
51
82
|
pageSize: number;
|
|
@@ -67,6 +98,7 @@ export declare function useCreateDataset(projectId: string): import("@tanstack/r
|
|
|
67
98
|
id: string;
|
|
68
99
|
projectId: string;
|
|
69
100
|
name: string;
|
|
101
|
+
status: "active" | "archived";
|
|
70
102
|
description: string | null;
|
|
71
103
|
sampleCount: number;
|
|
72
104
|
fieldSchema: {
|
|
@@ -92,6 +124,7 @@ export declare function useCreateDataset(projectId: string): import("@tanstack/r
|
|
|
92
124
|
createdByDisplayName: string | null;
|
|
93
125
|
createdAt: string;
|
|
94
126
|
updatedAt: string;
|
|
127
|
+
archivedAt: string | null;
|
|
95
128
|
deletedAt: string | null;
|
|
96
129
|
};
|
|
97
130
|
sampleCount: number;
|
|
@@ -100,6 +133,7 @@ export declare function useUpdateDataset(projectId: string): import("@tanstack/r
|
|
|
100
133
|
id: string;
|
|
101
134
|
projectId: string;
|
|
102
135
|
name: string;
|
|
136
|
+
status: "active" | "archived";
|
|
103
137
|
description: string | null;
|
|
104
138
|
sampleCount: number;
|
|
105
139
|
fieldSchema: {
|
|
@@ -125,9 +159,76 @@ export declare function useUpdateDataset(projectId: string): import("@tanstack/r
|
|
|
125
159
|
createdByDisplayName: string | null;
|
|
126
160
|
createdAt: string;
|
|
127
161
|
updatedAt: string;
|
|
162
|
+
archivedAt: string | null;
|
|
128
163
|
deletedAt: string | null;
|
|
129
164
|
}, Error, UpdateDatasetVariables, unknown>;
|
|
130
165
|
export declare function useDownloadDataset(projectId: string): import("@tanstack/react-query").UseMutationResult<import("@proofhound/api-client").DatasetDownloadResult, Error, DownloadDatasetVariables, unknown>;
|
|
166
|
+
export declare function useArchiveDataset(projectId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
167
|
+
id: string;
|
|
168
|
+
projectId: string;
|
|
169
|
+
name: string;
|
|
170
|
+
status: "active" | "archived";
|
|
171
|
+
description: string | null;
|
|
172
|
+
sampleCount: number;
|
|
173
|
+
fieldSchema: {
|
|
174
|
+
name: string;
|
|
175
|
+
role: "text" | "metadata" | "image" | "image_url" | "image_base64" | "expected_output";
|
|
176
|
+
type: "string" | "number" | "boolean" | "object" | "unknown" | "null" | "array";
|
|
177
|
+
}[];
|
|
178
|
+
categoryDistribution: {
|
|
179
|
+
field: string | null;
|
|
180
|
+
total: number;
|
|
181
|
+
categories: {
|
|
182
|
+
label: string;
|
|
183
|
+
count: number;
|
|
184
|
+
}[];
|
|
185
|
+
};
|
|
186
|
+
references: {
|
|
187
|
+
experiments: number;
|
|
188
|
+
optimizations: number;
|
|
189
|
+
};
|
|
190
|
+
hasImages: boolean;
|
|
191
|
+
storagePrefix: string | null;
|
|
192
|
+
createdBy: string;
|
|
193
|
+
createdByDisplayName: string | null;
|
|
194
|
+
createdAt: string;
|
|
195
|
+
updatedAt: string;
|
|
196
|
+
archivedAt: string | null;
|
|
197
|
+
deletedAt: string | null;
|
|
198
|
+
}, Error, DatasetLifecycleVariables, unknown>;
|
|
199
|
+
export declare function useRestoreDataset(projectId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
200
|
+
id: string;
|
|
201
|
+
projectId: string;
|
|
202
|
+
name: string;
|
|
203
|
+
status: "active" | "archived";
|
|
204
|
+
description: string | null;
|
|
205
|
+
sampleCount: number;
|
|
206
|
+
fieldSchema: {
|
|
207
|
+
name: string;
|
|
208
|
+
role: "text" | "metadata" | "image" | "image_url" | "image_base64" | "expected_output";
|
|
209
|
+
type: "string" | "number" | "boolean" | "object" | "unknown" | "null" | "array";
|
|
210
|
+
}[];
|
|
211
|
+
categoryDistribution: {
|
|
212
|
+
field: string | null;
|
|
213
|
+
total: number;
|
|
214
|
+
categories: {
|
|
215
|
+
label: string;
|
|
216
|
+
count: number;
|
|
217
|
+
}[];
|
|
218
|
+
};
|
|
219
|
+
references: {
|
|
220
|
+
experiments: number;
|
|
221
|
+
optimizations: number;
|
|
222
|
+
};
|
|
223
|
+
hasImages: boolean;
|
|
224
|
+
storagePrefix: string | null;
|
|
225
|
+
createdBy: string;
|
|
226
|
+
createdByDisplayName: string | null;
|
|
227
|
+
createdAt: string;
|
|
228
|
+
updatedAt: string;
|
|
229
|
+
archivedAt: string | null;
|
|
230
|
+
deletedAt: string | null;
|
|
231
|
+
}, Error, DatasetLifecycleVariables, unknown>;
|
|
131
232
|
export declare function useDeleteDataset(projectId: string): import("@tanstack/react-query").UseMutationResult<undefined, Error, string, unknown>;
|
|
132
233
|
export declare function useDeleteDatasetSamples(projectId: string, datasetId: string): import("@tanstack/react-query").UseMutationResult<{
|
|
133
234
|
deleted: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../src/hooks/dataset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,KAAK,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../src/hooks/dataset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,KAAK,EACV,gBAAgB,EAEhB,sBAAsB,EACtB,kBAAkB,EAElB,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAG5B,UAAU,sBAAuB,SAAQ,sBAAsB;IAC7D,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,UAAU,wBAAyB,SAAQ,sBAAsB;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,sBAAsB,CAAC;CAChC;AAED,UAAU,sBAAsB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,wBAAwB,CAAC;CAChC;AAED,UAAU,yBAAyB;IACjC,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM;;;UAO5C;AAED,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAM9D;AAED,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;UAM1E;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB;;;;;;;;;;UAajG;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAUjD;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAoBjD;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,uJAKnD;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAUlD;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAUlD;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,wFAWjD;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;YAW3E"}
|
package/dist/hooks/dataset.js
CHANGED
|
@@ -15,6 +15,13 @@ export function useDataset(projectId, datasetId) {
|
|
|
15
15
|
enabled: projectId.length > 0 && datasetId.length > 0,
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
export function useDatasetDeleteImpact(projectId, datasetId) {
|
|
19
|
+
return useQuery({
|
|
20
|
+
queryKey: ['datasets', projectId, datasetId, 'delete-impact'],
|
|
21
|
+
queryFn: () => datasetClient.getDatasetDeleteImpact(projectId, datasetId),
|
|
22
|
+
enabled: projectId.length > 0 && datasetId.length > 0,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
18
25
|
export function useDatasetSamples(projectId, datasetId, query) {
|
|
19
26
|
return useQuery({
|
|
20
27
|
queryKey: ['dataset-samples', projectId, datasetId, query.page, query.pageSize, query.search],
|
|
@@ -59,6 +66,26 @@ export function useDownloadDataset(projectId) {
|
|
|
59
66
|
mutationFn: ({ datasetId, format, onProgress }) => datasetClient.downloadDataset(projectId, datasetId, format, { onProgress }),
|
|
60
67
|
});
|
|
61
68
|
}
|
|
69
|
+
export function useArchiveDataset(projectId) {
|
|
70
|
+
const queryClient = useQueryClient();
|
|
71
|
+
return useMutation({
|
|
72
|
+
mutationFn: ({ datasetId }) => datasetClient.archiveDataset(projectId, datasetId),
|
|
73
|
+
onSuccess: (dataset) => {
|
|
74
|
+
void queryClient.invalidateQueries({ queryKey: ['datasets', projectId] });
|
|
75
|
+
queryClient.setQueryData(['datasets', projectId, dataset.id], dataset);
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export function useRestoreDataset(projectId) {
|
|
80
|
+
const queryClient = useQueryClient();
|
|
81
|
+
return useMutation({
|
|
82
|
+
mutationFn: ({ datasetId }) => datasetClient.restoreDataset(projectId, datasetId),
|
|
83
|
+
onSuccess: (dataset) => {
|
|
84
|
+
void queryClient.invalidateQueries({ queryKey: ['datasets', projectId] });
|
|
85
|
+
queryClient.setQueryData(['datasets', projectId, dataset.id], dataset);
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
}
|
|
62
89
|
export function useDeleteDataset(projectId) {
|
|
63
90
|
const queryClient = useQueryClient();
|
|
64
91
|
return useMutation({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../src/hooks/dataset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA+B,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../src/hooks/dataset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA+B,MAAM,wBAAwB,CAAC;AASpF,OAAO,EAAE,WAAW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AC;YACjF,KAAK,WAAW,CAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;QAC1F,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,SAAiB,EAAE,SAAiB;IAC1E,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IAErC,OAAO,WAAW,CAAC;QACjB,UAAU,EAAE,CAAC,IAA6B,EAAE,EAAE,CAAC,aAAa,CAAC,oBAAoB,CAAC,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC;QAC7G,SAAS,EAAE,GAAG,EAAE;YACd,KAAK,WAAW,CAAC,iBAAiB,CAAC,EAAE,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;YAC1E,KAAK,WAAW,CAAC,iBAAiB,CAAC,EAAE,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;YACrF,KAAK,WAAW,CAAC,iBAAiB,CAAC,EAAE,QAAQ,EAAE,CAAC,iBAAiB,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;QAC9F,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -4,7 +4,7 @@ interface ControlOptimizationVariables {
|
|
|
4
4
|
optimizationId: string;
|
|
5
5
|
action: OptimizationControlActionDto;
|
|
6
6
|
}
|
|
7
|
-
export declare function getOptimizationListQueryKey(projectId: string, query?: OptimizationListQueryDto): readonly ["optimizations", string, "stopped" | "
|
|
7
|
+
export declare function getOptimizationListQueryKey(projectId: string, query?: OptimizationListQueryDto): readonly ["optimizations", string, "stopped" | "running" | "success" | "failed" | "all" | "cancelled", string, "round" | "updated" | "bestMetric"];
|
|
8
8
|
export declare function getOptimizationDetailQueryKey(projectId: string, optimizationId: string): readonly ["optimizations", string, string];
|
|
9
9
|
export declare function handleOptimizationCreated(queryClient: QueryClient, projectId: string, _created: OptimizationListItemDto): Promise<void>;
|
|
10
10
|
export declare function useOptimizations(projectId: string, query?: OptimizationListQueryDto): import("@tanstack/react-query").UseQueryResult<{
|