@cravery/core 0.0.65 → 0.0.66
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/types/reports/category.d.ts +1 -1
- package/dist/types/reports/category.d.ts.map +1 -1
- package/dist/types/reports/category.js +4 -2
- package/dist/types/reports/category.js.map +1 -1
- package/dist/types/reports/target.d.ts +6 -1
- package/dist/types/reports/target.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/reports/category.ts +4 -2
- package/src/types/reports/target.ts +11 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const REPORT_CATEGORY_VALUES: readonly ["
|
|
1
|
+
export declare const REPORT_CATEGORY_VALUES: readonly ["copyright", "harassment", "inappropriate", "low_confidence", "misinformation", "not_recipe", "other", "spam"];
|
|
2
2
|
export type ReportCategory = (typeof REPORT_CATEGORY_VALUES)[number];
|
|
3
3
|
//# sourceMappingURL=category.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/types/reports/category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/types/reports/category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,0HASzB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.REPORT_CATEGORY_VALUES = void 0;
|
|
4
4
|
exports.REPORT_CATEGORY_VALUES = [
|
|
5
|
-
"
|
|
5
|
+
"copyright",
|
|
6
6
|
"harassment",
|
|
7
7
|
"inappropriate",
|
|
8
|
-
"
|
|
8
|
+
"low_confidence",
|
|
9
9
|
"misinformation",
|
|
10
|
+
"not_recipe",
|
|
10
11
|
"other",
|
|
12
|
+
"spam",
|
|
11
13
|
];
|
|
12
14
|
//# sourceMappingURL=category.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../src/types/reports/category.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG;IACpC,
|
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../src/types/reports/category.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG;IACpC,WAAW;IACX,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,OAAO;IACP,MAAM;CACE,CAAC"}
|
|
@@ -2,6 +2,11 @@ export interface AiTarget {
|
|
|
2
2
|
type: "ai";
|
|
3
3
|
recipeId: string;
|
|
4
4
|
}
|
|
5
|
+
export interface ExtractionTarget {
|
|
6
|
+
type: "extraction";
|
|
7
|
+
sourceType: "cobalt" | "image" | "pdf" | "text" | "tiktok" | "video" | "website";
|
|
8
|
+
sourceUrl?: string;
|
|
9
|
+
}
|
|
5
10
|
export interface ImageTarget {
|
|
6
11
|
type: "image";
|
|
7
12
|
imageId: string;
|
|
@@ -16,5 +21,5 @@ export interface RecipeTarget {
|
|
|
16
21
|
type: "recipe";
|
|
17
22
|
recipeId: string;
|
|
18
23
|
}
|
|
19
|
-
export type ReportTarget = AiTarget | ImageTarget | ProfileTarget | RecipeTarget;
|
|
24
|
+
export type ReportTarget = AiTarget | ExtractionTarget | ImageTarget | ProfileTarget | RecipeTarget;
|
|
20
25
|
//# sourceMappingURL=target.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../src/types/reports/target.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../src/types/reports/target.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,QAAQ,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,YAAY,GACpB,QAAQ,GACR,gBAAgB,GAChB,WAAW,GACX,aAAa,GACb,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export const REPORT_CATEGORY_VALUES = [
|
|
2
|
-
"
|
|
2
|
+
"copyright",
|
|
3
3
|
"harassment",
|
|
4
4
|
"inappropriate",
|
|
5
|
-
"
|
|
5
|
+
"low_confidence",
|
|
6
6
|
"misinformation",
|
|
7
|
+
"not_recipe",
|
|
7
8
|
"other",
|
|
9
|
+
"spam",
|
|
8
10
|
] as const;
|
|
9
11
|
export type ReportCategory = (typeof REPORT_CATEGORY_VALUES)[number];
|
|
@@ -2,22 +2,33 @@ export interface AiTarget {
|
|
|
2
2
|
type: "ai";
|
|
3
3
|
recipeId: string;
|
|
4
4
|
}
|
|
5
|
+
|
|
6
|
+
export interface ExtractionTarget {
|
|
7
|
+
type: "extraction";
|
|
8
|
+
sourceType: "cobalt" | "image" | "pdf" | "text" | "tiktok" | "video" | "website";
|
|
9
|
+
sourceUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
5
12
|
export interface ImageTarget {
|
|
6
13
|
type: "image";
|
|
7
14
|
imageId: string;
|
|
8
15
|
parentType: "recipe" | "profile";
|
|
9
16
|
parentId: string;
|
|
10
17
|
}
|
|
18
|
+
|
|
11
19
|
export interface ProfileTarget {
|
|
12
20
|
type: "profile";
|
|
13
21
|
profileId: string;
|
|
14
22
|
}
|
|
23
|
+
|
|
15
24
|
export interface RecipeTarget {
|
|
16
25
|
type: "recipe";
|
|
17
26
|
recipeId: string;
|
|
18
27
|
}
|
|
28
|
+
|
|
19
29
|
export type ReportTarget =
|
|
20
30
|
| AiTarget
|
|
31
|
+
| ExtractionTarget
|
|
21
32
|
| ImageTarget
|
|
22
33
|
| ProfileTarget
|
|
23
34
|
| RecipeTarget;
|