@pastelarai/pastelarai-shared-types 1.0.61 → 1.0.63
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/data/types.d.ts
CHANGED
package/dist/data/types.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -27,4 +27,5 @@ __exportStar(require("./data/types"), exports);
|
|
|
27
27
|
__exportStar(require("./data/categories"), exports);
|
|
28
28
|
__exportStar(require("./interfaces/openai"), exports);
|
|
29
29
|
__exportStar(require("./interfaces/home"), exports);
|
|
30
|
+
__exportStar(require("./interfaces/search"), exports);
|
|
30
31
|
__exportStar(require("./utils/utils"), exports);
|
|
@@ -3,7 +3,7 @@ import { PRODUCTCATEGORY } from "src/data/categories";
|
|
|
3
3
|
import { IdName } from "./bill";
|
|
4
4
|
import { Avatar, ProductInRange } from "./ranges";
|
|
5
5
|
export interface Format {
|
|
6
|
-
_id
|
|
6
|
+
_id?: string;
|
|
7
7
|
name: string;
|
|
8
8
|
type: string;
|
|
9
9
|
nb_pers: number;
|
|
@@ -13,19 +13,17 @@ export interface Format {
|
|
|
13
13
|
isSoldWhole: boolean;
|
|
14
14
|
isSoldByPortion: boolean;
|
|
15
15
|
isSoldByPack: boolean;
|
|
16
|
-
selected?: boolean;
|
|
17
16
|
}
|
|
18
17
|
export interface FormatDB extends Omit<Format, 'selected'> {
|
|
19
18
|
category?: PRODUCTCATEGORY;
|
|
20
19
|
}
|
|
21
20
|
export interface CompositionBase {
|
|
22
21
|
format: Format;
|
|
23
|
-
units_per_batch
|
|
22
|
+
units_per_batch: number;
|
|
24
23
|
stock?: number;
|
|
25
|
-
content_list
|
|
24
|
+
content_list: ProductContent[];
|
|
26
25
|
tasks_list: TaskProduct[];
|
|
27
|
-
costs
|
|
28
|
-
selected?: boolean;
|
|
26
|
+
costs: Costs;
|
|
29
27
|
}
|
|
30
28
|
export type PricingType = "whole_pricing" | "portion_pricing" | "pack_pricing";
|
|
31
29
|
export type Composition = CompositionBase & {
|