@cravery/core 0.0.33 → 0.0.35
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/core/settings.d.ts +7 -5
- package/dist/types/core/settings.d.ts.map +1 -1
- package/dist/types/iam/profile.d.ts +1 -0
- package/dist/types/iam/profile.d.ts.map +1 -1
- package/dist/types/iam/subscription.d.ts +1 -1
- package/dist/types/iam/subscription.d.ts.map +1 -1
- package/dist/types/iam/user_role.d.ts +1 -1
- package/dist/types/iam/user_role.d.ts.map +1 -1
- package/dist/types/iam/user_role.js +2 -0
- package/dist/types/iam/user_role.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/recipe/cuisine.d.ts +1 -1
- package/dist/types/recipe/cuisine.d.ts.map +1 -1
- package/dist/types/recipe/cuisine.js +3 -0
- package/dist/types/recipe/cuisine.js.map +1 -1
- package/dist/types/recipe/recipe_status.d.ts +1 -1
- package/dist/types/recipe/recipe_status.d.ts.map +1 -1
- package/dist/types/recipe/recipe_status.js +0 -1
- package/dist/types/recipe/recipe_status.js.map +1 -1
- package/dist/types/report/index.d.ts +0 -1
- package/dist/types/report/index.d.ts.map +1 -1
- package/dist/types/report/index.js +0 -1
- package/dist/types/report/index.js.map +1 -1
- package/dist/types/report/report.d.ts +0 -2
- package/dist/types/report/report.d.ts.map +1 -1
- package/dist/types/report/report_priority.d.ts +1 -1
- package/dist/types/report/report_priority.js +1 -1
- package/dist/types/report/report_priority.js.map +1 -1
- package/dist/types/report/report_status.d.ts +1 -1
- package/dist/types/report/report_status.d.ts.map +1 -1
- package/dist/types/report/report_status.js +3 -1
- package/dist/types/report/report_status.js.map +1 -1
- package/dist/types/report/report_target_type.d.ts +1 -1
- package/dist/types/report/report_target_type.d.ts.map +1 -1
- package/dist/types/report/report_target_type.js +0 -1
- package/dist/types/report/report_target_type.js.map +1 -1
- package/dist/types/submission/index.d.ts +6 -0
- package/dist/types/submission/index.d.ts.map +1 -0
- package/dist/types/submission/index.js +22 -0
- package/dist/types/submission/index.js.map +1 -0
- package/dist/types/submission/severity.d.ts +3 -0
- package/dist/types/submission/severity.d.ts.map +1 -0
- package/dist/types/submission/severity.js +5 -0
- package/dist/types/submission/severity.js.map +1 -0
- package/dist/types/submission/submission.d.ts +16 -0
- package/dist/types/submission/submission.d.ts.map +1 -0
- package/dist/types/submission/submission.js +3 -0
- package/dist/types/submission/submission.js.map +1 -0
- package/dist/types/submission/submission_status.d.ts +3 -0
- package/dist/types/submission/submission_status.d.ts.map +1 -0
- package/dist/types/submission/submission_status.js +9 -0
- package/dist/types/submission/submission_status.js.map +1 -0
- package/dist/types/submission/suggestion.d.ts +9 -0
- package/dist/types/submission/suggestion.d.ts.map +1 -0
- package/dist/types/submission/suggestion.js +3 -0
- package/dist/types/submission/suggestion.js.map +1 -0
- package/dist/types/submission/suggestion_category.d.ts +3 -0
- package/dist/types/submission/suggestion_category.d.ts.map +1 -0
- package/dist/types/submission/suggestion_category.js +11 -0
- package/dist/types/submission/suggestion_category.js.map +1 -0
- package/package.json +1 -1
- package/src/types/core/settings.ts +7 -4
- package/src/types/iam/profile.ts +1 -0
- package/src/types/iam/subscription.ts +1 -1
- package/src/types/iam/user_role.ts +2 -0
- package/src/types/index.ts +1 -1
- package/src/types/recipe/cuisine.ts +3 -0
- package/src/types/recipe/recipe_status.ts +0 -1
- package/src/types/report/index.ts +0 -1
- package/src/types/report/report.ts +0 -2
- package/src/types/report/report_priority.ts +1 -1
- package/src/types/report/report_status.ts +3 -1
- package/src/types/report/report_target_type.ts +0 -1
- package/src/types/submission/index.ts +5 -0
- package/src/types/submission/submission.ts +16 -0
- package/src/types/submission/submission_status.ts +6 -0
- package/src/types/submission/suggestion.ts +9 -0
- package/src/types/moderation/index.ts +0 -5
- package/src/types/moderation/moderation.ts +0 -40
- package/src/types/moderation/moderation_status.ts +0 -6
- package/src/types/moderation/priority.ts +0 -2
- package/src/types/report/report_type.ts +0 -9
- /package/src/types/{moderation → submission}/severity.ts +0 -0
- /package/src/types/{moderation → submission}/suggestion_category.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Allergen, Cuisine, DietaryTag, Spiciness, TemperatureUnit } from "../recipe";
|
|
1
|
+
import { Allergen, Cuisine, DietaryTag, Difficulty, Spiciness, TemperatureUnit } from "../recipe";
|
|
2
2
|
import { Entity } from "./entity";
|
|
3
3
|
import { Locale } from "./locale";
|
|
4
4
|
import { MeasurementSystem } from "./measurement_system";
|
|
@@ -11,14 +11,16 @@ export interface NotificationSettings {
|
|
|
11
11
|
}
|
|
12
12
|
export interface Settings extends Entity {
|
|
13
13
|
allergens: Allergen[];
|
|
14
|
-
dietaryTags: DietaryTag[];
|
|
15
14
|
cuisines: Cuisine[];
|
|
16
|
-
|
|
15
|
+
defaultServings: number;
|
|
16
|
+
dietaryTags: DietaryTag[];
|
|
17
17
|
excludedIngredients: string[];
|
|
18
18
|
locale: Locale;
|
|
19
|
-
temperatureUnit: TemperatureUnit;
|
|
20
19
|
measurementSystem: MeasurementSystem;
|
|
21
|
-
theme: Theme;
|
|
22
20
|
notifications: NotificationSettings;
|
|
21
|
+
skillLevel: Difficulty;
|
|
22
|
+
spiciness?: Spiciness;
|
|
23
|
+
temperatureUnit: TemperatureUnit;
|
|
24
|
+
theme: Theme;
|
|
23
25
|
}
|
|
24
26
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/types/core/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,SAAS,EACT,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,QAAS,SAAQ,MAAM;IACtC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/types/core/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,SAAS,EACT,eAAe,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,QAAS,SAAQ,MAAM;IACtC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,aAAa,EAAE,oBAAoB,CAAC;IACpC,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,EAAE,eAAe,CAAC;IACjC,KAAK,EAAE,KAAK,CAAC;CACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/types/iam/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,OAAQ,SAAQ,MAAM;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/types/iam/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,OAAQ,SAAQ,MAAM;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../src/types/iam/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const USER_ROLE_VALUES: readonly ["admin", "moderator", "translator", "user", "guest"];
|
|
1
|
+
export declare const USER_ROLE_VALUES: readonly ["admin", "developer", "moderator", "translator", "user", "guest"];
|
|
2
2
|
export type UserRole = (typeof USER_ROLE_VALUES)[number];
|
|
3
3
|
export declare const PRIVILEGED_USER_ROLES: UserRole[];
|
|
4
4
|
export type PrivilegedUserRole = (typeof PRIVILEGED_USER_ROLES)[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user_role.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user_role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"user_role.d.ts","sourceRoot":"","sources":["../../../src/types/iam/user_role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,6EAOnB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,qBAAqB,EAAE,QAAQ,EAK3C,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PRIVILEGED_USER_ROLES = exports.USER_ROLE_VALUES = void 0;
|
|
4
4
|
exports.USER_ROLE_VALUES = [
|
|
5
5
|
"admin",
|
|
6
|
+
"developer",
|
|
6
7
|
"moderator",
|
|
7
8
|
"translator",
|
|
8
9
|
"user",
|
|
@@ -10,6 +11,7 @@ exports.USER_ROLE_VALUES = [
|
|
|
10
11
|
];
|
|
11
12
|
exports.PRIVILEGED_USER_ROLES = [
|
|
12
13
|
"admin",
|
|
14
|
+
"developer",
|
|
13
15
|
"moderator",
|
|
14
16
|
"translator",
|
|
15
17
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user_role.js","sourceRoot":"","sources":["../../../src/types/iam/user_role.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,OAAO;IACP,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;CACC,CAAC;AAGE,QAAA,qBAAqB,GAAe;IAC/C,OAAO;IACP,WAAW;IACX,YAAY;CACb,CAAC"}
|
|
1
|
+
{"version":3,"file":"user_role.js","sourceRoot":"","sources":["../../../src/types/iam/user_role.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,OAAO;IACP,WAAW;IACX,WAAW;IACX,YAAY;IACZ,MAAM;IACN,OAAO;CACC,CAAC;AAGE,QAAA,qBAAqB,GAAe;IAC/C,OAAO;IACP,WAAW;IACX,WAAW;IACX,YAAY;CACb,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ai"), exports);
|
|
18
18
|
__exportStar(require("./core"), exports);
|
|
19
19
|
__exportStar(require("./iam"), exports);
|
|
20
|
-
__exportStar(require("./moderation"), exports);
|
|
21
20
|
__exportStar(require("./recipe"), exports);
|
|
22
21
|
__exportStar(require("./report"), exports);
|
|
22
|
+
__exportStar(require("./submission"), exports);
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,yCAAuB;AACvB,wCAAsB;AACtB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,yCAAuB;AACvB,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const CUISINE_VALUES: readonly ["african", "american", "brazilian", "british", "caribbean", "chinese", "egyptian", "emirati", "ethiopian", "filipino", "french", "fusion", "german", "greek", "indian", "indonesian", "italian", "japanese", "korean", "lebanese", "malaysian", "mexican", "moroccan", "pakistani", "persian", "russian", "saudi", "spanish", "sudanese", "thai", "turkish", "vietnamese", "other"];
|
|
1
|
+
export declare const CUISINE_VALUES: readonly ["african", "american", "asian", "brazilian", "british", "caribbean", "chinese", "egyptian", "emirati", "ethiopian", "filipino", "french", "fusion", "german", "greek", "hungarian", "indian", "indonesian", "italian", "japanese", "korean", "lebanese", "malaysian", "mexican", "middle_eastern", "moroccan", "pakistani", "persian", "russian", "saudi", "spanish", "sudanese", "thai", "turkish", "vietnamese", "other"];
|
|
2
2
|
export type Cuisine = (typeof CUISINE_VALUES)[number];
|
|
3
3
|
//# sourceMappingURL=cuisine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cuisine.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/cuisine.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"cuisine.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/cuisine.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,uaAqCjB,CAAC;AACX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.CUISINE_VALUES = void 0;
|
|
|
4
4
|
exports.CUISINE_VALUES = [
|
|
5
5
|
"african",
|
|
6
6
|
"american",
|
|
7
|
+
"asian",
|
|
7
8
|
"brazilian",
|
|
8
9
|
"british",
|
|
9
10
|
"caribbean",
|
|
@@ -16,6 +17,7 @@ exports.CUISINE_VALUES = [
|
|
|
16
17
|
"fusion",
|
|
17
18
|
"german",
|
|
18
19
|
"greek",
|
|
20
|
+
"hungarian",
|
|
19
21
|
"indian",
|
|
20
22
|
"indonesian",
|
|
21
23
|
"italian",
|
|
@@ -24,6 +26,7 @@ exports.CUISINE_VALUES = [
|
|
|
24
26
|
"lebanese",
|
|
25
27
|
"malaysian",
|
|
26
28
|
"mexican",
|
|
29
|
+
"middle_eastern",
|
|
27
30
|
"moroccan",
|
|
28
31
|
"pakistani",
|
|
29
32
|
"persian",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cuisine.js","sourceRoot":"","sources":["../../../src/types/recipe/cuisine.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,WAAW;IACX,SAAS;IACT,UAAU;IACV,SAAS;IACT,WAAW;IACX,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,UAAU;IACV,QAAQ;IACR,UAAU;IACV,WAAW;IACX,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,SAAS;IACT,OAAO;IACP,SAAS;IACT,UAAU;IACV,MAAM;IACN,SAAS;IACT,YAAY;IACZ,OAAO;CACC,CAAC"}
|
|
1
|
+
{"version":3,"file":"cuisine.js","sourceRoot":"","sources":["../../../src/types/recipe/cuisine.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,SAAS;IACT,UAAU;IACV,OAAO;IACP,WAAW;IACX,SAAS;IACT,WAAW;IACX,SAAS;IACT,UAAU;IACV,SAAS;IACT,WAAW;IACX,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,SAAS;IACT,UAAU;IACV,QAAQ;IACR,UAAU;IACV,WAAW;IACX,SAAS;IACT,gBAAgB;IAChB,UAAU;IACV,WAAW;IACX,SAAS;IACT,SAAS;IACT,OAAO;IACP,SAAS;IACT,UAAU;IACV,MAAM;IACN,SAAS;IACT,YAAY;IACZ,OAAO;CACC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const RECIPE_STATUS_VALUES: readonly ["active", "archived", "deleted", "flagged", "pending"
|
|
1
|
+
export declare const RECIPE_STATUS_VALUES: readonly ["active", "archived", "deleted", "flagged", "pending"];
|
|
2
2
|
export type RecipeStatus = (typeof RECIPE_STATUS_VALUES)[number];
|
|
3
3
|
//# sourceMappingURL=recipe_status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe_status.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/recipe_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"recipe_status.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/recipe_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,kEAMvB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe_status.js","sourceRoot":"","sources":["../../../src/types/recipe/recipe_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC,QAAQ;IACR,UAAU;IACV,SAAS;IACT,SAAS;IACT,SAAS;
|
|
1
|
+
{"version":3,"file":"recipe_status.js","sourceRoot":"","sources":["../../../src/types/recipe/recipe_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC,QAAQ;IACR,UAAU;IACV,SAAS;IACT,SAAS;IACT,SAAS;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/report/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/report/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC"}
|
|
@@ -17,6 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./report_priority"), exports);
|
|
18
18
|
__exportStar(require("./report_status"), exports);
|
|
19
19
|
__exportStar(require("./report_target_type"), exports);
|
|
20
|
-
__exportStar(require("./report_type"), exports);
|
|
21
20
|
__exportStar(require("./report"), exports);
|
|
22
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/report/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,kDAAgC;AAChC,uDAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/report/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,kDAAgC;AAChC,uDAAqC;AACrC,2CAAyB"}
|
|
@@ -2,7 +2,6 @@ import { Entity, Timestamp } from "../core";
|
|
|
2
2
|
import { ReportPriority } from "./report_priority";
|
|
3
3
|
import { ReportStatus } from "./report_status";
|
|
4
4
|
import { ReportTargetType } from "./report_target_type";
|
|
5
|
-
import { ReportType } from "./report_type";
|
|
6
5
|
export interface ReportEvidence {
|
|
7
6
|
aiScore?: number;
|
|
8
7
|
aiSuggestions?: Record<string, unknown>[];
|
|
@@ -23,7 +22,6 @@ export interface Report extends Entity {
|
|
|
23
22
|
status: ReportStatus;
|
|
24
23
|
targetId: string;
|
|
25
24
|
targetType: ReportTargetType;
|
|
26
|
-
type: ReportType;
|
|
27
25
|
userId: string;
|
|
28
26
|
}
|
|
29
27
|
//# sourceMappingURL=report.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/types/report/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../src/types/report/report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,MAAO,SAAQ,MAAM;IACpC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,cAAc,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const REPORT_PRIORITY_VALUES: readonly ["critical", "high", "
|
|
1
|
+
export declare const REPORT_PRIORITY_VALUES: readonly ["critical", "high", "medium", "low"];
|
|
2
2
|
export type ReportPriority = (typeof REPORT_PRIORITY_VALUES)[number];
|
|
3
3
|
//# sourceMappingURL=report_priority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_priority.js","sourceRoot":"","sources":["../../../src/types/report/report_priority.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG;IACpC,UAAU;IACV,MAAM;IACN,
|
|
1
|
+
{"version":3,"file":"report_priority.js","sourceRoot":"","sources":["../../../src/types/report/report_priority.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG;IACpC,UAAU;IACV,MAAM;IACN,QAAQ;IACR,KAAK;CACG,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const REPORT_STATUS_VALUES: readonly ["escalated", "pending", "
|
|
1
|
+
export declare const REPORT_STATUS_VALUES: readonly ["closed", "escalated", "in_progress", "pending", "rejected", "resolved"];
|
|
2
2
|
export type ReportStatus = (typeof REPORT_STATUS_VALUES)[number];
|
|
3
3
|
//# sourceMappingURL=report_status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_status.d.ts","sourceRoot":"","sources":["../../../src/types/report/report_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"report_status.d.ts","sourceRoot":"","sources":["../../../src/types/report/report_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,oFAOvB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.REPORT_STATUS_VALUES = void 0;
|
|
4
4
|
exports.REPORT_STATUS_VALUES = [
|
|
5
|
+
"closed",
|
|
5
6
|
"escalated",
|
|
7
|
+
"in_progress",
|
|
6
8
|
"pending",
|
|
9
|
+
"rejected",
|
|
7
10
|
"resolved",
|
|
8
|
-
"reviewed",
|
|
9
11
|
];
|
|
10
12
|
//# sourceMappingURL=report_status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_status.js","sourceRoot":"","sources":["../../../src/types/report/report_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"report_status.js","sourceRoot":"","sources":["../../../src/types/report/report_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;IAClC,QAAQ;IACR,WAAW;IACX,aAAa;IACb,SAAS;IACT,UAAU;IACV,UAAU;CACF,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const REPORT_TARGET_TYPE_VALUES: readonly ["image", "profile", "recipe"
|
|
1
|
+
export declare const REPORT_TARGET_TYPE_VALUES: readonly ["image", "profile", "recipe"];
|
|
2
2
|
export type ReportTargetType = (typeof REPORT_TARGET_TYPE_VALUES)[number];
|
|
3
3
|
//# sourceMappingURL=report_target_type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_target_type.d.ts","sourceRoot":"","sources":["../../../src/types/report/report_target_type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"report_target_type.d.ts","sourceRoot":"","sources":["../../../src/types/report/report_target_type.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,yCAI5B,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report_target_type.js","sourceRoot":"","sources":["../../../src/types/report/report_target_type.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;IACvC,OAAO;IACP,SAAS;IACT,QAAQ;
|
|
1
|
+
{"version":3,"file":"report_target_type.js","sourceRoot":"","sources":["../../../src/types/report/report_target_type.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;IACvC,OAAO;IACP,SAAS;IACT,QAAQ;CACA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/submission/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./severity"), exports);
|
|
18
|
+
__exportStar(require("./submission"), exports);
|
|
19
|
+
__exportStar(require("./submission_status"), exports);
|
|
20
|
+
__exportStar(require("./suggestion"), exports);
|
|
21
|
+
__exportStar(require("./suggestion_category"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/submission/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,+CAA6B;AAC7B,sDAAoC;AACpC,+CAA6B;AAC7B,wDAAsC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../../src/types/submission/severity.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oCAAqC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"severity.js","sourceRoot":"","sources":["../../../src/types/submission/severity.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Entity, Locale, Timestamp } from "../core";
|
|
2
|
+
import { SubmissionStatus } from "./submission_status";
|
|
3
|
+
import { Suggestion } from "./suggestion";
|
|
4
|
+
export interface Submission extends Entity {
|
|
5
|
+
id: string;
|
|
6
|
+
locale: Locale;
|
|
7
|
+
reason?: string;
|
|
8
|
+
recipeId: string;
|
|
9
|
+
reviewedAt?: Timestamp;
|
|
10
|
+
reviewedBy?: string;
|
|
11
|
+
score?: number;
|
|
12
|
+
status: SubmissionStatus;
|
|
13
|
+
suggestions?: Suggestion[];
|
|
14
|
+
userId: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=submission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submission.d.ts","sourceRoot":"","sources":["../../../src/types/submission/submission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,WAAW,UAAW,SAAQ,MAAM;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,gBAAgB,CAAC;IACzB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submission.js","sourceRoot":"","sources":["../../../src/types/submission/submission.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submission_status.d.ts","sourceRoot":"","sources":["../../../src/types/submission/submission_status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,8CAI3B,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submission_status.js","sourceRoot":"","sources":["../../../src/types/submission/submission_status.ts"],"names":[],"mappings":";;;AAAa,QAAA,wBAAwB,GAAG;IACtC,UAAU;IACV,SAAS;IACT,UAAU;CACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Severity } from "./severity";
|
|
2
|
+
import { SuggestionCategory } from "./suggestion_category";
|
|
3
|
+
export interface Suggestion {
|
|
4
|
+
category: SuggestionCategory;
|
|
5
|
+
field: string;
|
|
6
|
+
severity: Severity;
|
|
7
|
+
suggestion: string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=suggestion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../src/types/submission/suggestion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suggestion.js","sourceRoot":"","sources":["../../../src/types/submission/suggestion.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suggestion_category.d.ts","sourceRoot":"","sources":["../../../src/types/submission/suggestion_category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,0FAM7B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUGGESTION_CATEGORY_VALUES = void 0;
|
|
4
|
+
exports.SUGGESTION_CATEGORY_VALUES = [
|
|
5
|
+
"missing_info",
|
|
6
|
+
"unclear_instruction",
|
|
7
|
+
"image_quality",
|
|
8
|
+
"nutrition",
|
|
9
|
+
"safety",
|
|
10
|
+
];
|
|
11
|
+
//# sourceMappingURL=suggestion_category.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suggestion_category.js","sourceRoot":"","sources":["../../../src/types/submission/suggestion_category.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;IACxC,cAAc;IACd,qBAAqB;IACrB,eAAe;IACf,WAAW;IACX,QAAQ;CACA,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
Allergen,
|
|
3
3
|
Cuisine,
|
|
4
4
|
DietaryTag,
|
|
5
|
+
Difficulty,
|
|
5
6
|
Spiciness,
|
|
6
7
|
TemperatureUnit,
|
|
7
8
|
} from "../recipe";
|
|
@@ -19,13 +20,15 @@ export interface NotificationSettings {
|
|
|
19
20
|
|
|
20
21
|
export interface Settings extends Entity {
|
|
21
22
|
allergens: Allergen[];
|
|
22
|
-
dietaryTags: DietaryTag[];
|
|
23
23
|
cuisines: Cuisine[];
|
|
24
|
-
|
|
24
|
+
defaultServings: number;
|
|
25
|
+
dietaryTags: DietaryTag[];
|
|
25
26
|
excludedIngredients: string[];
|
|
26
27
|
locale: Locale;
|
|
27
|
-
temperatureUnit: TemperatureUnit;
|
|
28
28
|
measurementSystem: MeasurementSystem;
|
|
29
|
-
theme: Theme;
|
|
30
29
|
notifications: NotificationSettings;
|
|
30
|
+
skillLevel: Difficulty;
|
|
31
|
+
spiciness?: Spiciness;
|
|
32
|
+
temperatureUnit: TemperatureUnit;
|
|
33
|
+
theme: Theme;
|
|
31
34
|
}
|
package/src/types/iam/profile.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export const USER_ROLE_VALUES = [
|
|
2
2
|
"admin",
|
|
3
|
+
"developer",
|
|
3
4
|
"moderator",
|
|
4
5
|
"translator",
|
|
5
6
|
"user",
|
|
@@ -9,6 +10,7 @@ export type UserRole = (typeof USER_ROLE_VALUES)[number];
|
|
|
9
10
|
|
|
10
11
|
export const PRIVILEGED_USER_ROLES: UserRole[] = [
|
|
11
12
|
"admin",
|
|
13
|
+
"developer",
|
|
12
14
|
"moderator",
|
|
13
15
|
"translator",
|
|
14
16
|
];
|
package/src/types/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const CUISINE_VALUES = [
|
|
2
2
|
"african",
|
|
3
3
|
"american",
|
|
4
|
+
"asian",
|
|
4
5
|
"brazilian",
|
|
5
6
|
"british",
|
|
6
7
|
"caribbean",
|
|
@@ -13,6 +14,7 @@ export const CUISINE_VALUES = [
|
|
|
13
14
|
"fusion",
|
|
14
15
|
"german",
|
|
15
16
|
"greek",
|
|
17
|
+
"hungarian",
|
|
16
18
|
"indian",
|
|
17
19
|
"indonesian",
|
|
18
20
|
"italian",
|
|
@@ -21,6 +23,7 @@ export const CUISINE_VALUES = [
|
|
|
21
23
|
"lebanese",
|
|
22
24
|
"malaysian",
|
|
23
25
|
"mexican",
|
|
26
|
+
"middle_eastern",
|
|
24
27
|
"moroccan",
|
|
25
28
|
"pakistani",
|
|
26
29
|
"persian",
|
|
@@ -2,7 +2,6 @@ import { Entity, Timestamp } from "../core";
|
|
|
2
2
|
import { ReportPriority } from "./report_priority";
|
|
3
3
|
import { ReportStatus } from "./report_status";
|
|
4
4
|
import { ReportTargetType } from "./report_target_type";
|
|
5
|
-
import { ReportType } from "./report_type";
|
|
6
5
|
|
|
7
6
|
export interface ReportEvidence {
|
|
8
7
|
aiScore?: number;
|
|
@@ -25,6 +24,5 @@ export interface Report extends Entity {
|
|
|
25
24
|
status: ReportStatus;
|
|
26
25
|
targetId: string;
|
|
27
26
|
targetType: ReportTargetType;
|
|
28
|
-
type: ReportType;
|
|
29
27
|
userId: string;
|
|
30
28
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Entity, Locale, Timestamp } from "../core";
|
|
2
|
+
import { SubmissionStatus } from "./submission_status";
|
|
3
|
+
import { Suggestion } from "./suggestion";
|
|
4
|
+
|
|
5
|
+
export interface Submission extends Entity {
|
|
6
|
+
id: string;
|
|
7
|
+
locale: Locale;
|
|
8
|
+
reason?: string;
|
|
9
|
+
recipeId: string;
|
|
10
|
+
reviewedAt?: Timestamp;
|
|
11
|
+
reviewedBy?: string;
|
|
12
|
+
score?: number;
|
|
13
|
+
status: SubmissionStatus;
|
|
14
|
+
suggestions?: Suggestion[];
|
|
15
|
+
userId: string;
|
|
16
|
+
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Entity, Locale, Timestamp } from "../core";
|
|
2
|
-
import { ModerationStatus } from "./moderation_status";
|
|
3
|
-
import { Priority } from "./priority";
|
|
4
|
-
import { Severity } from "./severity";
|
|
5
|
-
import { SuggestionCategory } from "./suggestion_category";
|
|
6
|
-
|
|
7
|
-
export interface ModerationSuggestion {
|
|
8
|
-
category: SuggestionCategory;
|
|
9
|
-
field: string;
|
|
10
|
-
severity: Severity;
|
|
11
|
-
suggestion: string;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface Moderation extends Entity {
|
|
15
|
-
assessedAt?: Timestamp;
|
|
16
|
-
originalLocale: Locale;
|
|
17
|
-
priority: Priority;
|
|
18
|
-
qualityScore?: number;
|
|
19
|
-
recipeId: string;
|
|
20
|
-
rejectionReason?: string;
|
|
21
|
-
reviewedAt?: Timestamp;
|
|
22
|
-
reviewedBy?: string;
|
|
23
|
-
status: ModerationStatus;
|
|
24
|
-
suggestions?: ModerationSuggestion[];
|
|
25
|
-
userId: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface ModerateRecipeInput {
|
|
29
|
-
moderationId: string;
|
|
30
|
-
recipeId: string;
|
|
31
|
-
userId: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface ModerateRecipeOutput {
|
|
35
|
-
autoApproved: boolean;
|
|
36
|
-
autoRejected: boolean;
|
|
37
|
-
qualityScore: number;
|
|
38
|
-
rejectionReason?: string;
|
|
39
|
-
suggestions: ModerationSuggestion[];
|
|
40
|
-
}
|
|
File without changes
|
|
File without changes
|