@movalib/movalib-commons 1.59.36 → 1.59.38

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.
Files changed (33) hide show
  1. package/dist/src/MovaLogin.js +6 -5
  2. package/dist/src/assets/images/logo/header_logo_admin.png +0 -0
  3. package/dist/src/assets/images/logo/logo_admin_large.png +0 -0
  4. package/dist/src/components/vehicle/VehicleFullCard.d.ts +5 -5
  5. package/dist/src/components/vehicle/VehicleFullCard.js +101 -82
  6. package/dist/src/helpers/ApiHelper.js +5 -0
  7. package/dist/src/helpers/CookieUtils.d.ts +1 -0
  8. package/dist/src/helpers/CookieUtils.js +2 -1
  9. package/dist/src/helpers/Enums.d.ts +7 -6
  10. package/dist/src/helpers/Enums.js +6 -5
  11. package/dist/src/models/Document.d.ts +2 -1
  12. package/dist/src/models/Document.js +3 -5
  13. package/dist/src/models/Event.d.ts +12 -1
  14. package/dist/src/models/Event.js +2 -1
  15. package/dist/src/models/Product.d.ts +2 -1
  16. package/dist/src/models/Product.js +2 -1
  17. package/dist/src/services/AuthenticationService.d.ts +1 -1
  18. package/dist/src/services/AuthenticationService.js +38 -9
  19. package/dist/src/services/GarageService.d.ts +3 -1
  20. package/dist/src/services/GarageService.js +18 -4
  21. package/package.json +1 -1
  22. package/src/MovaLogin.tsx +6 -5
  23. package/src/assets/images/logo/header_logo_admin.png +0 -0
  24. package/src/assets/images/logo/logo_admin_large.png +0 -0
  25. package/src/components/vehicle/VehicleFullCard.tsx +847 -559
  26. package/src/helpers/ApiHelper.ts +6 -1
  27. package/src/helpers/CookieUtils.ts +1 -0
  28. package/src/helpers/Enums.ts +216 -217
  29. package/src/models/Document.ts +42 -37
  30. package/src/models/Event.ts +13 -1
  31. package/src/models/Product.ts +40 -26
  32. package/src/services/AuthenticationService.ts +31 -6
  33. package/src/services/GarageService.ts +667 -621
@@ -5,117 +5,135 @@ import Garage from "../models/Garage";
5
5
  import Operation from "../models/Operation";
6
6
  import Product from "../models/Product";
7
7
  import {
8
- AddCustomerVehicleParams,
9
- DeleteCustomerVehicleParams,
8
+ AddCustomerVehicleParams,
9
+ DeleteCustomerVehicleParams,
10
10
  } from "./GarageService.types";
11
11
 
12
12
  export default class GarageService {
13
+ static updatePaymentAuthorization(
14
+ garageId: string,
15
+ req: any
16
+ ): Promise<APIResponse<string>> {
17
+ return request({
18
+ url: `${API_BASE_URL}/garage/${garageId}/settings/payment-authorization/update`,
19
+ method: APIMethod.PATCH,
20
+ appType: MovaAppType.GARAGE,
21
+ body: JSON.stringify(req),
22
+ });
23
+ }
24
+
25
+ static toogleGaragePaymentAuthorization(
26
+ garageId: string
27
+ ): Promise<APIResponse<string>> {
28
+ return request({
29
+ url: `${API_BASE_URL}/garage/${garageId}/settings/payment-authorization`,
30
+ method: APIMethod.PATCH,
31
+ appType: MovaAppType.GARAGE,
32
+ });
33
+ }
34
+
35
+ static toogleEventVehicleReceived(
36
+ garageId: string,
37
+ eventId: string
38
+ ): Promise<APIResponse<string>> {
39
+ return request({
40
+ url: `${API_BASE_URL}/garage/${garageId}/events/${eventId}/vehicle-received`,
41
+ method: APIMethod.PATCH,
42
+ appType: MovaAppType.GARAGE,
43
+ });
44
+ }
45
+
46
+ static setOrderedEvent(
47
+ garageId: string,
48
+ eventId: string,
49
+ req: any
50
+ ): Promise<APIResponse<string>> {
51
+ return request({
52
+ url: `${API_BASE_URL}/garage/${garageId}/events/${eventId}/ordered`,
53
+ method: APIMethod.POST,
54
+ appType: MovaAppType.GARAGE,
55
+ body: JSON.stringify(req),
56
+ });
57
+ }
13
58
 
14
- static updatePaymentAuthorization(
15
- garageId: string,
16
- req: any
17
- ): Promise<APIResponse<string>> {
18
- return request({
19
- url: `${API_BASE_URL}/garage/${garageId}/settings/payment-authorization/update`,
20
- method: APIMethod.PATCH,
21
- appType: MovaAppType.GARAGE,
22
- body: JSON.stringify(req),
23
- });
24
- }
25
-
26
- static toogleGaragePaymentAuthorization(
27
- garageId: string,
28
- ): Promise<APIResponse<string>> {
29
- return request({
30
- url: `${API_BASE_URL}/garage/${garageId}/settings/payment-authorization`,
31
- method: APIMethod.PATCH,
32
- appType: MovaAppType.GARAGE,
33
- });
34
- }
35
-
36
- static toogleEventVehicleReceived(
37
- garageId: string,
38
- eventId: string,
39
- ): Promise<APIResponse<string>> {
40
- return request({
41
- url: `${API_BASE_URL}/garage/${garageId}/events/${eventId}/vehicle-received`,
42
- method: APIMethod.PATCH,
43
- appType: MovaAppType.GARAGE,
44
- });
45
- }
46
-
47
- static setOrderedEvent(
48
- garageId: string,
49
- eventId: string,
50
- req: any,
51
- ): Promise<APIResponse<string>> {
52
- return request({
53
- url: `${API_BASE_URL}/garage/${garageId}/events/${eventId}/ordered`,
54
- method: APIMethod.POST,
55
- appType: MovaAppType.GARAGE,
56
- body: JSON.stringify(req),
57
- });
58
- }
59
-
60
- static deleteEventEmployee(
61
- garageId: string,
62
- eventId: string,
63
- ): Promise<APIResponse<string>> {
64
- return request({
65
- url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/employees`,
66
- method: APIMethod.DELETE,
67
- appType: MovaAppType.GARAGE,
68
- });
69
- }
70
-
71
- static updateEventEmployee(
72
- garageId: string,
73
- eventId: string,
74
- employeeId: string,
75
- ): Promise<APIResponse<string>> {
76
- return request({
77
- url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/employees/${employeeId}`,
78
- method: APIMethod.PATCH,
79
- appType: MovaAppType.GARAGE,
80
- });
81
- }
82
-
83
- static updateColorPrestationCategory(garageId: string, categoryCode: string, color: string): Promise<APIResponse<string>> {
59
+ static deleteEventEmployee(
60
+ garageId: string,
61
+ eventId: string
62
+ ): Promise<APIResponse<string>> {
63
+ return request({
64
+ url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/employees`,
65
+ method: APIMethod.DELETE,
66
+ appType: MovaAppType.GARAGE,
67
+ });
68
+ }
69
+
70
+ static updateEventEmployee(
71
+ garageId: string,
72
+ eventId: string,
73
+ employeeId: string
74
+ ): Promise<APIResponse<string>> {
75
+ return request({
76
+ url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/employees/${employeeId}`,
77
+ method: APIMethod.PATCH,
78
+ appType: MovaAppType.GARAGE,
79
+ });
80
+ }
81
+
82
+ static updateColorPrestationCategory(
83
+ garageId: string,
84
+ categoryCode: string,
85
+ color: string
86
+ ): Promise<APIResponse<string>> {
84
87
  return request({
85
88
  url: `${API_BASE_URL}/garage/${garageId}/prestation-category/${categoryCode}/color`,
86
89
  method: APIMethod.PATCH,
87
90
  appType: MovaAppType.GARAGE,
88
- body: JSON.stringify({ color })
91
+ body: JSON.stringify({ color }),
89
92
  });
90
93
  }
91
- static updateGarageEventColor(garageId: string, eventId: string, color: string): Promise<APIResponse<string>> {
94
+ static updateGarageEventColor(
95
+ garageId: string,
96
+ eventId: string,
97
+ color: string
98
+ ): Promise<APIResponse<string>> {
92
99
  return request({
93
100
  url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/color`,
94
101
  method: APIMethod.PATCH,
95
102
  appType: MovaAppType.GARAGE,
96
- body: JSON.stringify({ color })
103
+ body: JSON.stringify({ color }),
97
104
  });
98
105
  }
99
- static updateVehicleGarageEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>> {
100
-
106
+ static updateVehicleGarageEvent(
107
+ garageId: string,
108
+ eventId: string,
109
+ req: any
110
+ ): Promise<APIResponse<string>> {
101
111
  return request({
102
112
  url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/vehicle`,
103
113
  method: APIMethod.PATCH,
104
114
  appType: MovaAppType.GARAGE,
105
- body: JSON.stringify(req)
115
+ body: JSON.stringify(req),
106
116
  });
107
117
  }
108
118
 
109
- static uploadEventDocument(garageId: string, eventId: string, req: FormData): Promise<APIResponse<string>> {
119
+ static uploadEventDocument(
120
+ garageId: string,
121
+ eventId: string,
122
+ req: FormData
123
+ ): Promise<APIResponse<string>> {
110
124
  return request({
111
125
  url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/documents`,
112
126
  method: APIMethod.POST,
113
127
  appType: MovaAppType.GARAGE,
114
- body: req
128
+ body: req,
115
129
  });
116
- }
130
+ }
117
131
 
118
- static deleteEventDocument(garageId: string, eventId: string, docId: string): Promise<APIResponse<string>> {
132
+ static deleteEventDocument(
133
+ garageId: string,
134
+ eventId: string,
135
+ docId: string
136
+ ): Promise<APIResponse<string>> {
119
137
  return request({
120
138
  url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/documents/${docId}`,
121
139
  appType: MovaAppType.GARAGE,
@@ -123,543 +141,571 @@ export default class GarageService {
123
141
  });
124
142
  }
125
143
 
126
- static sendGarageMandate(garageId: string): Promise<APIResponse<string>> {
127
- return request({
128
- url: `${API_BASE_URL}/garage/${garageId}/subscription-mandate`,
129
- method: APIMethod.POST,
130
- appType: MovaAppType.GARAGE,
131
- });
132
- }
133
-
134
- static getGarageAllData(garageId: string): Promise<APIResponse<Garage>> {
135
- return request({
136
- url: `${API_BASE_URL}/garage/${garageId}/all-data`,
137
- method: APIMethod.GET,
138
- appType: MovaAppType.GARAGE,
139
- });
140
- }
141
-
142
- static createGaragePrestationRequest(
143
- garageId: string,
144
- req: any,
145
- ): Promise<APIResponse<string>> {
146
- return request({
147
- url: `${API_BASE_URL}/garage/${garageId}/prestations/request`,
148
- method: APIMethod.POST,
149
- appType: MovaAppType.GARAGE,
150
- body: JSON.stringify(req),
151
- });
152
- }
153
-
154
- static getGarageSettings({garageId}: { garageId: string }): Promise<APIResponse<Garage>> {
155
- return request({
156
- url: `${API_BASE_URL}/garage/${garageId}/settings`,
157
- method: APIMethod.GET,
158
- appType: MovaAppType.GARAGE,
159
- });
160
- }
161
-
162
- static uploadLogo(
163
- garageId: string,
164
- formData: FormData,
165
- ): Promise<APIResponse<string>> {
166
- return request({
167
- url: `${API_BASE_URL}/garage/${garageId}/logo`,
168
- method: APIMethod.PATCH,
169
- appType: MovaAppType.GARAGE,
170
- body: formData,
171
- });
172
- }
173
-
174
- static sendInterventionEnd(
175
- garageId: string,
176
- eventId: string,
177
- ): Promise<APIResponse<string>> {
178
- return request({
179
- url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/intervention-end`,
180
- method: APIMethod.POST,
181
- appType: MovaAppType.GARAGE,
182
- });
183
- }
184
-
185
- static sendAppointmentVehicleAvailable(
186
- garageId: string,
187
- eventId: string,
188
- ): Promise<APIResponse<string>> {
189
- return request({
190
- url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/vehicle-available`,
191
- method: APIMethod.POST,
192
- appType: MovaAppType.GARAGE,
193
- });
194
- }
195
-
196
- static enableGaragePrestation(
197
- garageId: string,
198
- prestationId: string,
199
- ): Promise<APIResponse<string>> {
200
- return request({
201
- url: `${API_BASE_URL}/garage/${garageId}/prestations/${prestationId}/enable`,
202
- method: APIMethod.PATCH,
203
- appType: MovaAppType.GARAGE,
204
- });
205
- }
206
-
207
- static disableGaragePrestation(
208
- garageId: string,
209
- prestationId: string,
210
- ): Promise<APIResponse<string>> {
211
- return request({
212
- url: `${API_BASE_URL}/garage/${garageId}/prestations/${prestationId}/disable`,
213
- method: APIMethod.PATCH,
214
- appType: MovaAppType.GARAGE,
215
- });
216
- }
217
-
218
- static getEmployeeDetails(
219
- garageId: string,
220
- employeeId: string,
221
- ): Promise<APIResponse<Employee>> {
222
- return request({
223
- url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}`,
224
- method: APIMethod.GET,
225
- appType: MovaAppType.GARAGE,
226
- });
227
- }
228
-
229
- static updateGaragePrestation(
230
- garageId: string,
231
- prestationId: string,
232
- req: any,
233
- ): Promise<APIResponse<string>> {
234
- return request({
235
- url: `${API_BASE_URL}/garage/${garageId}/prestations/${prestationId}`,
236
- method: APIMethod.PATCH,
237
- appType: MovaAppType.GARAGE,
238
- body: JSON.stringify(req),
239
- });
240
- }
241
-
242
- static deleteGarageEmployeePrestation(
243
- garageId: string,
244
- employeeId: string,
245
- prestationId: string,
246
- ): Promise<APIResponse<string>> {
247
- return request({
248
- url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/prestations/${prestationId}`,
249
- method: APIMethod.DELETE,
250
- appType: MovaAppType.GARAGE,
251
- });
252
- }
253
-
254
- static createGarageEmployeePrestation(
255
- garageId: string,
256
- employeeId: string,
257
- prestationId: string,
258
- ): Promise<APIResponse<string>> {
259
- return request({
260
- url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/prestations/${prestationId}`,
261
- method: APIMethod.POST,
262
- appType: MovaAppType.GARAGE,
263
- });
264
- }
265
-
266
- static deleteGarageEmployeeAbsence(
267
- garageId: string,
268
- employeeId: string,
269
- absenceId: string,
270
- ): Promise<APIResponse<string>> {
271
- return request({
272
- url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/absences/${absenceId}`,
273
- method: APIMethod.DELETE,
274
- appType: MovaAppType.GARAGE,
275
- });
276
- }
277
-
278
- static createGarageEmployeeAbsence(
279
- garageId: string,
280
- employeeId: string,
281
- req: any,
282
- ): Promise<APIResponse<string>> {
283
- return request({
284
- url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/absences`,
285
- method: APIMethod.POST,
286
- appType: MovaAppType.GARAGE,
287
- body: JSON.stringify(req),
288
- });
289
- }
290
-
291
- static updateGarageEmployee(
292
- garageId: string,
293
- employeeId: string,
294
- req: any,
295
- ): Promise<APIResponse<string>> {
296
- return request({
297
- url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}`,
298
- method: APIMethod.PATCH,
299
- appType: MovaAppType.GARAGE,
300
- body: JSON.stringify(req),
301
- });
302
- }
303
-
304
- static updateGarageEmployeeSchedules(
305
- garageId: string,
306
- employeeId: string,
307
- req: any,
308
- ): Promise<APIResponse<string>> {
309
- return request({
310
- url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/schedules`,
311
- method: APIMethod.PATCH,
312
- appType: MovaAppType.GARAGE,
313
- body: JSON.stringify(req),
314
- });
315
- }
316
-
317
- static deleteGarageEmployee(
318
- garageId: string,
319
- employeeId: string,
320
- ): Promise<APIResponse<string>> {
321
- return request({
322
- url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}`,
323
- method: APIMethod.DELETE,
324
- appType: MovaAppType.GARAGE,
325
- });
326
- }
327
-
328
- static createGarageEmployee(
329
- garageId: string,
330
- req: any,
331
- ): Promise<APIResponse<string>> {
332
- return request({
333
- url: `${API_BASE_URL}/garage/${garageId}/employees`,
334
- method: APIMethod.POST,
335
- appType: MovaAppType.GARAGE,
336
- body: JSON.stringify(req),
337
- });
338
- }
339
-
340
- static getEmployees(garageId: string): Promise<APIResponse<Employee[]>> {
341
- return request({
342
- url: `${API_BASE_URL}/garage/${garageId}/employees`,
343
- method: APIMethod.GET,
344
- appType: MovaAppType.GARAGE,
345
- });
346
- }
347
-
348
- static activateGarage(garageId: string): Promise<APIResponse<string>> {
349
- return request({
350
- url: `${API_BASE_URL}/garage/${garageId}/activate`,
351
- method: APIMethod.PATCH,
352
- appType: MovaAppType.GARAGE,
353
- });
354
- }
355
-
356
- static salesSignUp(formData: FormData): Promise<APIResponse<number>> {
357
- return request({
358
- url: `${API_BASE_URL}/garage/sales-signup`,
359
- method: APIMethod.POST,
360
- appType: MovaAppType.GARAGE,
361
- body: formData,
362
- });
363
- }
364
-
365
- static sendNewEventQuote(
366
- garageId: string,
367
- eventId: string,
368
- formData: FormData,
369
- ): Promise<APIResponse<string>> {
370
- return request({
371
- url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/quote`,
372
- method: APIMethod.PATCH,
373
- appType: MovaAppType.GARAGE,
374
- body: formData,
375
- });
376
- }
377
-
378
- static sendCustomerReminder(
379
- garageId: string,
380
- eventId: string,
381
- message: string,
382
- ): Promise<APIResponse<string>> {
383
- return request({
384
- url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/customer-reminder`,
385
- method: APIMethod.POST,
386
- appType: MovaAppType.GARAGE,
387
- body: message,
388
- });
389
- }
390
-
391
- static updateGarageEvent(
392
- garageId: string,
393
- eventId: string,
394
- req: any,
395
- ): Promise<APIResponse<string>> {
396
- return request({
397
- url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}`,
398
- method: APIMethod.PATCH,
399
- appType: MovaAppType.GARAGE,
400
- body: JSON.stringify(req),
401
- });
402
- }
403
-
404
- static sendSupplierRequest(
405
- garageId: string,
406
- eventId: string,
407
- req: any,
408
- ): Promise<APIResponse<string>> {
409
- return request({
410
- url: `${API_BASE_URL}/garage/${garageId}/events/${eventId}/supplierRequest`,
411
- method: APIMethod.POST,
412
- appType: MovaAppType.GARAGE,
413
- body: JSON.stringify(req),
414
- });
415
- }
416
-
417
- static deleteGarageSupplier(
418
- garageId: string,
419
- supplierId: string,
420
- ): Promise<APIResponse<string>> {
421
- return request({
422
- url: `${API_BASE_URL}/garage/${garageId}/suppliers/${supplierId}`,
423
- method: APIMethod.DELETE,
424
- appType: MovaAppType.GARAGE,
425
- });
426
- }
427
-
428
- static createGarageSupplier(
429
- garageId: string,
430
- req: any,
431
- ): Promise<APIResponse<string>> {
432
- return request({
433
- url: `${API_BASE_URL}/garage/${garageId}/suppliers`,
434
- method: APIMethod.POST,
435
- appType: MovaAppType.GARAGE,
436
- body: JSON.stringify(req),
437
- });
438
- }
439
-
440
- static updateGarageSupplier(
441
- garageId: string,
442
- supplierId: number,
443
- req: any,
444
- ): Promise<APIResponse<string>> {
445
- return request({
446
- url: `${API_BASE_URL}/garage/${garageId}/suppliers/${supplierId}`,
447
- method: APIMethod.PATCH,
448
- appType: MovaAppType.GARAGE,
449
- body: JSON.stringify(req),
450
- });
451
- }
452
- static updateGarage(
453
- garageId: string,
454
- req: any,
455
- ): Promise<APIResponse<string>> {
456
- return request({
457
- url: `${API_BASE_URL}/garage/${garageId}`,
458
- method: APIMethod.PATCH,
459
- appType: MovaAppType.GARAGE,
460
- body: JSON.stringify(req),
461
- });
462
- }
463
-
464
- static getAdministratedGarages({
465
- garageId,
466
- }: { garageId: string }): Promise<APIResponse<Garage>> {
467
- return request({
468
- url: `${API_BASE_URL}/user/garage/${garageId}`,
469
- method: APIMethod.GET,
470
- appType: MovaAppType.GARAGE,
471
- });
472
- }
473
-
474
- static sendGarageSupportRequest(
475
- garageId: string,
476
- req: { message: string },
477
- ): Promise<APIResponse<string>> {
478
- return request({
479
- url: `${API_BASE_URL}/garage/${garageId}/support-request`,
480
- method: APIMethod.POST,
481
- appType: MovaAppType.GARAGE,
482
- body: JSON.stringify(req),
483
- });
484
- }
485
-
486
- static addCustomerVehicle({
487
- garageId,
488
- customerId,
489
- ...payload
490
- }: AddCustomerVehicleParams): Promise<APIResponse<string>> {
491
- return request({
492
- url: `${API_BASE_URL}/garage/${garageId}/customers/${customerId}/vehicles`,
493
- method: APIMethod.POST,
494
- appType: MovaAppType.GARAGE,
495
- body: JSON.stringify(payload),
496
- });
497
- }
498
-
499
- static deleteCustomerVehicle({
500
- garageId,
501
- customerId,
502
- vehicleId,
503
- }: DeleteCustomerVehicleParams): Promise<APIResponse<string>> {
504
- return request({
505
- url: `${API_BASE_URL}/garage/${garageId}/customers/${customerId}/vehicles/${vehicleId}`,
506
- method: APIMethod.DELETE,
507
- appType: MovaAppType.GARAGE,
508
- });
509
- }
510
-
511
- static toogleGarageLoanerVehicleRequest(
512
- garageId: string,
513
- req: any,
514
- ): Promise<APIResponse<string>> {
515
- return request({
516
- url: `${API_BASE_URL}/garage/${garageId}/settings/loaner-vehicle-request`,
517
- method: APIMethod.PATCH,
518
- appType: MovaAppType.GARAGE,
519
- body: JSON.stringify(req),
520
- });
521
- }
522
-
523
- static toogleGarageLoanerVehicleFastServiceExclusion(
524
- garageId: string,
525
- ): Promise<APIResponse<string>> {
526
- return request({
527
- url: `${API_BASE_URL}/garage/${garageId}/settings/loaner-vehicle-fast-service-exclusion`,
528
- method: APIMethod.PATCH,
529
- appType: MovaAppType.GARAGE,
530
- });
531
- }
532
-
533
- static updateFastServiceThresholdRequest(
534
- garageId: string,
535
- value: any,
536
- ): Promise<APIResponse<string>> {
537
- return request({
538
- url: `${API_BASE_URL}/garage/${garageId}/settings/fast-service-threshold?fastServiceThreshold=${encodeURIComponent(value)}`,
539
- method: APIMethod.PATCH,
540
- appType: MovaAppType.GARAGE,
541
- });
542
- }
543
-
544
- static updateSlotAlogrithm(
545
- garageId: string,
546
- req: any,
547
- ): Promise<APIResponse<string>> {
548
- return request({
549
- url: `${API_BASE_URL}/garage/${garageId}/settings/slot-algorithm`,
550
- method: APIMethod.PATCH,
551
- appType: MovaAppType.GARAGE,
552
- body: JSON.stringify(req),
553
- });
554
- }
555
-
556
- static toogleGarageLoanerVehicle(
557
- garageId: string,
558
- ): Promise<APIResponse<string>> {
559
- return request({
560
- url: `${API_BASE_URL}/garage/${garageId}/settings/loaner-vehicle`,
561
- method: APIMethod.PATCH,
562
- appType: MovaAppType.GARAGE,
563
- });
564
- }
565
-
566
- static addGarageVehicle({
567
- garageId,
568
- req,
569
- }: { garageId: string; req: { plate: string } }): Promise<
570
- APIResponse<string>
571
- > {
572
- return request({
573
- url: `${API_BASE_URL}/garage/${garageId}/vehicle`,
574
- method: APIMethod.POST,
575
- appType: MovaAppType.GARAGE,
576
- body: JSON.stringify(req),
577
- });
578
- }
579
-
580
- static deleteGarageVehicle({
581
- garageId,
582
- vehicleId,
583
- }: { garageId: string; vehicleId: number }): Promise<APIResponse<string>> {
584
- return request({
585
- url: `${API_BASE_URL}/garage/${garageId}/vehicle/${vehicleId}`,
586
- method: APIMethod.DELETE,
587
- appType: MovaAppType.GARAGE,
588
- });
589
- }
590
-
591
- static getAllGarageVehicles(garageId: string): Promise<APIResponse<any>> {
592
- return request({
593
- url: `${API_BASE_URL}/garage/${garageId}/vehicles`,
594
- method: APIMethod.GET,
595
- appType: MovaAppType.GARAGE,
596
- });
597
- }
598
-
599
- static getOneGarageVehicle(
600
- garageId: string,
601
- vehicleId: number,
602
- ): Promise<APIResponse<any>> {
603
- return request({
604
- url: `${API_BASE_URL}/garage/${garageId}/vehicle/${vehicleId}`,
605
- method: APIMethod.GET,
606
- appType: MovaAppType.GARAGE,
607
- });
608
- }
609
-
610
- static assignGarageVehicleEvent(
611
- garageId: string,
612
- eventId: string,
613
- vehicleId: number,
614
- ): Promise<APIResponse<string>> {
615
- return request({
616
- url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/vehicles/${vehicleId}`,
617
- method: APIMethod.PATCH,
618
- appType: MovaAppType.GARAGE,
619
- });
620
- }
621
-
622
- static deassignGarageVehicleEvent(
623
- garageId: string,
624
- eventId: string,
625
- ): Promise<APIResponse<string>> {
626
- return request({
627
- url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/vehicles`,
628
- method: APIMethod.DELETE,
629
- appType: MovaAppType.GARAGE,
630
- });
631
- }
632
-
633
- // CSM
634
- static getGaragesCsm(): Promise<APIResponse<Garage[]>> {
635
- return request({
636
- url: `${API_BASE_URL}/csm/garages/list`,
637
- method: APIMethod.GET,
638
- appType: MovaAppType.GARAGE,
639
- });
640
- }
641
-
642
- static getOneGarageCsm(garageId: string): Promise<APIResponse<Garage[]>> {
643
- return request({
644
- url: `${API_BASE_URL}/csm/garage/${garageId}`,
645
- method: APIMethod.GET,
646
- appType: MovaAppType.GARAGE,
647
- });
648
- }
649
-
650
- static getAllOperations(garageId:string): Promise<APIResponse<Operation>> {
651
- return request({
652
- url: `${API_BASE_URL}/garage/${garageId}/operations/all`,
653
- method: APIMethod.GET,
654
- appType: MovaAppType.GARAGE,
655
- });
656
- }
657
-
658
- static getAllProducts(garageId:string): Promise<APIResponse<Product>> {
659
- return request({
660
- url: `${API_BASE_URL}/garage/${garageId}/products/all`,
661
- method: APIMethod.GET,
662
- appType: MovaAppType.GARAGE,
663
- });
664
- }
144
+ static sendGarageMandate(garageId: string): Promise<APIResponse<string>> {
145
+ return request({
146
+ url: `${API_BASE_URL}/garage/${garageId}/subscription-mandate`,
147
+ method: APIMethod.POST,
148
+ appType: MovaAppType.GARAGE,
149
+ });
150
+ }
151
+
152
+ static getGarageAllData(garageId: string): Promise<APIResponse<Garage>> {
153
+ return request({
154
+ url: `${API_BASE_URL}/garage/${garageId}/all-data`,
155
+ method: APIMethod.GET,
156
+ appType: MovaAppType.GARAGE,
157
+ });
158
+ }
159
+
160
+ static createGaragePrestationRequest(
161
+ garageId: string,
162
+ req: any
163
+ ): Promise<APIResponse<string>> {
164
+ return request({
165
+ url: `${API_BASE_URL}/garage/${garageId}/prestations/request`,
166
+ method: APIMethod.POST,
167
+ appType: MovaAppType.GARAGE,
168
+ body: JSON.stringify(req),
169
+ });
170
+ }
171
+
172
+ static getGarageSettings({
173
+ garageId,
174
+ }: {
175
+ garageId: string;
176
+ }): Promise<APIResponse<Garage>> {
177
+ return request({
178
+ url: `${API_BASE_URL}/garage/${garageId}/settings`,
179
+ method: APIMethod.GET,
180
+ appType: MovaAppType.GARAGE,
181
+ });
182
+ }
183
+
184
+ static uploadLogo(
185
+ garageId: string,
186
+ formData: FormData
187
+ ): Promise<APIResponse<string>> {
188
+ return request({
189
+ url: `${API_BASE_URL}/garage/${garageId}/logo`,
190
+ method: APIMethod.PATCH,
191
+ appType: MovaAppType.GARAGE,
192
+ body: formData,
193
+ });
194
+ }
195
+
196
+ static sendInterventionEnd(
197
+ garageId: string,
198
+ eventId: string
199
+ ): Promise<APIResponse<string>> {
200
+ return request({
201
+ url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/intervention-end`,
202
+ method: APIMethod.POST,
203
+ appType: MovaAppType.GARAGE,
204
+ });
205
+ }
206
+
207
+ static sendAppointmentVehicleAvailable(
208
+ garageId: string,
209
+ eventId: string
210
+ ): Promise<APIResponse<string>> {
211
+ return request({
212
+ url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/vehicle-available`,
213
+ method: APIMethod.POST,
214
+ appType: MovaAppType.GARAGE,
215
+ });
216
+ }
217
+
218
+ static enableGaragePrestation(
219
+ garageId: string,
220
+ prestationId: string
221
+ ): Promise<APIResponse<string>> {
222
+ return request({
223
+ url: `${API_BASE_URL}/garage/${garageId}/prestations/${prestationId}/enable`,
224
+ method: APIMethod.PATCH,
225
+ appType: MovaAppType.GARAGE,
226
+ });
227
+ }
228
+
229
+ static disableGaragePrestation(
230
+ garageId: string,
231
+ prestationId: string
232
+ ): Promise<APIResponse<string>> {
233
+ return request({
234
+ url: `${API_BASE_URL}/garage/${garageId}/prestations/${prestationId}/disable`,
235
+ method: APIMethod.PATCH,
236
+ appType: MovaAppType.GARAGE,
237
+ });
238
+ }
239
+
240
+ static getEmployeeDetails(
241
+ garageId: string,
242
+ employeeId: string
243
+ ): Promise<APIResponse<Employee>> {
244
+ return request({
245
+ url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}`,
246
+ method: APIMethod.GET,
247
+ appType: MovaAppType.GARAGE,
248
+ });
249
+ }
250
+
251
+ static updateGaragePrestation(
252
+ garageId: string,
253
+ prestationId: string,
254
+ req: any
255
+ ): Promise<APIResponse<string>> {
256
+ return request({
257
+ url: `${API_BASE_URL}/garage/${garageId}/prestations/${prestationId}`,
258
+ method: APIMethod.PATCH,
259
+ appType: MovaAppType.GARAGE,
260
+ body: JSON.stringify(req),
261
+ });
262
+ }
263
+
264
+ static deleteGarageEmployeePrestation(
265
+ garageId: string,
266
+ employeeId: string,
267
+ prestationId: string
268
+ ): Promise<APIResponse<string>> {
269
+ return request({
270
+ url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/prestations/${prestationId}`,
271
+ method: APIMethod.DELETE,
272
+ appType: MovaAppType.GARAGE,
273
+ });
274
+ }
275
+
276
+ static createGarageEmployeePrestation(
277
+ garageId: string,
278
+ employeeId: string,
279
+ prestationId: string
280
+ ): Promise<APIResponse<string>> {
281
+ return request({
282
+ url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/prestations/${prestationId}`,
283
+ method: APIMethod.POST,
284
+ appType: MovaAppType.GARAGE,
285
+ });
286
+ }
287
+
288
+ static deleteGarageEmployeeAbsence(
289
+ garageId: string,
290
+ employeeId: string,
291
+ absenceId: string
292
+ ): Promise<APIResponse<string>> {
293
+ return request({
294
+ url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/absences/${absenceId}`,
295
+ method: APIMethod.DELETE,
296
+ appType: MovaAppType.GARAGE,
297
+ });
298
+ }
299
+
300
+ static createGarageEmployeeAbsence(
301
+ garageId: string,
302
+ employeeId: string,
303
+ req: any
304
+ ): Promise<APIResponse<string>> {
305
+ return request({
306
+ url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/absences`,
307
+ method: APIMethod.POST,
308
+ appType: MovaAppType.GARAGE,
309
+ body: JSON.stringify(req),
310
+ });
311
+ }
312
+
313
+ static updateGarageEmployee(
314
+ garageId: string,
315
+ employeeId: string,
316
+ req: any
317
+ ): Promise<APIResponse<string>> {
318
+ return request({
319
+ url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}`,
320
+ method: APIMethod.PATCH,
321
+ appType: MovaAppType.GARAGE,
322
+ body: JSON.stringify(req),
323
+ });
324
+ }
325
+
326
+ static updateGarageEmployeeSchedules(
327
+ garageId: string,
328
+ employeeId: string,
329
+ req: any
330
+ ): Promise<APIResponse<string>> {
331
+ return request({
332
+ url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/schedules`,
333
+ method: APIMethod.PATCH,
334
+ appType: MovaAppType.GARAGE,
335
+ body: JSON.stringify(req),
336
+ });
337
+ }
338
+
339
+ static deleteGarageEmployee(
340
+ garageId: string,
341
+ employeeId: string
342
+ ): Promise<APIResponse<string>> {
343
+ return request({
344
+ url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}`,
345
+ method: APIMethod.DELETE,
346
+ appType: MovaAppType.GARAGE,
347
+ });
348
+ }
349
+
350
+ static createGarageEmployee(
351
+ garageId: string,
352
+ req: any
353
+ ): Promise<APIResponse<string>> {
354
+ return request({
355
+ url: `${API_BASE_URL}/garage/${garageId}/employees`,
356
+ method: APIMethod.POST,
357
+ appType: MovaAppType.GARAGE,
358
+ body: JSON.stringify(req),
359
+ });
360
+ }
361
+
362
+ static getEmployees(garageId: string): Promise<APIResponse<Employee[]>> {
363
+ return request({
364
+ url: `${API_BASE_URL}/garage/${garageId}/employees`,
365
+ method: APIMethod.GET,
366
+ appType: MovaAppType.GARAGE,
367
+ });
368
+ }
369
+
370
+ static activateGarage(garageId: string): Promise<APIResponse<string>> {
371
+ return request({
372
+ url: `${API_BASE_URL}/garage/${garageId}/activate`,
373
+ method: APIMethod.PATCH,
374
+ appType: MovaAppType.GARAGE,
375
+ });
376
+ }
377
+
378
+ static salesSignUp(formData: FormData): Promise<APIResponse<number>> {
379
+ return request({
380
+ url: `${API_BASE_URL}/garage/sales-signup`,
381
+ method: APIMethod.POST,
382
+ appType: MovaAppType.GARAGE,
383
+ body: formData,
384
+ });
385
+ }
386
+
387
+ static sendNewEventQuote(
388
+ garageId: string,
389
+ eventId: string,
390
+ formData: FormData
391
+ ): Promise<APIResponse<string>> {
392
+ return request({
393
+ url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/quote`,
394
+ method: APIMethod.PATCH,
395
+ appType: MovaAppType.GARAGE,
396
+ body: formData,
397
+ });
398
+ }
399
+
400
+ static sendCustomerReminder(
401
+ garageId: string,
402
+ eventId: string,
403
+ message: string
404
+ ): Promise<APIResponse<string>> {
405
+ return request({
406
+ url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/customer-reminder`,
407
+ method: APIMethod.POST,
408
+ appType: MovaAppType.GARAGE,
409
+ body: message,
410
+ });
411
+ }
412
+
413
+ static updateGarageEvent(
414
+ garageId: string,
415
+ eventId: string,
416
+ req: any
417
+ ): Promise<APIResponse<string>> {
418
+ return request({
419
+ url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}`,
420
+ method: APIMethod.PATCH,
421
+ appType: MovaAppType.GARAGE,
422
+ body: JSON.stringify(req),
423
+ });
424
+ }
425
+
426
+ static sendSupplierRequest(
427
+ garageId: string,
428
+ eventId: string,
429
+ req: any
430
+ ): Promise<APIResponse<string>> {
431
+ return request({
432
+ url: `${API_BASE_URL}/garage/${garageId}/events/${eventId}/supplierRequest`,
433
+ method: APIMethod.POST,
434
+ appType: MovaAppType.GARAGE,
435
+ body: JSON.stringify(req),
436
+ });
437
+ }
438
+
439
+ static deleteSupplierRequest(orderId: string): Promise<APIResponse<string>> {
440
+ return request({
441
+ url: `${API_BASE_URL}/order/${orderId}`,
442
+ method: APIMethod.DELETE,
443
+ appType: MovaAppType.GARAGE,
444
+ });
445
+ }
446
+
447
+ static receiveSupplierRequest(orderId: string): Promise<APIResponse<string>> {
448
+ return request({
449
+ url: `${API_BASE_URL}/order/${orderId}/receive`,
450
+ method: APIMethod.PATCH,
451
+ appType: MovaAppType.GARAGE,
452
+ });
453
+ }
454
+
455
+ static deleteGarageSupplier(
456
+ garageId: string,
457
+ supplierId: string
458
+ ): Promise<APIResponse<string>> {
459
+ return request({
460
+ url: `${API_BASE_URL}/garage/${garageId}/suppliers/${supplierId}`,
461
+ method: APIMethod.DELETE,
462
+ appType: MovaAppType.GARAGE,
463
+ });
464
+ }
465
+
466
+ static createGarageSupplier(
467
+ garageId: string,
468
+ req: any
469
+ ): Promise<APIResponse<string>> {
470
+ return request({
471
+ url: `${API_BASE_URL}/garage/${garageId}/suppliers`,
472
+ method: APIMethod.POST,
473
+ appType: MovaAppType.GARAGE,
474
+ body: JSON.stringify(req),
475
+ });
476
+ }
477
+
478
+ static updateGarageSupplier(
479
+ garageId: string,
480
+ supplierId: number,
481
+ req: any
482
+ ): Promise<APIResponse<string>> {
483
+ return request({
484
+ url: `${API_BASE_URL}/garage/${garageId}/suppliers/${supplierId}`,
485
+ method: APIMethod.PATCH,
486
+ appType: MovaAppType.GARAGE,
487
+ body: JSON.stringify(req),
488
+ });
489
+ }
490
+ static updateGarage(
491
+ garageId: string,
492
+ req: any
493
+ ): Promise<APIResponse<string>> {
494
+ return request({
495
+ url: `${API_BASE_URL}/garage/${garageId}`,
496
+ method: APIMethod.PATCH,
497
+ appType: MovaAppType.GARAGE,
498
+ body: JSON.stringify(req),
499
+ });
500
+ }
501
+
502
+ static getAdministratedGarages({
503
+ garageId,
504
+ }: {
505
+ garageId: string;
506
+ }): Promise<APIResponse<Garage>> {
507
+ return request({
508
+ url: `${API_BASE_URL}/user/garage/${garageId}`,
509
+ method: APIMethod.GET,
510
+ appType: MovaAppType.GARAGE,
511
+ });
512
+ }
513
+
514
+ static sendGarageSupportRequest(
515
+ garageId: string,
516
+ req: { message: string }
517
+ ): Promise<APIResponse<string>> {
518
+ return request({
519
+ url: `${API_BASE_URL}/garage/${garageId}/support-request`,
520
+ method: APIMethod.POST,
521
+ appType: MovaAppType.GARAGE,
522
+ body: JSON.stringify(req),
523
+ });
524
+ }
525
+
526
+ static addCustomerVehicle({
527
+ garageId,
528
+ customerId,
529
+ ...payload
530
+ }: AddCustomerVehicleParams): Promise<APIResponse<string>> {
531
+ return request({
532
+ url: `${API_BASE_URL}/garage/${garageId}/customers/${customerId}/vehicles`,
533
+ method: APIMethod.POST,
534
+ appType: MovaAppType.GARAGE,
535
+ body: JSON.stringify(payload),
536
+ });
537
+ }
538
+
539
+ static deleteCustomerVehicle({
540
+ garageId,
541
+ customerId,
542
+ vehicleId,
543
+ }: DeleteCustomerVehicleParams): Promise<APIResponse<string>> {
544
+ return request({
545
+ url: `${API_BASE_URL}/garage/${garageId}/customers/${customerId}/vehicles/${vehicleId}`,
546
+ method: APIMethod.DELETE,
547
+ appType: MovaAppType.GARAGE,
548
+ });
549
+ }
550
+
551
+ static toogleGarageLoanerVehicleRequest(
552
+ garageId: string,
553
+ req: any
554
+ ): Promise<APIResponse<string>> {
555
+ return request({
556
+ url: `${API_BASE_URL}/garage/${garageId}/settings/loaner-vehicle-request`,
557
+ method: APIMethod.PATCH,
558
+ appType: MovaAppType.GARAGE,
559
+ body: JSON.stringify(req),
560
+ });
561
+ }
562
+
563
+ static toogleGarageLoanerVehicleFastServiceExclusion(
564
+ garageId: string
565
+ ): Promise<APIResponse<string>> {
566
+ return request({
567
+ url: `${API_BASE_URL}/garage/${garageId}/settings/loaner-vehicle-fast-service-exclusion`,
568
+ method: APIMethod.PATCH,
569
+ appType: MovaAppType.GARAGE,
570
+ });
571
+ }
572
+
573
+ static updateFastServiceThresholdRequest(
574
+ garageId: string,
575
+ value: any
576
+ ): Promise<APIResponse<string>> {
577
+ return request({
578
+ url: `${API_BASE_URL}/garage/${garageId}/settings/fast-service-threshold?fastServiceThreshold=${encodeURIComponent(
579
+ value
580
+ )}`,
581
+ method: APIMethod.PATCH,
582
+ appType: MovaAppType.GARAGE,
583
+ });
584
+ }
585
+
586
+ static updateSlotAlogrithm(
587
+ garageId: string,
588
+ req: any
589
+ ): Promise<APIResponse<string>> {
590
+ return request({
591
+ url: `${API_BASE_URL}/garage/${garageId}/settings/slot-algorithm`,
592
+ method: APIMethod.PATCH,
593
+ appType: MovaAppType.GARAGE,
594
+ body: JSON.stringify(req),
595
+ });
596
+ }
597
+
598
+ static toogleGarageLoanerVehicle(
599
+ garageId: string
600
+ ): Promise<APIResponse<string>> {
601
+ return request({
602
+ url: `${API_BASE_URL}/garage/${garageId}/settings/loaner-vehicle`,
603
+ method: APIMethod.PATCH,
604
+ appType: MovaAppType.GARAGE,
605
+ });
606
+ }
607
+
608
+ static addGarageVehicle({
609
+ garageId,
610
+ req,
611
+ }: {
612
+ garageId: string;
613
+ req: { plate: string };
614
+ }): Promise<APIResponse<string>> {
615
+ return request({
616
+ url: `${API_BASE_URL}/garage/${garageId}/vehicle`,
617
+ method: APIMethod.POST,
618
+ appType: MovaAppType.GARAGE,
619
+ body: JSON.stringify(req),
620
+ });
621
+ }
622
+
623
+ static deleteGarageVehicle({
624
+ garageId,
625
+ vehicleId,
626
+ }: {
627
+ garageId: string;
628
+ vehicleId: number;
629
+ }): Promise<APIResponse<string>> {
630
+ return request({
631
+ url: `${API_BASE_URL}/garage/${garageId}/vehicle/${vehicleId}`,
632
+ method: APIMethod.DELETE,
633
+ appType: MovaAppType.GARAGE,
634
+ });
635
+ }
636
+
637
+ static getAllGarageVehicles(garageId: string): Promise<APIResponse<any>> {
638
+ return request({
639
+ url: `${API_BASE_URL}/garage/${garageId}/vehicles`,
640
+ method: APIMethod.GET,
641
+ appType: MovaAppType.GARAGE,
642
+ });
643
+ }
644
+
645
+ static getOneGarageVehicle(
646
+ garageId: string,
647
+ vehicleId: number
648
+ ): Promise<APIResponse<any>> {
649
+ return request({
650
+ url: `${API_BASE_URL}/garage/${garageId}/vehicle/${vehicleId}`,
651
+ method: APIMethod.GET,
652
+ appType: MovaAppType.GARAGE,
653
+ });
654
+ }
655
+
656
+ static assignGarageVehicleEvent(
657
+ garageId: string,
658
+ eventId: string,
659
+ vehicleId: number
660
+ ): Promise<APIResponse<string>> {
661
+ return request({
662
+ url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/vehicles/${vehicleId}`,
663
+ method: APIMethod.PATCH,
664
+ appType: MovaAppType.GARAGE,
665
+ });
666
+ }
667
+
668
+ static deassignGarageVehicleEvent(
669
+ garageId: string,
670
+ eventId: string
671
+ ): Promise<APIResponse<string>> {
672
+ return request({
673
+ url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/vehicles`,
674
+ method: APIMethod.DELETE,
675
+ appType: MovaAppType.GARAGE,
676
+ });
677
+ }
678
+
679
+ // CSM
680
+ static getGaragesCsm(): Promise<APIResponse<Garage[]>> {
681
+ return request({
682
+ url: `${API_BASE_URL}/csm/garages/list`,
683
+ method: APIMethod.GET,
684
+ appType: MovaAppType.GARAGE,
685
+ });
686
+ }
687
+
688
+ static getOneGarageCsm(garageId: string): Promise<APIResponse<Garage[]>> {
689
+ return request({
690
+ url: `${API_BASE_URL}/csm/garage/${garageId}`,
691
+ method: APIMethod.GET,
692
+ appType: MovaAppType.GARAGE,
693
+ });
694
+ }
695
+
696
+ static getAllOperations(garageId: string): Promise<APIResponse<Operation>> {
697
+ return request({
698
+ url: `${API_BASE_URL}/garage/${garageId}/operations/all`,
699
+ method: APIMethod.GET,
700
+ appType: MovaAppType.GARAGE,
701
+ });
702
+ }
703
+
704
+ static getAllProducts(garageId: string): Promise<APIResponse<Product>> {
705
+ return request({
706
+ url: `${API_BASE_URL}/garage/${garageId}/products/all`,
707
+ method: APIMethod.GET,
708
+ appType: MovaAppType.GARAGE,
709
+ });
710
+ }
665
711
  }