@movalib/movalib-commons 1.12.0 → 1.14.0
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.
|
@@ -2,6 +2,7 @@ import Address from "./Address";
|
|
|
2
2
|
import Schedule from "./Schedule";
|
|
3
3
|
import Prestation from "./Prestation";
|
|
4
4
|
import Supplier from "./Supplier";
|
|
5
|
+
import Document from "./Document";
|
|
5
6
|
import { OrderPreference, RegistrationState, SlotAlgorithm, SubscriptionPaymentInterval } from "../helpers/Enums";
|
|
6
7
|
import User from "./User";
|
|
7
8
|
export default class Garage {
|
|
@@ -30,5 +31,6 @@ export default class Garage {
|
|
|
30
31
|
subscriptionPaymentInterval?: SubscriptionPaymentInterval;
|
|
31
32
|
creationDate?: Date;
|
|
32
33
|
teamManagementActive?: boolean;
|
|
33
|
-
|
|
34
|
+
documents?: Document[];
|
|
35
|
+
constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, contactEmail?: string, logo?: string, suppliers?: Supplier[], documents?: Document[]);
|
|
34
36
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var Garage = /** @class */ (function () {
|
|
4
|
-
function Garage(id, adminId, name, address, workforce, prestations, schedules, contactPhone, contactEmail, logo, suppliers) {
|
|
4
|
+
function Garage(id, adminId, name, address, workforce, prestations, schedules, contactPhone, contactEmail, logo, suppliers, documents) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.adminId = adminId;
|
|
7
7
|
this.name = name;
|
|
@@ -13,6 +13,7 @@ var Garage = /** @class */ (function () {
|
|
|
13
13
|
this.contactEmail = contactEmail;
|
|
14
14
|
this.logo = logo;
|
|
15
15
|
this.suppliers = suppliers;
|
|
16
|
+
this.documents = documents;
|
|
16
17
|
}
|
|
17
18
|
return Garage;
|
|
18
19
|
}());
|
package/package.json
CHANGED
package/src/models/Garage.ts
CHANGED
|
@@ -2,6 +2,7 @@ import Address from "./Address";
|
|
|
2
2
|
import Schedule from "./Schedule";
|
|
3
3
|
import Prestation from "./Prestation";
|
|
4
4
|
import Supplier from "./Supplier";
|
|
5
|
+
import Document from "./Document";
|
|
5
6
|
import { OrderPreference, RegistrationState, SlotAlgorithm, SubscriptionPaymentInterval } from "../helpers/Enums";
|
|
6
7
|
import User from "./User";
|
|
7
8
|
|
|
@@ -32,6 +33,7 @@ export default class Garage {
|
|
|
32
33
|
subscriptionPaymentInterval?: SubscriptionPaymentInterval;
|
|
33
34
|
creationDate?: Date;
|
|
34
35
|
teamManagementActive?: boolean;
|
|
36
|
+
documents?: Document[];
|
|
35
37
|
|
|
36
38
|
constructor(
|
|
37
39
|
id:string,
|
|
@@ -44,7 +46,8 @@ export default class Garage {
|
|
|
44
46
|
contactPhone: string,
|
|
45
47
|
contactEmail?: string,
|
|
46
48
|
logo?:string,
|
|
47
|
-
suppliers?: Supplier[]
|
|
49
|
+
suppliers?: Supplier[],
|
|
50
|
+
documents?: Document[]
|
|
48
51
|
) {
|
|
49
52
|
this.id = id;
|
|
50
53
|
this.adminId = adminId;
|
|
@@ -57,5 +60,6 @@ export default class Garage {
|
|
|
57
60
|
this.contactEmail = contactEmail;
|
|
58
61
|
this.logo = logo;
|
|
59
62
|
this.suppliers = suppliers;
|
|
63
|
+
this.documents = documents;
|
|
60
64
|
}
|
|
61
65
|
}
|