@movalib/movalib-commons 1.68.19 → 1.68.21
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/Garage.d.ts +1 -0
- package/dist/src/models/Garage.js +5 -0
- package/dist/src/models/Settings.d.ts +2 -1
- package/dist/src/models/Settings.js +1 -0
- package/dist/src/models/Subscription.d.ts +2 -1
- package/dist/src/models/Subscription.js +2 -1
- package/package.json +1 -1
- package/src/models/Garage.ts +4 -0
- package/src/models/Settings.ts +2 -1
- package/src/models/Subscription.ts +4 -1
|
@@ -76,3 +76,4 @@ export default class Garage {
|
|
|
76
76
|
}
|
|
77
77
|
export declare function isStockActive(g: Garage): boolean;
|
|
78
78
|
export declare function getSetting(settings: Settings[], code: string): string | null;
|
|
79
|
+
export declare function getSettingBool(settings: Settings[], code: string): boolean;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isStockActive = isStockActive;
|
|
4
4
|
exports.getSetting = getSetting;
|
|
5
|
+
exports.getSettingBool = getSettingBool;
|
|
5
6
|
var Settings_1 = require("./Settings");
|
|
6
7
|
var Garage = /** @class */ (function () {
|
|
7
8
|
function Garage(id, adminId, name, address, workforce, prestations, schedules, contactPhone, secondaryContactPhone, prestationCategories, dayPeriodFastServiceExcluded, loanerVehicleFastServiceExcluded, fastServiceThreshold, timezone, settings, vehicles, contactEmail, logo, suppliers, documents, subscriptions, loanerVehicleActive, loanerVehicleRequestActive, customStyle, subscription, partialWorkforce, mailCustomization, billingActive, billingToken, legacyQuoteActive, appId, establishmentRegistrationNumber, companyRegistrationNumber, reopeningDate, targetMargin, demoBillingActive, onlyBilling, newDocumentEditor, googleReviewUrl, isOnlineAppointment, isOnlineQuote) {
|
|
@@ -63,3 +64,7 @@ function getSetting(settings, code) {
|
|
|
63
64
|
var _a, _b;
|
|
64
65
|
return (_b = (_a = settings.find(function (s) { return s.code === code; })) === null || _a === void 0 ? void 0 : _a.valueText) !== null && _b !== void 0 ? _b : null;
|
|
65
66
|
}
|
|
67
|
+
function getSettingBool(settings, code) {
|
|
68
|
+
var _a, _b;
|
|
69
|
+
return (_b = (_a = settings.find(function (s) { return s.code === code; })) === null || _a === void 0 ? void 0 : _a.valueBoolean) !== null && _b !== void 0 ? _b : false;
|
|
70
|
+
}
|
|
@@ -4,6 +4,7 @@ exports.SettingsEnumCode = void 0;
|
|
|
4
4
|
var SettingsEnumCode;
|
|
5
5
|
(function (SettingsEnumCode) {
|
|
6
6
|
SettingsEnumCode["STOCK_MODULE_ENABLED"] = "STOCK_MODULE_ENABLED";
|
|
7
|
+
SettingsEnumCode["NO_PHONE_CUSTOMER_CREATION"] = "NO_PHONE_CUSTOMER_CREATION";
|
|
7
8
|
})(SettingsEnumCode || (exports.SettingsEnumCode = SettingsEnumCode = {}));
|
|
8
9
|
var Settings = /** @class */ (function () {
|
|
9
10
|
function Settings(code, valueBoolean, valueText, valueNumber) {
|
|
@@ -57,6 +57,7 @@ export default class Subscription {
|
|
|
57
57
|
accountingPrice: boolean;
|
|
58
58
|
training: boolean;
|
|
59
59
|
totalPrice: number;
|
|
60
|
-
|
|
60
|
+
subscriptionComment: string;
|
|
61
|
+
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);
|
|
61
62
|
}
|
|
62
63
|
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) {
|
|
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) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.garageId = garageId;
|
|
7
7
|
this.type = type;
|
|
@@ -38,6 +38,7 @@ var Subscription = /** @class */ (function () {
|
|
|
38
38
|
this.accountingPrice = accountingPrice;
|
|
39
39
|
this.training = training;
|
|
40
40
|
this.totalPrice = totalPrice;
|
|
41
|
+
this.subscriptionComment = subscriptionComment;
|
|
41
42
|
}
|
|
42
43
|
return Subscription;
|
|
43
44
|
}());
|
package/package.json
CHANGED
package/src/models/Garage.ts
CHANGED
|
@@ -169,4 +169,8 @@ export function isStockActive (g: Garage): boolean {
|
|
|
169
169
|
}
|
|
170
170
|
export function getSetting(settings: Settings[], code: string): string | null {
|
|
171
171
|
return settings.find((s) => s.code === code)?.valueText ?? null;
|
|
172
|
+
|
|
173
|
+
}
|
|
174
|
+
export function getSettingBool(settings: Settings[], code: string): boolean {
|
|
175
|
+
return settings.find((s) => s.code === code)?.valueBoolean ?? false;
|
|
172
176
|
}
|
package/src/models/Settings.ts
CHANGED
|
@@ -62,6 +62,7 @@ export default class Subscription {
|
|
|
62
62
|
accountingPrice: boolean;
|
|
63
63
|
training: boolean;
|
|
64
64
|
totalPrice: number;
|
|
65
|
+
subscriptionComment: string;
|
|
65
66
|
constructor(
|
|
66
67
|
id: string,
|
|
67
68
|
garageId: string,
|
|
@@ -98,7 +99,8 @@ export default class Subscription {
|
|
|
98
99
|
needAccountingOffer: boolean,
|
|
99
100
|
accountingPrice: boolean,
|
|
100
101
|
training: boolean,
|
|
101
|
-
totalPrice: number
|
|
102
|
+
totalPrice: number,
|
|
103
|
+
subscriptionComment: string
|
|
102
104
|
) {
|
|
103
105
|
this.id = id;
|
|
104
106
|
this.garageId = garageId;
|
|
@@ -136,5 +138,6 @@ export default class Subscription {
|
|
|
136
138
|
this.accountingPrice = accountingPrice;
|
|
137
139
|
this.training = training;
|
|
138
140
|
this.totalPrice = totalPrice;
|
|
141
|
+
this.subscriptionComment = subscriptionComment;
|
|
139
142
|
}
|
|
140
143
|
}
|