@cravery/core 0.0.36 → 0.0.38

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/README.md CHANGED
@@ -25,7 +25,7 @@ npm install firebase-admin firebase-functions
25
25
  import { ... } from "@cravery/core";
26
26
 
27
27
  // Import types only
28
- import { ... } from "@cravery/core/types";
28
+ import { ... } from "@cravery/core";
29
29
 
30
30
  // Import config only
31
31
  import { ... } from "@cravery/core/config";
@@ -1,13 +1,15 @@
1
1
  export declare const COLLECTIONS: {
2
+ Comments: string;
3
+ Content: string;
2
4
  Equipment: string;
5
+ Feedback: string;
3
6
  Followers: string;
4
7
  Ingredients: string;
5
- Moderations: string;
6
8
  Profiles: string;
7
- RecipeQueue: string;
8
9
  Recipes: string;
9
10
  Reports: string;
10
11
  Settings: string;
12
+ Submissions: string;
11
13
  Subscriptions: string;
12
14
  Users: string;
13
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/config/collections.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;CAYvB,CAAC"}
1
+ {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/config/collections.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;CAcvB,CAAC"}
@@ -2,15 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.COLLECTIONS = void 0;
4
4
  exports.COLLECTIONS = {
5
+ Comments: "comments",
6
+ Content: "content",
5
7
  Equipment: "equipment",
8
+ Feedback: "feedback",
6
9
  Followers: "followers",
7
10
  Ingredients: "ingredients",
8
- Moderations: "moderations",
9
11
  Profiles: "profiles",
10
- RecipeQueue: "recipe_queue",
11
12
  Recipes: "recipes",
12
13
  Reports: "reports",
13
14
  Settings: "settings",
15
+ Submissions: "submissions",
14
16
  Subscriptions: "subscriptions",
15
17
  Users: "users",
16
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/config/collections.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,eAAe;IAC9B,KAAK,EAAE,OAAO;CACf,CAAC"}
1
+ {"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/config/collections.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,KAAK,EAAE,OAAO;CACf,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Entity, Timestamp } from "../core";
2
+ export interface RecipeComment extends Entity {
3
+ recipeId: string;
4
+ userId: string;
5
+ content: string;
6
+ parentId?: string;
7
+ deletedAt?: Timestamp;
8
+ }
9
+ //# sourceMappingURL=comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,aAAc,SAAQ,MAAM;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.js","sourceRoot":"","sources":["../../../src/types/recipe/comment.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
1
  export * from "./allergen";
2
+ export * from "./comment";
2
3
  export * from "./cuisine";
3
4
  export * from "./dietary_tag";
4
5
  export * from "./difficulty";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./allergen"), exports);
18
+ __exportStar(require("./comment"), exports);
18
19
  __exportStar(require("./cuisine"), exports);
19
20
  __exportStar(require("./dietary_tag"), exports);
20
21
  __exportStar(require("./difficulty"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,8CAA4B;AAC5B,8CAA4B;AAC5B,kDAAgC;AAChC,kDAAgC;AAChC,2CAAyB;AACzB,8CAA4B;AAC5B,qDAAmC;AACnC,gDAA8B;AAC9B,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/recipe/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,4CAA0B;AAC1B,gDAA8B;AAC9B,+CAA6B;AAC7B,8CAA4B;AAC5B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,8CAA4B;AAC5B,8CAA4B;AAC5B,kDAAgC;AAChC,kDAAgC;AAChC,2CAAyB;AACzB,8CAA4B;AAC5B,qDAAmC;AACnC,gDAA8B;AAC9B,yCAAuB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cravery/core",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "Clean architecture foundation for Cravery",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,13 +1,15 @@
1
1
  export const COLLECTIONS = {
2
+ Comments: "comments",
3
+ Content: "content",
2
4
  Equipment: "equipment",
5
+ Feedback: "feedback",
3
6
  Followers: "followers",
4
7
  Ingredients: "ingredients",
5
- Moderations: "moderations",
6
8
  Profiles: "profiles",
7
- RecipeQueue: "recipe_queue",
8
9
  Recipes: "recipes",
9
10
  Reports: "reports",
10
11
  Settings: "settings",
12
+ Submissions: "submissions",
11
13
  Subscriptions: "subscriptions",
12
14
  Users: "users",
13
15
  };
@@ -0,0 +1,9 @@
1
+ import { Entity, Timestamp } from "../core";
2
+
3
+ export interface RecipeComment extends Entity {
4
+ recipeId: string;
5
+ userId: string;
6
+ content: string;
7
+ parentId?: string;
8
+ deletedAt?: Timestamp;
9
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./allergen";
2
+ export * from "./comment";
2
3
  export * from "./cuisine";
3
4
  export * from "./dietary_tag";
4
5
  export * from "./difficulty";