@movalib/movalib-commons 1.68.30 → 1.68.32
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/src/models/Customer.d.ts +2 -1
- package/dist/src/models/Customer.js +2 -1
- package/dist/src/models/Event.d.ts +3 -1
- package/dist/src/models/Event.js +3 -1
- package/dist/src/models/Subscription.d.ts +5 -1
- package/dist/src/models/Subscription.js +5 -1
- package/package.json +1 -1
- package/src/components/MovaTableBack/MovaTableBack.tsx +0 -2
- package/src/models/Customer.ts +4 -1
- package/src/models/Event.ts +8 -1
- package/src/models/Subscription.ts +13 -1
|
@@ -30,6 +30,7 @@ export default class Customer extends User {
|
|
|
30
30
|
vatId?: string;
|
|
31
31
|
contactId?: number;
|
|
32
32
|
establishmentId?: number;
|
|
33
|
+
seCode?: string;
|
|
33
34
|
paymentMethods?: string;
|
|
34
35
|
discountRate?: number;
|
|
35
36
|
paymentPeriod?: number;
|
|
@@ -38,5 +39,5 @@ export default class Customer extends User {
|
|
|
38
39
|
constructor(id: string, roles: Role[] | undefined, firstname: string | undefined, lastname: string | undefined, avatar: string | undefined, addresses: Address[] | undefined, vehicles: Vehicle[], email: string | undefined, turnover: {
|
|
39
40
|
key: string;
|
|
40
41
|
value: number;
|
|
41
|
-
}[], type: CustomerType, companyName: string, companyPhoneNumber: string, billingAddress: Address | undefined, notes: string, siren?: string, vatId?: string, contactId?: number, establishmentId?: number, paymentMethods?: string, paymentPeriod?: number, discountRate?: number, billingEmail?: string, additionalEmails?: string);
|
|
42
|
+
}[], type: CustomerType, companyName: string, companyPhoneNumber: string, billingAddress: Address | undefined, notes: string, siren?: string, vatId?: string, contactId?: number, establishmentId?: number, paymentMethods?: string, paymentPeriod?: number, discountRate?: number, billingEmail?: string, additionalEmails?: string, seCode?: string);
|
|
42
43
|
}
|
|
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
var User_1 = __importDefault(require("./User"));
|
|
22
22
|
var Customer = /** @class */ (function (_super) {
|
|
23
23
|
__extends(Customer, _super);
|
|
24
|
-
function Customer(id, roles, firstname, lastname, avatar, addresses, vehicles, email, turnover, type, companyName, companyPhoneNumber, billingAddress, notes, siren, vatId, contactId, establishmentId, paymentMethods, paymentPeriod, discountRate, billingEmail, additionalEmails) {
|
|
24
|
+
function Customer(id, roles, firstname, lastname, avatar, addresses, vehicles, email, turnover, type, companyName, companyPhoneNumber, billingAddress, notes, siren, vatId, contactId, establishmentId, paymentMethods, paymentPeriod, discountRate, billingEmail, additionalEmails, seCode) {
|
|
25
25
|
if (roles === void 0) { roles = []; }
|
|
26
26
|
if (firstname === void 0) { firstname = ""; }
|
|
27
27
|
if (lastname === void 0) { lastname = ""; }
|
|
@@ -48,6 +48,7 @@ var Customer = /** @class */ (function (_super) {
|
|
|
48
48
|
_this.discountRate = discountRate;
|
|
49
49
|
_this.billingEmail = billingEmail;
|
|
50
50
|
_this.additionalEmails = additionalEmails;
|
|
51
|
+
_this.seCode = seCode;
|
|
51
52
|
return _this;
|
|
52
53
|
}
|
|
53
54
|
return Customer;
|
|
@@ -108,7 +108,9 @@ export default class Event {
|
|
|
108
108
|
lastQuoteCreationDate?: Date;
|
|
109
109
|
urgent?: boolean;
|
|
110
110
|
schedulable?: boolean;
|
|
111
|
-
|
|
111
|
+
deliveredInPerson?: boolean;
|
|
112
|
+
paid?: boolean;
|
|
113
|
+
constructor(id: string, ownerId: number, type: EventType, title: string, garageName: string, garageId: number, color: string, 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, resourceId?: number, garageVehicleId?: number, garageVehicleRequest?: boolean, vehicleAvailableNotificationTime?: Date, interventionEndTime?: Date, quoteLastSendingTime?: Date, invoiceSendingDate?: Date, orders?: Order[], creationDate?: Date, updatedDate?: Date, lastQuoteCreationDate?: Date, quoteFirstSendingTime?: Date, urgent?: boolean, garageVehicleBookings?: LoanVehicle[], goodForAgreement?: boolean, deliveredInPerson?: boolean, schedulable?: boolean, paid?: boolean);
|
|
112
114
|
static getPrestationsList(event: Event): string[];
|
|
113
115
|
static getCurrentQuote(event: Event): Document | null;
|
|
114
116
|
}
|
package/dist/src/models/Event.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var Enums_1 = require("../helpers/Enums");
|
|
4
4
|
var Event = /** @class */ (function () {
|
|
5
|
-
function Event(id, ownerId, type, title, garageName, garageId, color, state, garageAddress, start, end, prestations, operations, products, guestsId, vehicleId, quoteId, notes, vehicleAvailableNotified, editable, resourceId, garageVehicleId, garageVehicleRequest, vehicleAvailableNotificationTime, interventionEndTime, quoteLastSendingTime, invoiceSendingDate, orders, creationDate, updatedDate, lastQuoteCreationDate, quoteFirstSendingTime, urgent, garageVehicleBookings, goodForAgreement, schedulable) {
|
|
5
|
+
function Event(id, ownerId, type, title, garageName, garageId, color, state, garageAddress, start, end, prestations, operations, products, guestsId, vehicleId, quoteId, notes, vehicleAvailableNotified, editable, resourceId, garageVehicleId, garageVehicleRequest, vehicleAvailableNotificationTime, interventionEndTime, quoteLastSendingTime, invoiceSendingDate, orders, creationDate, updatedDate, lastQuoteCreationDate, quoteFirstSendingTime, urgent, garageVehicleBookings, goodForAgreement, deliveredInPerson, schedulable, paid) {
|
|
6
6
|
this.id = id;
|
|
7
7
|
this.notes = notes;
|
|
8
8
|
this.ownerId = ownerId;
|
|
@@ -51,6 +51,8 @@ var Event = /** @class */ (function () {
|
|
|
51
51
|
this.garageVehicleBookings = garageVehicleBookings;
|
|
52
52
|
this.goodForAgreement = goodForAgreement;
|
|
53
53
|
this.schedulable = schedulable;
|
|
54
|
+
this.deliveredInPerson = deliveredInPerson;
|
|
55
|
+
this.paid = paid;
|
|
54
56
|
}
|
|
55
57
|
Event.getPrestationsList = function (event) {
|
|
56
58
|
if (event && event.prestations) {
|
|
@@ -42,6 +42,7 @@ export default class Subscription {
|
|
|
42
42
|
billing: boolean;
|
|
43
43
|
trainingOptionalOne: Date;
|
|
44
44
|
trainingOptionalTwo: Date;
|
|
45
|
+
optionalTrainingTwo: boolean;
|
|
45
46
|
movaPackage: string;
|
|
46
47
|
packInfo: boolean;
|
|
47
48
|
smsCampaign: boolean;
|
|
@@ -58,6 +59,9 @@ export default class Subscription {
|
|
|
58
59
|
training: boolean;
|
|
59
60
|
totalPrice: number;
|
|
60
61
|
subscriptionComment: string;
|
|
61
|
-
|
|
62
|
+
setupFees: boolean;
|
|
63
|
+
aiTelephone: boolean;
|
|
64
|
+
tablet: boolean;
|
|
65
|
+
constructor(id: string, garageId: string, type: SubscriptionType, state: SubscriptionState, companyName: string, companyEmail: string, companySiren: string, companyLegalForm: string, trialDays: number, startDate: Date, activationDate: Date, cancellationDate: Date, paymentInterval: SubscriptionPaymentInterval, paymentIban: string, roi: roiInterface, additionalFormationQuantity: number, webPage: boolean, smsCampaign: boolean, trainingOptionalOne: Date, trainingOptionalTwo: Date, webcam: boolean, billing: boolean, movaPackage: string, packInfo: boolean, checkList: any, expertMonthly: boolean, wholesaleOffer: string, accountantEmail: string, accountantPhone: string, accountantIdentity: string, isClientImportBillable: boolean, isCatalogImportBillable: boolean, needAccountingOffer: boolean, accountingPrice: boolean, training: boolean, totalPrice: number, subscriptionComment: string, optionalTrainingTwo: boolean, setupFees: boolean, aiTelephone: boolean, tablet: boolean);
|
|
62
66
|
}
|
|
63
67
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var Subscription = /** @class */ (function () {
|
|
4
|
-
function Subscription(id, garageId, type, state, companyName, companyEmail, companySiren, companyLegalForm, trialDays, startDate, activationDate, cancellationDate, paymentInterval, paymentIban, roi, additionalFormationQuantity, webPage, smsCampaign, trainingOptionalOne, trainingOptionalTwo, webcam, billing, movaPackage, packInfo, checkList, expertMonthly, wholesaleOffer, accountantEmail, accountantPhone, accountantIdentity, isClientImportBillable, isCatalogImportBillable, needAccountingOffer, accountingPrice, training, totalPrice, subscriptionComment) {
|
|
4
|
+
function Subscription(id, garageId, type, state, companyName, companyEmail, companySiren, companyLegalForm, trialDays, startDate, activationDate, cancellationDate, paymentInterval, paymentIban, roi, additionalFormationQuantity, webPage, smsCampaign, trainingOptionalOne, trainingOptionalTwo, webcam, billing, movaPackage, packInfo, checkList, expertMonthly, wholesaleOffer, accountantEmail, accountantPhone, accountantIdentity, isClientImportBillable, isCatalogImportBillable, needAccountingOffer, accountingPrice, training, totalPrice, subscriptionComment, optionalTrainingTwo, setupFees, aiTelephone, tablet) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.garageId = garageId;
|
|
7
7
|
this.type = type;
|
|
@@ -39,6 +39,10 @@ var Subscription = /** @class */ (function () {
|
|
|
39
39
|
this.training = training;
|
|
40
40
|
this.totalPrice = totalPrice;
|
|
41
41
|
this.subscriptionComment = subscriptionComment;
|
|
42
|
+
this.optionalTrainingTwo = optionalTrainingTwo;
|
|
43
|
+
this.aiTelephone = aiTelephone;
|
|
44
|
+
this.setupFees = setupFees;
|
|
45
|
+
this.tablet = tablet;
|
|
42
46
|
}
|
|
43
47
|
return Subscription;
|
|
44
48
|
}());
|
package/package.json
CHANGED
package/src/models/Customer.ts
CHANGED
|
@@ -32,6 +32,7 @@ export default class Customer extends User {
|
|
|
32
32
|
vatId?: string;
|
|
33
33
|
contactId?: number;
|
|
34
34
|
establishmentId?: number;
|
|
35
|
+
seCode?: string;
|
|
35
36
|
paymentMethods?: string;
|
|
36
37
|
discountRate?:number;
|
|
37
38
|
paymentPeriod?:number;
|
|
@@ -60,7 +61,8 @@ export default class Customer extends User {
|
|
|
60
61
|
paymentPeriod?: number,
|
|
61
62
|
discountRate?:number,
|
|
62
63
|
billingEmail?:string,
|
|
63
|
-
additionalEmails?:string
|
|
64
|
+
additionalEmails?:string,
|
|
65
|
+
seCode?:string,
|
|
64
66
|
) {
|
|
65
67
|
super(id, roles, firstname, lastname, avatar, email);
|
|
66
68
|
|
|
@@ -80,5 +82,6 @@ export default class Customer extends User {
|
|
|
80
82
|
this.discountRate = discountRate;
|
|
81
83
|
this.billingEmail = billingEmail;
|
|
82
84
|
this.additionalEmails = additionalEmails;
|
|
85
|
+
this.seCode = seCode;
|
|
83
86
|
}
|
|
84
87
|
}
|
package/src/models/Event.ts
CHANGED
|
@@ -123,6 +123,9 @@ export default class Event {
|
|
|
123
123
|
lastQuoteCreationDate?: Date;
|
|
124
124
|
urgent?: boolean;
|
|
125
125
|
schedulable?:boolean;
|
|
126
|
+
deliveredInPerson?: boolean;
|
|
127
|
+
paid?:boolean;
|
|
128
|
+
|
|
126
129
|
constructor(
|
|
127
130
|
id: string,
|
|
128
131
|
ownerId: number,
|
|
@@ -159,7 +162,9 @@ export default class Event {
|
|
|
159
162
|
urgent?: boolean,
|
|
160
163
|
garageVehicleBookings?: LoanVehicle[],
|
|
161
164
|
goodForAgreement?:boolean,
|
|
162
|
-
|
|
165
|
+
deliveredInPerson?:boolean,
|
|
166
|
+
schedulable?:boolean,
|
|
167
|
+
paid?:boolean
|
|
163
168
|
) {
|
|
164
169
|
this.id = id;
|
|
165
170
|
this.notes = notes;
|
|
@@ -210,6 +215,8 @@ export default class Event {
|
|
|
210
215
|
this.garageVehicleBookings = garageVehicleBookings;
|
|
211
216
|
this.goodForAgreement = goodForAgreement;
|
|
212
217
|
this.schedulable = schedulable;
|
|
218
|
+
this.deliveredInPerson = deliveredInPerson;
|
|
219
|
+
this.paid = paid;
|
|
213
220
|
}
|
|
214
221
|
|
|
215
222
|
static getPrestationsList(event: Event): string[] {
|
|
@@ -47,6 +47,7 @@ export default class Subscription {
|
|
|
47
47
|
billing: boolean;
|
|
48
48
|
trainingOptionalOne: Date;
|
|
49
49
|
trainingOptionalTwo: Date;
|
|
50
|
+
optionalTrainingTwo: boolean;
|
|
50
51
|
movaPackage: string;
|
|
51
52
|
packInfo: boolean;
|
|
52
53
|
smsCampaign: boolean;
|
|
@@ -63,6 +64,9 @@ export default class Subscription {
|
|
|
63
64
|
training: boolean;
|
|
64
65
|
totalPrice: number;
|
|
65
66
|
subscriptionComment: string;
|
|
67
|
+
setupFees:boolean;
|
|
68
|
+
aiTelephone:boolean;
|
|
69
|
+
tablet:boolean;
|
|
66
70
|
constructor(
|
|
67
71
|
id: string,
|
|
68
72
|
garageId: string,
|
|
@@ -100,7 +104,11 @@ export default class Subscription {
|
|
|
100
104
|
accountingPrice: boolean,
|
|
101
105
|
training: boolean,
|
|
102
106
|
totalPrice: number,
|
|
103
|
-
subscriptionComment: string
|
|
107
|
+
subscriptionComment: string,
|
|
108
|
+
optionalTrainingTwo:boolean,
|
|
109
|
+
setupFees:boolean,
|
|
110
|
+
aiTelephone:boolean,
|
|
111
|
+
tablet:boolean,
|
|
104
112
|
) {
|
|
105
113
|
this.id = id;
|
|
106
114
|
this.garageId = garageId;
|
|
@@ -139,5 +147,9 @@ export default class Subscription {
|
|
|
139
147
|
this.training = training;
|
|
140
148
|
this.totalPrice = totalPrice;
|
|
141
149
|
this.subscriptionComment = subscriptionComment;
|
|
150
|
+
this.optionalTrainingTwo = optionalTrainingTwo;
|
|
151
|
+
this.aiTelephone = aiTelephone;
|
|
152
|
+
this.setupFees = setupFees;
|
|
153
|
+
this.tablet = tablet;
|
|
142
154
|
}
|
|
143
155
|
}
|