@pastelarai/pastelarai-shared-types 1.0.151 → 1.0.155

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.
@@ -11,9 +11,6 @@ export interface Format {
11
11
  diameter?: number;
12
12
  rect_width?: number;
13
13
  rect_length?: number;
14
- isSoldWhole: boolean;
15
- isSoldByPortion: boolean;
16
- isSoldByPack: boolean;
17
14
  }
18
15
  export interface FormatDB extends Omit<Format, 'selected'> {
19
16
  category?: PRODUCTCATEGORY;
@@ -25,6 +22,7 @@ export interface CompositionBase {
25
22
  content_list: Content[];
26
23
  tasks_list: TaskProduct[];
27
24
  costs: Costs;
25
+ margin_status?: number;
28
26
  }
29
27
  export type PricingType = "whole_pricing" | "portion_pricing" | "pack_pricing";
30
28
  export type Composition = CompositionBase & {
@@ -39,7 +37,8 @@ export interface Costs {
39
37
  export interface Pricing {
40
38
  price: number;
41
39
  margin: number;
42
- margin_percentage: number;
40
+ margin_percentage?: number;
41
+ margin_status?: number;
43
42
  mult_factor: number;
44
43
  nb_portions?: number;
45
44
  size_pack?: number;
@@ -58,6 +57,7 @@ export interface Product {
58
57
  base_format: string;
59
58
  composition: Composition[];
60
59
  _id?: string;
60
+ margin_status?: number;
61
61
  using?: {
62
62
  ranges_list: IdNameAvatar[];
63
63
  customer_orders_list: Customer[];
@@ -108,7 +108,6 @@ export interface WorkingFormat extends Format {
108
108
  type: boolean;
109
109
  nb_pers: boolean;
110
110
  size: boolean;
111
- type_sale: boolean;
112
111
  duplicate: boolean;
113
112
  };
114
113
  }
@@ -133,6 +132,7 @@ export interface WorkingProduct {
133
132
  base_format: string;
134
133
  composition: WorkingComposition[];
135
134
  _id?: string;
135
+ margin_status?: number;
136
136
  using?: {
137
137
  ranges_list: IdNameAvatar[];
138
138
  };
@@ -163,6 +163,7 @@ export interface SharableCompositionBase {
163
163
  content_list: SharableContent[];
164
164
  tasks_list: SharableTaskProduct[];
165
165
  costs: Costs;
166
+ margin_status?: number;
166
167
  }
167
168
  export type SharableComposition = SharableCompositionBase & {
168
169
  [key in PricingType]?: Pricing;
@@ -184,6 +185,7 @@ export interface SharableProduct {
184
185
  base_format: string;
185
186
  composition: SharableComposition[];
186
187
  _id?: string;
188
+ margin_status?: number;
187
189
  using?: {
188
190
  ranges_list: IdNameAvatar[];
189
191
  customer_orders_list: Customer[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pastelarai/pastelarai-shared-types",
3
- "version": "1.0.151",
3
+ "version": "1.0.155",
4
4
  "description": "Shared types for PastelarAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",