@pdfvector/instance-contract 0.0.36 → 0.0.37
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.
|
@@ -14,6 +14,18 @@ export declare const getFreeUsageRecords: import("@orpc/contract").ContractProce
|
|
|
14
14
|
documentType: z.ZodNullable<z.ZodString>;
|
|
15
15
|
pageCount: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
error: z.ZodNullable<z.ZodString>;
|
|
17
|
+
status: z.ZodEnum<{
|
|
18
|
+
success: "success";
|
|
19
|
+
user_error: "user_error";
|
|
20
|
+
system_error: "system_error";
|
|
21
|
+
}>;
|
|
22
|
+
errorStage: z.ZodNullable<z.ZodEnum<{
|
|
23
|
+
auth: "auth";
|
|
24
|
+
validation: "validation";
|
|
25
|
+
preprocessing: "preprocessing";
|
|
26
|
+
processing: "processing";
|
|
27
|
+
}>>;
|
|
28
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
17
29
|
duration: z.ZodNumber;
|
|
18
30
|
createdAt: z.ZodNumber;
|
|
19
31
|
}, z.core.$strip>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
|
+
import { errorStages, usageStatuses } from "@pdfvector/util";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
const freeUsageRecordSchema = z.object({
|
|
4
5
|
id: z.number(),
|
|
@@ -11,6 +12,9 @@ const freeUsageRecordSchema = z.object({
|
|
|
11
12
|
documentType: z.string().nullable(),
|
|
12
13
|
pageCount: z.number().nullable(),
|
|
13
14
|
error: z.string().nullable(),
|
|
15
|
+
status: z.enum(usageStatuses),
|
|
16
|
+
errorStage: z.enum(errorStages).nullable(),
|
|
17
|
+
errorCode: z.string().nullable(),
|
|
14
18
|
duration: z.number(),
|
|
15
19
|
createdAt: z.number(),
|
|
16
20
|
});
|
|
@@ -13,6 +13,18 @@ export declare const getUsageRecords: import("@orpc/contract").ContractProcedure
|
|
|
13
13
|
documentType: z.ZodString;
|
|
14
14
|
documentId: z.ZodNullable<z.ZodString>;
|
|
15
15
|
error: z.ZodNullable<z.ZodString>;
|
|
16
|
+
status: z.ZodEnum<{
|
|
17
|
+
success: "success";
|
|
18
|
+
user_error: "user_error";
|
|
19
|
+
system_error: "system_error";
|
|
20
|
+
}>;
|
|
21
|
+
errorStage: z.ZodNullable<z.ZodEnum<{
|
|
22
|
+
auth: "auth";
|
|
23
|
+
validation: "validation";
|
|
24
|
+
preprocessing: "preprocessing";
|
|
25
|
+
processing: "processing";
|
|
26
|
+
}>>;
|
|
27
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
16
28
|
duration: z.ZodNumber;
|
|
17
29
|
operation: z.ZodString;
|
|
18
30
|
pageCount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
|
+
import { errorStages, usageStatuses } from "@pdfvector/util";
|
|
2
3
|
import { z } from "zod";
|
|
3
4
|
const usageRecordSchema = z.object({
|
|
4
5
|
id: z.number(),
|
|
@@ -10,6 +11,9 @@ const usageRecordSchema = z.object({
|
|
|
10
11
|
documentType: z.string(),
|
|
11
12
|
documentId: z.string().nullable(),
|
|
12
13
|
error: z.string().nullable(),
|
|
14
|
+
status: z.enum(usageStatuses),
|
|
15
|
+
errorStage: z.enum(errorStages).nullable(),
|
|
16
|
+
errorCode: z.string().nullable(),
|
|
13
17
|
duration: z.number(),
|
|
14
18
|
operation: z.string(),
|
|
15
19
|
pageCount: z.number().nullable(),
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @pdfvector/instance-contract
|
|
2
2
|
|
|
3
|
+
## 0.0.37
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#199](https://github.com/phuctm97/pdfvector/pull/199) [`761547d`](https://github.com/phuctm97/pdfvector/commit/761547db6ad1cf6bd11ea7a1f56b6f4806c72f6a) Thanks [@khanhduyvt0101](https://github.com/khanhduyvt0101)! - Redesign request usage tracking with 3-state taxonomy
|
|
9
|
+
|
|
10
|
+
- Updated dependencies [[`761547d`](https://github.com/phuctm97/pdfvector/commit/761547db6ad1cf6bd11ea7a1f56b6f4806c72f6a)]:
|
|
11
|
+
- @pdfvector/util@0.0.19
|
|
12
|
+
|
|
3
13
|
## 0.0.36
|
|
4
14
|
### Patch Changes
|
|
5
15
|
|