@movalib/movalib-commons 1.1.58 → 1.1.60

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.
@@ -111,7 +111,8 @@ var AccountValidation = function (_a) {
111
111
  var params = new URLSearchParams(location.search);
112
112
  var req = {
113
113
  token: params.get('token'),
114
- password: passwordForm.password.value
114
+ password: passwordForm.password.value,
115
+ demoGarage: Boolean(params.get('demoGarage'))
115
116
  };
116
117
  activateAccount(req);
117
118
  }
@@ -16,7 +16,7 @@ var GarageService = /** @class */ (function () {
16
16
  return (0, ApiHelper_1.request)({
17
17
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/sales-signup"),
18
18
  method: Enums_1.APIMethod.POST,
19
- appType: Enums_1.MovaAppType.INDIVIDUAL,
19
+ appType: Enums_1.MovaAppType.GARAGE,
20
20
  body: formData
21
21
  });
22
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.1.58",
3
+ "version": "1.1.60",
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",
@@ -127,7 +127,8 @@ const AccountValidation: FunctionComponent<AccountValidationProps> = ({ movaAppT
127
127
 
128
128
  let req = {
129
129
  token: params.get('token'),
130
- password: passwordForm.password.value
130
+ password: passwordForm.password.value,
131
+ demoGarage: Boolean(params.get('demoGarage'))
131
132
  }
132
133
 
133
134
  activateAccount(req);
@@ -17,7 +17,7 @@ export default class GarageService {
17
17
  return request({
18
18
  url: `${API_BASE_URL}/garage/sales-signup`,
19
19
  method: APIMethod.POST,
20
- appType: MovaAppType.INDIVIDUAL,
20
+ appType: MovaAppType.GARAGE,
21
21
  body: formData
22
22
  });
23
23
  }