@pastelarai/pastelarai-shared-types 1.0.138 → 1.0.140

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/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from "./interfaces/products";
8
8
  export * from "./interfaces/ranges";
9
9
  export * from "./interfaces/recipes";
10
10
  export * from "./interfaces/search";
11
+ export * from "./interfaces/stripe";
11
12
  export * from "./interfaces/suppliers";
12
13
  export * from "./interfaces/team";
13
14
  export * from "./interfaces/user";
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ __exportStar(require("./interfaces/products"), exports);
24
24
  __exportStar(require("./interfaces/ranges"), exports);
25
25
  __exportStar(require("./interfaces/recipes"), exports);
26
26
  __exportStar(require("./interfaces/search"), exports);
27
+ __exportStar(require("./interfaces/stripe"), exports);
27
28
  __exportStar(require("./interfaces/suppliers"), exports);
28
29
  __exportStar(require("./interfaces/team"), exports);
29
30
  __exportStar(require("./interfaces/user"), exports);
@@ -21,7 +21,8 @@ export interface IngredientDB {
21
21
  risk?: RISK;
22
22
  forecast?: string;
23
23
  }
24
- export interface Ingredient extends IngredientDB {
24
+ export interface Ingredient extends Omit<IngredientDB, 'category'> {
25
+ category?: INGREDIENTCATEGORY | null;
25
26
  _id?: string;
26
27
  using?: {
27
28
  bills_list: BillWithoutIngredientsList[];
@@ -0,0 +1,16 @@
1
+ export interface StripeProduct {
2
+ id: string;
3
+ name: string;
4
+ description: string | null;
5
+ metadata: Record<string, string>;
6
+ prices: {
7
+ id: string;
8
+ amount: number | null;
9
+ currency: string;
10
+ interval: string | undefined;
11
+ metadata: Record<string, string>;
12
+ }[];
13
+ }
14
+ export interface CheckoutSessionResponse {
15
+ url: string | null;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pastelarai/pastelarai-shared-types",
3
- "version": "1.0.138",
3
+ "version": "1.0.140",
4
4
  "description": "Shared types for PastelarAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",