@movalib/movalib-commons 1.55.7 → 1.55.9
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/index.d.ts +1 -0
- package/dist/index.js +4 -2
- package/dist/src/models/CategoryPrestation.d.ts +11 -0
- package/dist/src/models/CategoryPrestation.js +16 -0
- package/dist/src/models/Event.d.ts +2 -1
- package/dist/src/models/Event.js +2 -1
- package/dist/src/models/Garage.d.ts +3 -1
- package/dist/src/models/Garage.js +2 -1
- package/dist/src/models/Prestation.d.ts +3 -1
- package/dist/src/models/Prestation.js +3 -1
- package/dist/src/services/GarageService.d.ts +1 -0
- package/dist/src/services/GarageService.js +8 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/src/models/CategoryPrestation.ts +22 -0
- package/src/models/Event.ts +3 -1
- package/src/models/Garage.ts +4 -0
- package/src/models/Prestation.ts +7 -1
- package/src/services/GarageService.ts +9 -0
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export { default as Garage } from './src/models/Garage';
|
|
|
42
42
|
export { default as Schedule } from './src/models/Schedule';
|
|
43
43
|
export { default as Event } from './src/models/Event';
|
|
44
44
|
export { default as VehicleTire } from './src/models/VehicleTire';
|
|
45
|
+
export { default as CategoryPrestation } from './src/models/CategoryPrestation';
|
|
45
46
|
export type { APIRequest, APIResponse } from './src/helpers/ApiHelper';
|
|
46
47
|
export type { DaySchedule, DayInterval } from './src/ScheduleFields';
|
|
47
48
|
export type { MovaFormField, MovaLoginForm, MovaUserSignUpForm, MovaInterval, MovaVehicleForm, AddressFieldName, } from './src/helpers/Types';
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
8
|
-
exports.openDialogPrint = exports.APIMethod = exports.SubscriptionType = exports.SubscriptionState = exports.CountryCode = exports.PrestationState = exports.PrestationType = exports.RegistrationState = exports.SubscriptionPaymentInterval = exports.VehiclePlateType = exports.SlotAlgorithm = exports.OrderState = exports.OrderPreference = exports.ProductType = exports.PartsApplicationType = exports.DateFormatTypes = exports.Gender = exports.DocumentState = exports.DigitalPassportIndex = exports.DocumentType = exports.EventType = exports.EventState = exports.DayOfWeek = exports.MovaAppType = exports.RoleType = exports.API_BASE_URL = exports.request = exports.getLongFormattedDateTime = exports.formatDateByCountryCode = exports.validateEmail = exports.validateText = exports.validatePhoneNumber = exports.getApplicationsShortLabels = exports.isSafariOniOS = exports.getDayOfWeekLabel = exports.findScheduleByDayOfWeek = exports.getFormattedIntervals = exports.getFormattedSchedule = exports.formatPhoneNumber = exports.flexLeftRow = exports.capitalizeFirstLetter = exports.getApplicationShortLabel = exports.isEmpty = void 0;
|
|
7
|
+
exports.formatVehicleTire = exports.validateField = exports.deleteCookie = exports.readCookie = exports.CategoryPrestation = exports.VehicleTire = exports.Event = exports.Schedule = exports.Garage = exports.Document = exports.Vehicle = exports.Address = exports.Role = exports.User = exports.Customer = exports.Logger = exports.Operation = exports.Prestation = exports.Product = exports.Supplier = exports.Employee = exports.Absence = exports.Subscription = exports.PrintSize = exports.PLVComponent = exports.QrCodePLVContainer = exports.GenderSelector = exports.ConfirmationDialog = exports.MovaVehicleTireField = exports.MovaCopyright = exports.MovaSignUp = exports.MovaLogin = exports.MovaSnackbar = exports.TestButton = exports.VehiclePlateField = exports.QRCode = exports.MovaDialog = exports.Loader = exports.MovaDigitalPassport = exports.VehicleFullCard = exports.ScheduleFields = exports.AddressFields = exports.AccountValidation = exports.GaragePLV = exports.IbanInput = exports.DialogForgotPassword = exports.UserService = exports.GarageService = exports.AuthenticationService = exports.VehicleService = void 0;
|
|
8
|
+
exports.openDialogPrint = exports.APIMethod = exports.SubscriptionType = exports.SubscriptionState = exports.CountryCode = exports.PrestationState = exports.PrestationType = exports.RegistrationState = exports.SubscriptionPaymentInterval = exports.VehiclePlateType = exports.SlotAlgorithm = exports.OrderState = exports.OrderPreference = exports.ProductType = exports.PartsApplicationType = exports.DateFormatTypes = exports.Gender = exports.DocumentState = exports.DigitalPassportIndex = exports.DocumentType = exports.EventType = exports.EventState = exports.DayOfWeek = exports.MovaAppType = exports.RoleType = exports.API_BASE_URL = exports.request = exports.getLongFormattedDateTime = exports.formatDateByCountryCode = exports.validateEmail = exports.validateText = exports.validatePhoneNumber = exports.getApplicationsShortLabels = exports.isSafariOniOS = exports.getDayOfWeekLabel = exports.findScheduleByDayOfWeek = exports.getFormattedIntervals = exports.getFormattedSchedule = exports.formatPhoneNumber = exports.flexLeftRow = exports.capitalizeFirstLetter = exports.getApplicationShortLabel = exports.isEmpty = exports.formatFrenchVehiclePlate = void 0;
|
|
9
9
|
// Export des services
|
|
10
10
|
var VehicleService_1 = require("./src/services/VehicleService");
|
|
11
11
|
Object.defineProperty(exports, "VehicleService", { enumerable: true, get: function () { return __importDefault(VehicleService_1).default; } });
|
|
@@ -98,6 +98,8 @@ var Event_1 = require("./src/models/Event");
|
|
|
98
98
|
Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return __importDefault(Event_1).default; } });
|
|
99
99
|
var VehicleTire_1 = require("./src/models/VehicleTire");
|
|
100
100
|
Object.defineProperty(exports, "VehicleTire", { enumerable: true, get: function () { return __importDefault(VehicleTire_1).default; } });
|
|
101
|
+
var CategoryPrestation_1 = require("./src/models/CategoryPrestation");
|
|
102
|
+
Object.defineProperty(exports, "CategoryPrestation", { enumerable: true, get: function () { return __importDefault(CategoryPrestation_1).default; } });
|
|
101
103
|
// Export des méthodes utilitaires
|
|
102
104
|
var CookieUtils_1 = require("./src/helpers/CookieUtils");
|
|
103
105
|
Object.defineProperty(exports, "readCookie", { enumerable: true, get: function () { return CookieUtils_1.readCookie; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var CategoryPrestation = /** @class */ (function () {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
function CategoryPrestation(color, code, name, description, position) {
|
|
8
|
+
this.color = color;
|
|
9
|
+
this.code = code;
|
|
10
|
+
this.name = name;
|
|
11
|
+
this.description = description;
|
|
12
|
+
this.position = position;
|
|
13
|
+
}
|
|
14
|
+
return CategoryPrestation;
|
|
15
|
+
}());
|
|
16
|
+
exports.default = CategoryPrestation;
|
|
@@ -49,6 +49,7 @@ export default class Event {
|
|
|
49
49
|
editable?: boolean;
|
|
50
50
|
vehicleDepositDate?: Date;
|
|
51
51
|
vehicleDepositDateRequest?: Date;
|
|
52
|
+
color?: string;
|
|
52
53
|
/** Propriété calculée pas toujours présent, pour savoir si les produits de cet event on été commandé au grossistes */
|
|
53
54
|
hasProductOrdered?: boolean;
|
|
54
55
|
/** Eventuels opérateurs associés à l'event */
|
|
@@ -56,6 +57,6 @@ export default class Event {
|
|
|
56
57
|
resourceId?: number;
|
|
57
58
|
/** Quand l'event contient la prestation "Autres" alors ce champs est obligatoire et précise la prestation */
|
|
58
59
|
otherReason?: string;
|
|
59
|
-
constructor(id: string, ownerId: number, type: EventType, title: string, garageName: string, garageId: number, 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);
|
|
60
|
+
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);
|
|
60
61
|
static getPrestationsList(event: Event): string[];
|
|
61
62
|
}
|
package/dist/src/models/Event.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var Event = /** @class */ (function () {
|
|
4
|
-
function Event(id, ownerId, type, title, garageName, garageId, state, garageAddress, start, end, prestations, operations, products, guestsId, vehicleId, quoteId, notes, vehicleAvailableNotified, editable, resourceId) {
|
|
4
|
+
function Event(id, ownerId, type, title, garageName, garageId, color, state, garageAddress, start, end, prestations, operations, products, guestsId, vehicleId, quoteId, notes, vehicleAvailableNotified, editable, resourceId) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.notes = notes;
|
|
7
7
|
this.ownerId = ownerId;
|
|
@@ -22,6 +22,7 @@ var Event = /** @class */ (function () {
|
|
|
22
22
|
this.vehicleAvailableNotified = vehicleAvailableNotified;
|
|
23
23
|
this.editable = editable;
|
|
24
24
|
this.resourceId = resourceId;
|
|
25
|
+
this.color = color;
|
|
25
26
|
}
|
|
26
27
|
Event.getPrestationsList = function (event) {
|
|
27
28
|
if (event && event.prestations) {
|
|
@@ -7,6 +7,7 @@ import { OrderPreference, RegistrationState, SlotAlgorithm, SubscriptionPaymentI
|
|
|
7
7
|
import User from "./User";
|
|
8
8
|
import Subscription from "./Subscription";
|
|
9
9
|
import Employee from "./Employee";
|
|
10
|
+
import CategoryPrestation from "./CategoryPrestation";
|
|
10
11
|
export default class Garage {
|
|
11
12
|
id: string;
|
|
12
13
|
adminId: string;
|
|
@@ -14,6 +15,7 @@ export default class Garage {
|
|
|
14
15
|
address: Address;
|
|
15
16
|
workforce: number;
|
|
16
17
|
contactPhone: string;
|
|
18
|
+
prestationCategories: CategoryPrestation[];
|
|
17
19
|
prestations: Prestation[];
|
|
18
20
|
schedules: Schedule[];
|
|
19
21
|
countryCode?: string;
|
|
@@ -41,5 +43,5 @@ export default class Garage {
|
|
|
41
43
|
operatorsActive?: boolean;
|
|
42
44
|
employees?: Employee[];
|
|
43
45
|
defaultView?: string;
|
|
44
|
-
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[], subscriptions?: Subscription[]);
|
|
46
|
+
constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, prestationCategories: CategoryPrestation[], contactEmail?: string, logo?: string, suppliers?: Supplier[], documents?: Document[], subscriptions?: Subscription[]);
|
|
45
47
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
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, documents, subscriptions) {
|
|
4
|
+
function Garage(id, adminId, name, address, workforce, prestations, schedules, contactPhone, prestationCategories, contactEmail, logo, suppliers, documents, subscriptions) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.adminId = adminId;
|
|
7
7
|
this.name = name;
|
|
8
8
|
this.address = address;
|
|
9
9
|
this.workforce = workforce;
|
|
10
|
+
this.prestationCategories = prestationCategories;
|
|
10
11
|
this.prestations = prestations;
|
|
11
12
|
this.schedules = schedules;
|
|
12
13
|
this.contactPhone = contactPhone;
|
|
@@ -25,5 +25,7 @@ export default class Prestation {
|
|
|
25
25
|
active: boolean;
|
|
26
26
|
state: PrestationState;
|
|
27
27
|
multipleApplication: boolean;
|
|
28
|
-
|
|
28
|
+
operationsVisible: boolean;
|
|
29
|
+
categoryCode: string;
|
|
30
|
+
constructor(id: number, code: string, name: string, description: string, category: string, downtime: number, appointmentDelay: number, position: number, active: boolean, state: PrestationState, multipleApplication: boolean, operationsVisible: boolean, categoryCode: string, operations?: Operation[]);
|
|
29
31
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var Prestation = /** @class */ (function () {
|
|
4
|
-
function Prestation(id, code, name, description, category, downtime, appointmentDelay, position, active, state, multipleApplication, operations) {
|
|
4
|
+
function Prestation(id, code, name, description, category, downtime, appointmentDelay, position, active, state, multipleApplication, operationsVisible, categoryCode, operations) {
|
|
5
5
|
this.id = id;
|
|
6
6
|
this.code = code;
|
|
7
7
|
this.name = name;
|
|
@@ -12,8 +12,10 @@ var Prestation = /** @class */ (function () {
|
|
|
12
12
|
this.position = position;
|
|
13
13
|
this.active = active;
|
|
14
14
|
this.multipleApplication = multipleApplication;
|
|
15
|
+
this.operationsVisible = operationsVisible;
|
|
15
16
|
this.operations = operations;
|
|
16
17
|
this.state = state;
|
|
18
|
+
this.categoryCode = categoryCode;
|
|
17
19
|
}
|
|
18
20
|
return Prestation;
|
|
19
21
|
}());
|
|
@@ -5,6 +5,7 @@ import { AddCustomerVehicleParams, DeleteCustomerVehicleParams } from "./GarageS
|
|
|
5
5
|
export default class GarageService {
|
|
6
6
|
static deleteEventEmployee(garageId: string, eventId: string): Promise<APIResponse<string>>;
|
|
7
7
|
static updateEventEmployee(garageId: string, eventId: string, employeeId: string): Promise<APIResponse<string>>;
|
|
8
|
+
static updateColorPrestationCategory(garageId: string, categoryCode: string, color: string): Promise<APIResponse<string>>;
|
|
8
9
|
static updateVehicleGarageEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>>;
|
|
9
10
|
static sendGarageMandate(garageId: string): Promise<APIResponse<string>>;
|
|
10
11
|
static getGarageAllData(garageId: string): Promise<APIResponse<Garage>>;
|
|
@@ -30,6 +30,14 @@ var GarageService = /** @class */ (function () {
|
|
|
30
30
|
appType: Enums_1.MovaAppType.GARAGE
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
+
GarageService.updateColorPrestationCategory = function (garageId, categoryCode, color) {
|
|
34
|
+
return (0, ApiHelper_1.request)({
|
|
35
|
+
url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/prestation-category/").concat(categoryCode, "/color"),
|
|
36
|
+
method: Enums_1.APIMethod.PATCH,
|
|
37
|
+
appType: Enums_1.MovaAppType.GARAGE,
|
|
38
|
+
body: JSON.stringify({ color: color })
|
|
39
|
+
});
|
|
40
|
+
};
|
|
33
41
|
GarageService.updateVehicleGarageEvent = function (garageId, eventId, req) {
|
|
34
42
|
return (0, ApiHelper_1.request)({
|
|
35
43
|
url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/event/").concat(eventId, "/vehicle"),
|
package/index.ts
CHANGED
|
@@ -49,7 +49,7 @@ export { default as Garage } from './src/models/Garage';
|
|
|
49
49
|
export { default as Schedule } from './src/models/Schedule';
|
|
50
50
|
export { default as Event } from './src/models/Event';
|
|
51
51
|
export { default as VehicleTire } from './src/models/VehicleTire';
|
|
52
|
-
|
|
52
|
+
export {default as CategoryPrestation} from './src/models/CategoryPrestation';
|
|
53
53
|
// Export des types
|
|
54
54
|
export type { APIRequest, APIResponse } from './src/helpers/ApiHelper';
|
|
55
55
|
export type { DaySchedule, DayInterval } from './src/ScheduleFields';
|
package/package.json
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
export default class CategoryPrestation {
|
|
3
|
+
|
|
4
|
+
// Properties
|
|
5
|
+
color: string;
|
|
6
|
+
code: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
position: number
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
constructor(color: string, code: string, name:string, description: string, position: number) {
|
|
16
|
+
this.color = color;
|
|
17
|
+
this.code = code;
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.description = description;
|
|
20
|
+
this.position = position;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/models/Event.ts
CHANGED
|
@@ -52,6 +52,7 @@ export default class Event {
|
|
|
52
52
|
editable?: boolean;
|
|
53
53
|
vehicleDepositDate?: Date;
|
|
54
54
|
vehicleDepositDateRequest?: Date;
|
|
55
|
+
color?: string;
|
|
55
56
|
|
|
56
57
|
/** Propriété calculée pas toujours présent, pour savoir si les produits de cet event on été commandé au grossistes */
|
|
57
58
|
hasProductOrdered?: boolean;
|
|
@@ -63,7 +64,7 @@ export default class Event {
|
|
|
63
64
|
/** Quand l'event contient la prestation "Autres" alors ce champs est obligatoire et précise la prestation */
|
|
64
65
|
otherReason?: string;
|
|
65
66
|
|
|
66
|
-
constructor(id: string, ownerId: number, type : EventType, title: string, garageName: string, garageId: number,
|
|
67
|
+
constructor(id: string, ownerId: number, type : EventType, title: string, garageName: string, garageId: number,color: string,
|
|
67
68
|
state: EventState, garageAddress?: Address, start?: Date, end?: Date, prestations?: Prestation[], operations?: Operation[], products?: Product[],
|
|
68
69
|
guestsId?: string[], vehicleId?: number, quoteId?: number, notes?: string, vehicleAvailableNotified?: boolean, editable?: boolean, resourceId?: number)
|
|
69
70
|
{
|
|
@@ -87,6 +88,7 @@ export default class Event {
|
|
|
87
88
|
this.vehicleAvailableNotified = vehicleAvailableNotified;
|
|
88
89
|
this.editable = editable;
|
|
89
90
|
this.resourceId = resourceId;
|
|
91
|
+
this.color = color;
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
static getPrestationsList(event: Event) : string[] {
|
package/src/models/Garage.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { OrderPreference, RegistrationState, SlotAlgorithm, SubscriptionPaymentI
|
|
|
7
7
|
import User from "./User";
|
|
8
8
|
import Subscription from "./Subscription";
|
|
9
9
|
import Employee from "./Employee";
|
|
10
|
+
import CategoryPrestation from "./CategoryPrestation";
|
|
10
11
|
|
|
11
12
|
export default class Garage {
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ export default class Garage {
|
|
|
16
17
|
address:Address;
|
|
17
18
|
workforce: number;
|
|
18
19
|
contactPhone: string;
|
|
20
|
+
prestationCategories: CategoryPrestation[];
|
|
19
21
|
prestations: Prestation[];
|
|
20
22
|
schedules: Schedule[];
|
|
21
23
|
countryCode?: string;
|
|
@@ -53,6 +55,7 @@ export default class Garage {
|
|
|
53
55
|
prestations: Prestation[],
|
|
54
56
|
schedules: Schedule[],
|
|
55
57
|
contactPhone: string,
|
|
58
|
+
prestationCategories: CategoryPrestation[],
|
|
56
59
|
contactEmail?: string,
|
|
57
60
|
logo?:string,
|
|
58
61
|
suppliers?: Supplier[],
|
|
@@ -64,6 +67,7 @@ export default class Garage {
|
|
|
64
67
|
this.name = name;
|
|
65
68
|
this.address = address;
|
|
66
69
|
this.workforce = workforce;
|
|
70
|
+
this.prestationCategories = prestationCategories;
|
|
67
71
|
this.prestations = prestations;
|
|
68
72
|
this.schedules = schedules;
|
|
69
73
|
this.contactPhone = contactPhone;
|
package/src/models/Prestation.ts
CHANGED
|
@@ -31,9 +31,13 @@ export default class Prestation {
|
|
|
31
31
|
state: PrestationState;
|
|
32
32
|
|
|
33
33
|
multipleApplication: boolean;
|
|
34
|
+
|
|
35
|
+
operationsVisible: boolean;
|
|
36
|
+
categoryCode: string;
|
|
34
37
|
|
|
35
38
|
constructor(id:number, code: string, name:string, description: string, category:string,
|
|
36
|
-
downtime:number, appointmentDelay: number, position: number, active: boolean, state: PrestationState,
|
|
39
|
+
downtime:number, appointmentDelay: number, position: number, active: boolean, state: PrestationState,
|
|
40
|
+
multipleApplication: boolean, operationsVisible: boolean,categoryCode: string, operations?: Operation[]) {
|
|
37
41
|
this.id = id;
|
|
38
42
|
this.code = code;
|
|
39
43
|
this.name = name;
|
|
@@ -44,7 +48,9 @@ export default class Prestation {
|
|
|
44
48
|
this.position = position;
|
|
45
49
|
this.active = active;
|
|
46
50
|
this.multipleApplication = multipleApplication;
|
|
51
|
+
this.operationsVisible = operationsVisible;
|
|
47
52
|
this.operations = operations;
|
|
48
53
|
this.state = state;
|
|
54
|
+
this.categoryCode = categoryCode;
|
|
49
55
|
}
|
|
50
56
|
}
|
|
@@ -22,6 +22,15 @@ export default class GarageService {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
static updateColorPrestationCategory(garageId: string, categoryCode: string, color: string): Promise<APIResponse<string>> {
|
|
26
|
+
return request({
|
|
27
|
+
url: `${API_BASE_URL}/garage/${garageId}/prestation-category/${categoryCode}/color`,
|
|
28
|
+
method: APIMethod.PATCH,
|
|
29
|
+
appType: MovaAppType.GARAGE,
|
|
30
|
+
body: JSON.stringify({ color })
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
static updateVehicleGarageEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>> {
|
|
26
35
|
|
|
27
36
|
return request({
|