@cravery/core 0.0.32 → 0.0.34

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.
Files changed (93) hide show
  1. package/dist/types/core/asset.d.ts +1 -0
  2. package/dist/types/core/asset.d.ts.map +1 -1
  3. package/dist/types/core/settings.d.ts +7 -5
  4. package/dist/types/core/settings.d.ts.map +1 -1
  5. package/dist/types/iam/profile.d.ts +1 -0
  6. package/dist/types/iam/profile.d.ts.map +1 -1
  7. package/dist/types/iam/subscription.d.ts +1 -1
  8. package/dist/types/iam/subscription.d.ts.map +1 -1
  9. package/dist/types/iam/user_role.d.ts +1 -1
  10. package/dist/types/iam/user_role.d.ts.map +1 -1
  11. package/dist/types/iam/user_role.js +2 -0
  12. package/dist/types/iam/user_role.js.map +1 -1
  13. package/dist/types/index.d.ts +1 -1
  14. package/dist/types/index.d.ts.map +1 -1
  15. package/dist/types/index.js +1 -1
  16. package/dist/types/index.js.map +1 -1
  17. package/dist/types/recipe/cuisine.d.ts +1 -1
  18. package/dist/types/recipe/cuisine.d.ts.map +1 -1
  19. package/dist/types/recipe/cuisine.js +3 -0
  20. package/dist/types/recipe/cuisine.js.map +1 -1
  21. package/dist/types/recipe/recipe_status.d.ts +1 -1
  22. package/dist/types/recipe/recipe_status.d.ts.map +1 -1
  23. package/dist/types/recipe/recipe_status.js +0 -1
  24. package/dist/types/recipe/recipe_status.js.map +1 -1
  25. package/dist/types/report/index.d.ts +0 -1
  26. package/dist/types/report/index.d.ts.map +1 -1
  27. package/dist/types/report/index.js +0 -1
  28. package/dist/types/report/index.js.map +1 -1
  29. package/dist/types/report/report.d.ts +0 -2
  30. package/dist/types/report/report.d.ts.map +1 -1
  31. package/dist/types/report/report_priority.d.ts +1 -1
  32. package/dist/types/report/report_priority.js +1 -1
  33. package/dist/types/report/report_priority.js.map +1 -1
  34. package/dist/types/report/report_status.d.ts +1 -1
  35. package/dist/types/report/report_status.d.ts.map +1 -1
  36. package/dist/types/report/report_status.js +3 -1
  37. package/dist/types/report/report_status.js.map +1 -1
  38. package/dist/types/report/report_target_type.d.ts +1 -1
  39. package/dist/types/report/report_target_type.d.ts.map +1 -1
  40. package/dist/types/report/report_target_type.js +0 -1
  41. package/dist/types/report/report_target_type.js.map +1 -1
  42. package/dist/types/submission/index.d.ts +6 -0
  43. package/dist/types/submission/index.d.ts.map +1 -0
  44. package/dist/types/submission/index.js +22 -0
  45. package/dist/types/submission/index.js.map +1 -0
  46. package/dist/types/submission/severity.d.ts +3 -0
  47. package/dist/types/submission/severity.d.ts.map +1 -0
  48. package/dist/types/submission/severity.js +5 -0
  49. package/dist/types/submission/severity.js.map +1 -0
  50. package/dist/types/submission/submission.d.ts +16 -0
  51. package/dist/types/submission/submission.d.ts.map +1 -0
  52. package/dist/types/submission/submission.js +3 -0
  53. package/dist/types/submission/submission.js.map +1 -0
  54. package/dist/types/submission/submission_status.d.ts +3 -0
  55. package/dist/types/submission/submission_status.d.ts.map +1 -0
  56. package/dist/types/submission/submission_status.js +9 -0
  57. package/dist/types/submission/submission_status.js.map +1 -0
  58. package/dist/types/submission/suggestion.d.ts +9 -0
  59. package/dist/types/submission/suggestion.d.ts.map +1 -0
  60. package/dist/types/submission/suggestion.js +3 -0
  61. package/dist/types/submission/suggestion.js.map +1 -0
  62. package/dist/types/submission/suggestion_category.d.ts +3 -0
  63. package/dist/types/submission/suggestion_category.d.ts.map +1 -0
  64. package/dist/types/submission/suggestion_category.js +11 -0
  65. package/dist/types/submission/suggestion_category.js.map +1 -0
  66. package/package.json +45 -45
  67. package/src/config/ai.ts +39 -39
  68. package/src/types/ai/config.ts +28 -28
  69. package/src/types/core/asset.ts +1 -0
  70. package/src/types/core/settings.ts +7 -4
  71. package/src/types/iam/profile.ts +1 -0
  72. package/src/types/iam/subscription.ts +1 -1
  73. package/src/types/iam/user_role.ts +2 -0
  74. package/src/types/index.ts +1 -1
  75. package/src/types/recipe/cuisine.ts +3 -0
  76. package/src/types/recipe/recipe.ts +92 -92
  77. package/src/types/recipe/recipe_status.ts +0 -1
  78. package/src/types/report/index.ts +0 -1
  79. package/src/types/report/report.ts +0 -2
  80. package/src/types/report/report_priority.ts +1 -1
  81. package/src/types/report/report_status.ts +3 -1
  82. package/src/types/report/report_target_type.ts +0 -1
  83. package/src/types/submission/index.ts +5 -0
  84. package/src/types/submission/submission.ts +16 -0
  85. package/src/types/submission/submission_status.ts +6 -0
  86. package/src/types/submission/suggestion.ts +9 -0
  87. package/src/types/moderation/index.ts +0 -5
  88. package/src/types/moderation/moderation.ts +0 -40
  89. package/src/types/moderation/moderation_status.ts +0 -6
  90. package/src/types/moderation/priority.ts +0 -2
  91. package/src/types/report/report_type.ts +0 -9
  92. /package/src/types/{moderation → submission}/severity.ts +0 -0
  93. /package/src/types/{moderation → submission}/suggestion_category.ts +0 -0
@@ -1,5 +1,6 @@
1
1
  import { Entity } from "./entity";
2
2
  export interface Asset extends Entity {
3
3
  imageUrl?: string;
4
+ name: string;
4
5
  }
5
6
  //# sourceMappingURL=asset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/types/core/asset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,KAAM,SAAQ,MAAM;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/types/core/asset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,KAAM,SAAQ,MAAM;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -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
- spiciness?: Spiciness;
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,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,eAAe,CAAC;IACjC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,KAAK,EAAE,KAAK,CAAC;IACb,aAAa,EAAE,oBAAoB,CAAC;CACrC"}
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"}
@@ -2,6 +2,7 @@ import { Entity } from "../core";
2
2
  import { ProfileStatus } from "./profile_status";
3
3
  export interface Profile extends Entity {
4
4
  bio?: string;
5
+ heroUrl?: string;
5
6
  imageUrl?: string;
6
7
  name: string;
7
8
  public: boolean;
@@ -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"}
@@ -11,7 +11,7 @@ export interface Member {
11
11
  }
12
12
  export interface Subscription extends Entity {
13
13
  expiresAt: Timestamp;
14
- members?: Member[];
14
+ members: Member[];
15
15
  providerId: string;
16
16
  tier: SubscriptionTier;
17
17
  }
@@ -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,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,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
+ {"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,gEAMnB,CAAC;AACX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,eAAO,MAAM,qBAAqB,EAAE,QAAQ,EAI3C,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
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"}
@@ -1,7 +1,7 @@
1
1
  export * from "./ai";
2
2
  export * from "./core";
3
3
  export * from "./iam";
4
- export * from "./moderation";
5
4
  export * from "./recipe";
6
5
  export * from "./report";
6
+ export * from "./submission";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -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,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,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"}
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,yCAAuB;AACvB,wCAAsB;AACtB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB"}
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,+XAkCjB,CAAC;AACX,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,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", "rejected"];
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,8EAOvB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
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"}
@@ -7,6 +7,5 @@ exports.RECIPE_STATUS_VALUES = [
7
7
  "deleted",
8
8
  "flagged",
9
9
  "pending",
10
- "rejected",
11
10
  ];
12
11
  //# sourceMappingURL=recipe_status.js.map
@@ -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;IACT,UAAU;CACF,CAAC"}
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,6 +1,5 @@
1
1
  export * from "./report_priority";
2
2
  export * from "./report_status";
3
3
  export * from "./report_target_type";
4
- export * from "./report_type";
5
4
  export * from "./report";
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -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,eAAe,CAAC;AAC9B,cAAc,UAAU,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,gDAA8B;AAC9B,2CAAyB"}
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;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,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,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB"}
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", "low", "medium"];
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
@@ -4,7 +4,7 @@ exports.REPORT_PRIORITY_VALUES = void 0;
4
4
  exports.REPORT_PRIORITY_VALUES = [
5
5
  "critical",
6
6
  "high",
7
- "low",
8
7
  "medium",
8
+ "low",
9
9
  ];
10
10
  //# sourceMappingURL=report_priority.js.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,KAAK;IACL,QAAQ;CACA,CAAC"}
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", "resolved", "reviewed"];
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,2DAKvB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
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", "user"];
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,iDAK5B,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC"}
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"}
@@ -5,6 +5,5 @@ exports.REPORT_TARGET_TYPE_VALUES = [
5
5
  "image",
6
6
  "profile",
7
7
  "recipe",
8
- "user",
9
8
  ];
10
9
  //# sourceMappingURL=report_target_type.js.map
@@ -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;IACR,MAAM;CACE,CAAC"}
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,6 @@
1
+ export * from "./severity";
2
+ export * from "./submission";
3
+ export * from "./submission_status";
4
+ export * from "./suggestion";
5
+ export * from "./suggestion_category";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export declare const SEVERITY_VALUES: readonly ["low", "medium", "high"];
2
+ export type Severity = (typeof SEVERITY_VALUES)[number];
3
+ //# sourceMappingURL=severity.d.ts.map
@@ -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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SEVERITY_VALUES = void 0;
4
+ exports.SEVERITY_VALUES = ["low", "medium", "high"];
5
+ //# sourceMappingURL=severity.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=submission.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submission.js","sourceRoot":"","sources":["../../../src/types/submission/submission.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export declare const SUBMISSION_STATUS_VALUES: readonly ["approved", "pending", "rejected"];
2
+ export type SubmissionStatus = (typeof SUBMISSION_STATUS_VALUES)[number];
3
+ //# sourceMappingURL=submission_status.d.ts.map
@@ -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,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUBMISSION_STATUS_VALUES = void 0;
4
+ exports.SUBMISSION_STATUS_VALUES = [
5
+ "approved",
6
+ "pending",
7
+ "rejected",
8
+ ];
9
+ //# sourceMappingURL=submission_status.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=suggestion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suggestion.js","sourceRoot":"","sources":["../../../src/types/submission/suggestion.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export declare const SUGGESTION_CATEGORY_VALUES: readonly ["missing_info", "unclear_instruction", "image_quality", "nutrition", "safety"];
2
+ export type SuggestionCategory = (typeof SUGGESTION_CATEGORY_VALUES)[number];
3
+ //# sourceMappingURL=suggestion_category.d.ts.map
@@ -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
@@ -1,45 +1,45 @@
1
- {
2
- "name": "@cravery/core",
3
- "version": "0.0.32",
4
- "description": "Clean architecture foundation for Cravery",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "default": "./dist/index.js"
11
- },
12
- "./types": {
13
- "types": "./dist/types/index.d.ts",
14
- "default": "./dist/types/index.js"
15
- },
16
- "./config": {
17
- "types": "./dist/config/index.d.ts",
18
- "default": "./dist/config/index.js"
19
- }
20
- },
21
- "typesVersions": {
22
- "*": {
23
- "types": [
24
- "dist/types/index.d.ts"
25
- ],
26
- "config": [
27
- "dist/config/index.d.ts"
28
- ]
29
- }
30
- },
31
- "scripts": {
32
- "build": "tsc",
33
- "build:watch": "tsc --watch",
34
- "clean": "rimraf dist && npm run build"
35
- },
36
- "keywords": [],
37
- "devDependencies": {
38
- "rimraf": "^6.1.2",
39
- "typescript": "^5.9.3"
40
- },
41
- "files": [
42
- "dist/**/*",
43
- "src/**/*"
44
- ]
45
- }
1
+ {
2
+ "name": "@cravery/core",
3
+ "version": "0.0.34",
4
+ "description": "Clean architecture foundation for Cravery",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./types": {
13
+ "types": "./dist/types/index.d.ts",
14
+ "default": "./dist/types/index.js"
15
+ },
16
+ "./config": {
17
+ "types": "./dist/config/index.d.ts",
18
+ "default": "./dist/config/index.js"
19
+ }
20
+ },
21
+ "typesVersions": {
22
+ "*": {
23
+ "types": [
24
+ "dist/types/index.d.ts"
25
+ ],
26
+ "config": [
27
+ "dist/config/index.d.ts"
28
+ ]
29
+ }
30
+ },
31
+ "scripts": {
32
+ "build": "tsc",
33
+ "build:watch": "tsc --watch",
34
+ "clean": "rimraf dist && npm run build"
35
+ },
36
+ "keywords": [],
37
+ "devDependencies": {
38
+ "rimraf": "^6.1.2",
39
+ "typescript": "^5.9.3"
40
+ },
41
+ "files": [
42
+ "dist/**/*",
43
+ "src/**/*"
44
+ ]
45
+ }