@pastelarai/pastelarai-shared-types 1.0.60 → 1.0.62

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.
@@ -39,7 +39,7 @@ export declare enum UNIT {
39
39
  }
40
40
  export declare enum TASKUNIT {
41
41
  GRAM = "g",
42
- PIECE = "piece",
42
+ UNIT = "unit",
43
43
  PATON = "paton"
44
44
  }
45
45
  export declare enum USER_UNIT {
@@ -51,7 +51,7 @@ var UNIT;
51
51
  var TASKUNIT;
52
52
  (function (TASKUNIT) {
53
53
  TASKUNIT["GRAM"] = "g";
54
- TASKUNIT["PIECE"] = "piece";
54
+ TASKUNIT["UNIT"] = "unit";
55
55
  TASKUNIT["PATON"] = "paton";
56
56
  })(TASKUNIT || (exports.TASKUNIT = TASKUNIT = {}));
57
57
  var USER_UNIT;
@@ -14,6 +14,10 @@ export interface Format {
14
14
  isSoldByPortion: boolean;
15
15
  isSoldByPack: boolean;
16
16
  selected?: boolean;
17
+ creationMode?: "CUS" | "GLO";
18
+ }
19
+ export interface FormatDB extends Omit<Format, 'selected'> {
20
+ category?: PRODUCTCATEGORY;
17
21
  }
18
22
  export interface CompositionBase {
19
23
  format: Format;
@@ -38,11 +38,11 @@ export interface Absence {
38
38
  }
39
39
  export interface TeamExceptions {
40
40
  tm_id: string;
41
- type: EXCEPTION;
41
+ type: EXCEPTION | null;
42
42
  start_date: string;
43
43
  end_date?: string;
44
44
  duration?: number;
45
- shift?: string;
45
+ shifts?: number[];
46
46
  description?: string;
47
47
  _id?: string;
48
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pastelarai/pastelarai-shared-types",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "Shared types for PastelarAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",