@pastelarai/pastelarai-shared-types 1.0.22 → 1.0.23
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PRODUCTSALETYPE = exports.EXCEPTION = exports.CONTENTTYPE = exports.UNIT = exports.TMSTATUS = exports.TASKACTIONTYPE = exports.CURRENCYDISPLAYTYPE = exports.VALUETYPE = exports.STATUS = exports.FORECASTVIEWTYPE = exports.VIEWTYPE = void 0;
|
|
3
|
+
exports.TASKSTATUS = exports.PRODUCTSALETYPE = exports.EXCEPTION = exports.CONTENTTYPE = exports.UNIT = exports.TMSTATUS = exports.TASKACTIONTYPE = exports.CURRENCYDISPLAYTYPE = exports.VALUETYPE = exports.STATUS = exports.FORECASTVIEWTYPE = exports.VIEWTYPE = void 0;
|
|
4
4
|
var VIEWTYPE;
|
|
5
5
|
(function (VIEWTYPE) {
|
|
6
6
|
VIEWTYPE["VIEW"] = "viewMode";
|
|
@@ -66,3 +66,9 @@ var PRODUCTSALETYPE;
|
|
|
66
66
|
PRODUCTSALETYPE["WHOLE"] = "whole";
|
|
67
67
|
PRODUCTSALETYPE["PACK"] = "pack";
|
|
68
68
|
})(PRODUCTSALETYPE || (exports.PRODUCTSALETYPE = PRODUCTSALETYPE = {}));
|
|
69
|
+
var TASKSTATUS;
|
|
70
|
+
(function (TASKSTATUS) {
|
|
71
|
+
TASKSTATUS["SCHEDULED"] = "Scheduled";
|
|
72
|
+
TASKSTATUS["LATE"] = "Late";
|
|
73
|
+
TASKSTATUS["DONE"] = "Done";
|
|
74
|
+
})(TASKSTATUS || (exports.TASKSTATUS = TASKSTATUS = {}));
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { PRODUCTSALETYPE } from "src/data/types";
|
|
2
|
-
import { TaskProduct } from "./products";
|
|
1
|
+
import { PRODUCTSALETYPE, TASKSTATUS } from "src/data/types";
|
|
2
|
+
import { IdNameAvatar, TaskProduct } from "./products";
|
|
3
3
|
import { ProductInRange } from "./ranges";
|
|
4
|
-
import { Assignee } from "./team";
|
|
5
4
|
export interface TaskProduction extends TaskProduct {
|
|
6
5
|
product_id: string;
|
|
7
6
|
product_name: string;
|
|
8
7
|
format_id: string;
|
|
9
|
-
format_name: string;
|
|
10
8
|
sale_type: PRODUCTSALETYPE;
|
|
11
|
-
assignees_list:
|
|
9
|
+
assignees_list: IdNameAvatar[];
|
|
12
10
|
urgent: boolean;
|
|
13
11
|
quantity: {
|
|
14
12
|
value: number;
|
|
15
13
|
unit: string;
|
|
16
14
|
};
|
|
17
15
|
current_quantity?: number;
|
|
16
|
+
status?: TASKSTATUS;
|
|
18
17
|
}
|
|
19
18
|
export interface TMInProduction {
|
|
20
|
-
|
|
19
|
+
team_member: IdNameAvatar;
|
|
21
20
|
assigned: number;
|
|
22
21
|
unassigned: number;
|
|
23
22
|
total: number;
|
|
24
|
-
conflict
|
|
23
|
+
conflict?: boolean;
|
|
25
24
|
}
|
|
26
25
|
export interface ProductionDay {
|
|
27
26
|
date: string;
|
|
@@ -41,16 +40,17 @@ export interface ProductionDay {
|
|
|
41
40
|
total: number;
|
|
42
41
|
};
|
|
43
42
|
}
|
|
43
|
+
export interface ContentDayProd {
|
|
44
|
+
products_list: ProductInRange[];
|
|
45
|
+
}
|
|
44
46
|
export interface ProductionWeek {
|
|
45
|
-
_id?: string;
|
|
46
47
|
start_date: string;
|
|
47
48
|
model: boolean;
|
|
48
49
|
model_name: string;
|
|
49
50
|
source: string;
|
|
50
|
-
content_per_day:
|
|
51
|
-
products_list: ProductInRange[];
|
|
52
|
-
}[];
|
|
51
|
+
content_per_day: ContentDayProd[];
|
|
53
52
|
products_list: ProductInRange[];
|
|
54
53
|
deck_tasks_list: TaskProduction[];
|
|
55
54
|
production_per_day: ProductionDay[];
|
|
55
|
+
_id?: string;
|
|
56
56
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IdName } from "./bill";
|
|
2
|
-
import {
|
|
2
|
+
import { Avatar, ProductInRange } from "./ranges";
|
|
3
3
|
export interface Format {
|
|
4
4
|
_id: string;
|
|
5
5
|
name: string;
|
|
@@ -67,7 +67,7 @@ export interface Product {
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
export interface IdNameAvatar extends IdName {
|
|
70
|
-
avatar:
|
|
70
|
+
avatar: Avatar;
|
|
71
71
|
}
|
|
72
72
|
export interface DestructuredProduct extends Omit<Product, "composition" | "_id">, ProductInRange {
|
|
73
73
|
composition: Composition;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PRODUCTSALETYPE } from "src/data/types";
|
|
2
|
-
|
|
2
|
+
import { IdNameAvatar } from "./products";
|
|
3
|
+
export interface Avatar {
|
|
3
4
|
color: string;
|
|
4
5
|
initials: string;
|
|
5
6
|
}
|
|
@@ -31,14 +32,13 @@ export interface Range {
|
|
|
31
32
|
name: string;
|
|
32
33
|
start_date: string;
|
|
33
34
|
end_date?: string;
|
|
34
|
-
avatar:
|
|
35
|
+
avatar: Avatar;
|
|
35
36
|
description: string;
|
|
36
37
|
content_per_day: DayContent[];
|
|
37
38
|
total: TotalContent;
|
|
38
39
|
}
|
|
39
40
|
export interface RangeInSalesDay {
|
|
40
|
-
|
|
41
|
-
avatar: RangeAvatar;
|
|
41
|
+
range: IdNameAvatar;
|
|
42
42
|
margin: number;
|
|
43
43
|
quantity: number;
|
|
44
44
|
}
|
|
@@ -53,15 +53,15 @@ export interface SalesPlanWeek {
|
|
|
53
53
|
week_margin: number;
|
|
54
54
|
week_quantity: number;
|
|
55
55
|
sales_per_day: SalesPlanDay[];
|
|
56
|
-
ranges_list:
|
|
56
|
+
ranges_list: RangeInSalesDay[];
|
|
57
57
|
}
|
|
58
|
-
export interface
|
|
58
|
+
export interface SimplifiedSalesPlanDay {
|
|
59
59
|
date: string;
|
|
60
|
-
ranges_list:
|
|
60
|
+
ranges_list: IdNameAvatar[];
|
|
61
61
|
}
|
|
62
62
|
export interface SalesPlanMonth {
|
|
63
63
|
start_date: string;
|
|
64
64
|
month_margin: number;
|
|
65
65
|
month_quantity: number;
|
|
66
|
-
sales_per_day:
|
|
66
|
+
sales_per_day: SimplifiedSalesPlanDay[];
|
|
67
67
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { EXCEPTION } from "src/data/types";
|
|
2
|
+
import { Avatar } from "./ranges";
|
|
3
|
+
import { IdNameAvatar } from "./products";
|
|
2
4
|
export interface TeamMember {
|
|
3
|
-
avatar:
|
|
4
|
-
color: string;
|
|
5
|
-
initials: string;
|
|
6
|
-
};
|
|
5
|
+
avatar: Avatar;
|
|
7
6
|
name: string;
|
|
8
7
|
position: string;
|
|
9
8
|
hourly_pay?: number;
|
|
@@ -30,7 +29,7 @@ export interface Absence {
|
|
|
30
29
|
shift: number;
|
|
31
30
|
}
|
|
32
31
|
export interface TeamExceptions {
|
|
33
|
-
|
|
32
|
+
tm_id: string;
|
|
34
33
|
type: EXCEPTION;
|
|
35
34
|
start_date: string;
|
|
36
35
|
end_date?: string;
|
|
@@ -47,22 +46,12 @@ export interface ShiftList {
|
|
|
47
46
|
time_in: string | null;
|
|
48
47
|
time_out: string | null;
|
|
49
48
|
}
|
|
50
|
-
export interface
|
|
51
|
-
|
|
52
|
-
avatar: {
|
|
53
|
-
color: string;
|
|
54
|
-
initials: string;
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
export interface EmployeesShiftDB {
|
|
58
|
-
assignee: Assignee;
|
|
49
|
+
export interface EmployeesShift {
|
|
50
|
+
team_member: IdNameAvatar;
|
|
59
51
|
scheduled_off: boolean;
|
|
60
52
|
shifts_list: ShiftList[];
|
|
61
|
-
}
|
|
62
|
-
export interface EmployeesShift extends EmployeesShiftDB {
|
|
63
53
|
duration: number;
|
|
64
54
|
labor_cost: number;
|
|
65
|
-
editMode?: boolean;
|
|
66
55
|
}
|
|
67
56
|
export interface TeamScheduleDay {
|
|
68
57
|
date: string;
|