@movalib/movalib-commons 1.68.31 → 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.
@@ -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
- 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, schedulable?: boolean);
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
  }
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.68.31",
3
+ "version": "1.68.32",
4
4
  "description": "Bibliothèque d'objets communs à l'ensemble des projets React de Movalib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -199,8 +199,6 @@ export default function MovaTableBack<T>({
199
199
  )}
200
200
  </Box>
201
201
  ) : (
202
-
203
-
204
202
  <TableContainer sx={{ height: "100%" }} component={Paper}>
205
203
  <Table
206
204
  size={compact ? "small" : "medium"}
@@ -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
  }
@@ -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
- schedulable?:boolean
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[] {