@movalib/movalib-commons 1.51.2 → 1.51.3
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.
|
@@ -29,6 +29,7 @@ var Employee = /** @class */ (function (_super) {
|
|
|
29
29
|
if (prestations === void 0) { prestations = []; }
|
|
30
30
|
if (schedules === void 0) { schedules = []; }
|
|
31
31
|
var _this = _super.call(this, id, roles, firstname, lastname, avatar) || this;
|
|
32
|
+
_this.avatar = '';
|
|
32
33
|
_this.firstname = '';
|
|
33
34
|
_this.lastname = '';
|
|
34
35
|
_this.absences = absences;
|
|
@@ -8,6 +8,7 @@ import Product from "./Product";
|
|
|
8
8
|
import Supplier from "./Supplier";
|
|
9
9
|
import Document from "./Document";
|
|
10
10
|
import Address from "./Address";
|
|
11
|
+
import Employee from "./Employee";
|
|
11
12
|
export default class Event {
|
|
12
13
|
id: string;
|
|
13
14
|
ownerId: number;
|
|
@@ -50,6 +51,8 @@ export default class Event {
|
|
|
50
51
|
vehicleDepositDateRequest?: Date;
|
|
51
52
|
/** Propriété calculée pas toujours présent, pour savoir si les produits de cet event on été commandé au grossistes */
|
|
52
53
|
hasProductOrdered?: boolean;
|
|
54
|
+
/** Eventuels opérateurs associés à l'event */
|
|
55
|
+
employees?: Employee[];
|
|
53
56
|
constructor(id: string, ownerId: number, type: EventType, title: string, garageName: string, garageId: number, state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[], guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean, editable?: boolean);
|
|
54
57
|
static getPrestationsList(event: Event): string[];
|
|
55
58
|
}
|
package/package.json
CHANGED
package/src/models/Employee.ts
CHANGED
package/src/models/Event.ts
CHANGED
|
@@ -8,6 +8,7 @@ import Product from "./Product";
|
|
|
8
8
|
import Supplier from "./Supplier";
|
|
9
9
|
import Document from "./Document";
|
|
10
10
|
import Address from "./Address";
|
|
11
|
+
import Employee from "./Employee";
|
|
11
12
|
|
|
12
13
|
export default class Event {
|
|
13
14
|
|
|
@@ -55,6 +56,9 @@ export default class Event {
|
|
|
55
56
|
/** Propriété calculée pas toujours présent, pour savoir si les produits de cet event on été commandé au grossistes */
|
|
56
57
|
hasProductOrdered?: boolean;
|
|
57
58
|
|
|
59
|
+
/** Eventuels opérateurs associés à l'event */
|
|
60
|
+
employees?: Employee[];
|
|
61
|
+
|
|
58
62
|
constructor(id: string, ownerId: number, type : EventType, title: string, garageName: string, garageId: number,
|
|
59
63
|
state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[],
|
|
60
64
|
guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean, editable?: boolean)
|