@movalib/movalib-commons 1.0.78 → 1.0.79
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.
|
@@ -4,6 +4,7 @@ import Prestation from "./Prestation";
|
|
|
4
4
|
import Customer from "./Customer";
|
|
5
5
|
import Vehicle from "./Vehicle";
|
|
6
6
|
import Operation from "./Operation";
|
|
7
|
+
import Product from "./Product";
|
|
7
8
|
export default class Event {
|
|
8
9
|
id: string;
|
|
9
10
|
ownerId: number;
|
|
@@ -16,6 +17,7 @@ export default class Event {
|
|
|
16
17
|
state: EventState;
|
|
17
18
|
prestations?: Prestation[];
|
|
18
19
|
operations?: Operation[];
|
|
20
|
+
products?: Product[];
|
|
19
21
|
/**
|
|
20
22
|
* Un tableau d'invités, dans notre cas d'usage nous n'aurons qu'un invité de type Client
|
|
21
23
|
*/
|
|
@@ -33,7 +35,7 @@ export default class Event {
|
|
|
33
35
|
* Eventuel numéro de devis rattaché à l'évent
|
|
34
36
|
*/
|
|
35
37
|
quoteId?: number;
|
|
36
|
-
constructor({ id, notes, ownerId, type, title, garageName, garageId, state, start, end, prestations, operations, guestsId, vehicleId, quoteId }: {
|
|
38
|
+
constructor({ id, notes, ownerId, type, title, garageName, garageId, state, start, end, prestations, operations, products, guestsId, vehicleId, quoteId }: {
|
|
37
39
|
id: string;
|
|
38
40
|
notes?: string;
|
|
39
41
|
ownerId: number;
|
|
@@ -46,6 +48,7 @@ export default class Event {
|
|
|
46
48
|
end?: Date;
|
|
47
49
|
prestations?: Prestation[];
|
|
48
50
|
operations?: Operation[];
|
|
51
|
+
products: Product[];
|
|
49
52
|
guestsId?: string[];
|
|
50
53
|
vehicleId?: number;
|
|
51
54
|
quoteId?: number;
|
package/dist/src/models/Event.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var Event = /** @class */ (function () {
|
|
4
4
|
function Event(_a) {
|
|
5
|
-
var id = _a.id, notes = _a.notes, ownerId = _a.ownerId, type = _a.type, title = _a.title, garageName = _a.garageName, garageId = _a.garageId, state = _a.state, start = _a.start, end = _a.end, prestations = _a.prestations, operations = _a.operations, guestsId = _a.guestsId, vehicleId = _a.vehicleId, quoteId = _a.quoteId;
|
|
5
|
+
var id = _a.id, notes = _a.notes, ownerId = _a.ownerId, type = _a.type, title = _a.title, garageName = _a.garageName, garageId = _a.garageId, state = _a.state, start = _a.start, end = _a.end, prestations = _a.prestations, operations = _a.operations, products = _a.products, guestsId = _a.guestsId, vehicleId = _a.vehicleId, quoteId = _a.quoteId;
|
|
6
6
|
this.id = id;
|
|
7
7
|
this.notes = notes;
|
|
8
8
|
this.ownerId = ownerId;
|
|
@@ -15,6 +15,7 @@ var Event = /** @class */ (function () {
|
|
|
15
15
|
this.end = end ? new Date(end) : undefined;
|
|
16
16
|
this.operations = operations;
|
|
17
17
|
this.prestations = prestations;
|
|
18
|
+
this.products = products;
|
|
18
19
|
this.guestsId = guestsId;
|
|
19
20
|
this.vehicleId = vehicleId;
|
|
20
21
|
this.quoteId = quoteId;
|
package/package.json
CHANGED
package/src/models/Event.ts
CHANGED
|
@@ -4,6 +4,7 @@ import Prestation from "./Prestation";
|
|
|
4
4
|
import Customer from "./Customer";
|
|
5
5
|
import Vehicle from "./Vehicle";
|
|
6
6
|
import Operation from "./Operation";
|
|
7
|
+
import Product from "./Product";
|
|
7
8
|
|
|
8
9
|
export default class Event {
|
|
9
10
|
|
|
@@ -19,6 +20,7 @@ export default class Event {
|
|
|
19
20
|
state: EventState;
|
|
20
21
|
prestations?: Prestation[];
|
|
21
22
|
operations?: Operation[];
|
|
23
|
+
products?: Product[];
|
|
22
24
|
/**
|
|
23
25
|
* Un tableau d'invités, dans notre cas d'usage nous n'aurons qu'un invité de type Client
|
|
24
26
|
*/
|
|
@@ -37,9 +39,9 @@ export default class Event {
|
|
|
37
39
|
*/
|
|
38
40
|
quoteId?: number;
|
|
39
41
|
|
|
40
|
-
constructor({ id, notes, ownerId, type, title, garageName, garageId, state, start, end, prestations, operations, guestsId, vehicleId, quoteId }
|
|
42
|
+
constructor({ id, notes, ownerId, type, title, garageName, garageId, state, start, end, prestations, operations, products, guestsId, vehicleId, quoteId }
|
|
41
43
|
: { id: string; notes?: string; ownerId: number; type : EventType; title: string; garageName: string; garageId: number;
|
|
42
|
-
state: EventState; start?: Date; end?: Date, prestations?: Prestation[], operations?: Operation[],
|
|
44
|
+
state: EventState; start?: Date; end?: Date, prestations?: Prestation[], operations?: Operation[], products: Product[],
|
|
43
45
|
guestsId?: string[], vehicleId?: number, quoteId?: number})
|
|
44
46
|
{
|
|
45
47
|
this.id = id;
|
|
@@ -54,6 +56,7 @@ export default class Event {
|
|
|
54
56
|
this.end = end ? new Date(end) : undefined;
|
|
55
57
|
this.operations = operations;
|
|
56
58
|
this.prestations = prestations;
|
|
59
|
+
this.products = products;
|
|
57
60
|
this.guestsId = guestsId;
|
|
58
61
|
this.vehicleId = vehicleId;
|
|
59
62
|
this.quoteId = quoteId;
|