@movalib/movalib-commons 1.1.50 → 1.1.52

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.
@@ -1,6 +1,7 @@
1
1
  import { APIResponse } from "../helpers/ApiHelper";
2
2
  import Garage from "../models/Garage";
3
3
  export default class GarageService {
4
+ static salesSignUp(req: any): Promise<APIResponse<number>>;
4
5
  static sendNewEventQuote(garageId: string, eventId: string, formData: FormData): Promise<APIResponse<string>>;
5
6
  static sendCustomerReminder(garageId: string, eventId: string, message: string): Promise<APIResponse<string>>;
6
7
  static updateGarageEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>>;
@@ -5,6 +5,14 @@ var Enums_1 = require("../helpers/Enums");
5
5
  var GarageService = /** @class */ (function () {
6
6
  function GarageService() {
7
7
  }
8
+ GarageService.salesSignUp = function (req) {
9
+ return (0, ApiHelper_1.request)({
10
+ url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/sales-signup"),
11
+ method: Enums_1.APIMethod.POST,
12
+ appType: Enums_1.MovaAppType.INDIVIDUAL,
13
+ body: JSON.stringify(req)
14
+ });
15
+ };
8
16
  GarageService.sendNewEventQuote = function (garageId, eventId, formData) {
9
17
  return (0, ApiHelper_1.request)({
10
18
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/event/").concat(eventId, "/quote"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.1.50",
3
+ "version": "1.1.52",
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",
@@ -4,6 +4,15 @@ import Garage from "../models/Garage";
4
4
 
5
5
  export default class GarageService {
6
6
 
7
+ static salesSignUp(req: any): Promise<APIResponse<number>> {
8
+ return request({
9
+ url: `${API_BASE_URL}/garage/sales-signup`,
10
+ method: APIMethod.POST,
11
+ appType: MovaAppType.INDIVIDUAL,
12
+ body: JSON.stringify(req)
13
+ });
14
+ }
15
+
7
16
  static sendNewEventQuote(garageId: string, eventId: string, formData: FormData): Promise<APIResponse<string>> {
8
17
  return request({
9
18
  url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/quote`,