@pastelarai/pastelarai-shared-types 1.0.152 → 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.
@@ -22,6 +22,7 @@ export interface CompositionBase {
22
22
  content_list: Content[];
23
23
  tasks_list: TaskProduct[];
24
24
  costs: Costs;
25
+ margin_status?: number;
25
26
  }
26
27
  export type PricingType = "whole_pricing" | "portion_pricing" | "pack_pricing";
27
28
  export type Composition = CompositionBase & {
@@ -36,7 +37,8 @@ export interface Costs {
36
37
  export interface Pricing {
37
38
  price: number;
38
39
  margin: number;
39
- margin_percentage: number;
40
+ margin_percentage?: number;
41
+ margin_status?: number;
40
42
  mult_factor: number;
41
43
  nb_portions?: number;
42
44
  size_pack?: number;
@@ -55,6 +57,7 @@ export interface Product {
55
57
  base_format: string;
56
58
  composition: Composition[];
57
59
  _id?: string;
60
+ margin_status?: number;
58
61
  using?: {
59
62
  ranges_list: IdNameAvatar[];
60
63
  customer_orders_list: Customer[];
@@ -129,6 +132,7 @@ export interface WorkingProduct {
129
132
  base_format: string;
130
133
  composition: WorkingComposition[];
131
134
  _id?: string;
135
+ margin_status?: number;
132
136
  using?: {
133
137
  ranges_list: IdNameAvatar[];
134
138
  };
@@ -159,6 +163,7 @@ export interface SharableCompositionBase {
159
163
  content_list: SharableContent[];
160
164
  tasks_list: SharableTaskProduct[];
161
165
  costs: Costs;
166
+ margin_status?: number;
162
167
  }
163
168
  export type SharableComposition = SharableCompositionBase & {
164
169
  [key in PricingType]?: Pricing;
@@ -180,6 +185,7 @@ export interface SharableProduct {
180
185
  base_format: string;
181
186
  composition: SharableComposition[];
182
187
  _id?: string;
188
+ margin_status?: number;
183
189
  using?: {
184
190
  ranges_list: IdNameAvatar[];
185
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.152",
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",