law-common 11.3.6-beta.4 → 11.3.6-beta.5
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.
|
@@ -54,4 +54,8 @@ export declare class TimesheetEntityModel extends BaseEntityModel<EntityEnum.TIM
|
|
|
54
54
|
windowStart: string;
|
|
55
55
|
windowEnd: string;
|
|
56
56
|
} | null;
|
|
57
|
+
static parseClassificationWindowsString(str: string): Array<{
|
|
58
|
+
startDay: number;
|
|
59
|
+
endDay: Nullable<number>;
|
|
60
|
+
}>;
|
|
57
61
|
}
|
|
@@ -136,6 +136,15 @@ class TimesheetEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
+
static parseClassificationWindowsString(str) {
|
|
140
|
+
return str.split(",").map((part) => {
|
|
141
|
+
const [start, end] = part.split("-");
|
|
142
|
+
return {
|
|
143
|
+
startDay: parseInt(start, 10),
|
|
144
|
+
endDay: (end === null || end === void 0 ? void 0 : end.toUpperCase()) === "EOM" ? null : parseInt(end, 10),
|
|
145
|
+
};
|
|
146
|
+
});
|
|
147
|
+
}
|
|
139
148
|
}
|
|
140
149
|
exports.TimesheetEntityModel = TimesheetEntityModel;
|
|
141
150
|
TimesheetEntityModel.relationConfigs = [
|