@movalib/movalib-commons 1.2.23 → 1.2.24
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/MovaDialog.js
CHANGED
|
@@ -51,9 +51,7 @@ var MovaDialog = function (_a) {
|
|
|
51
51
|
onClose();
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, __assign({ fullScreen: fullScreen, fullWidth: true,
|
|
55
|
-
//TransitionComponent={getTransition()}
|
|
56
|
-
open: open, "aria-labelledby": "garage-dialog-title", "aria-describedby": "garage-dialog-description", onClose: handleOnClose, maxWidth: maxWidth, sx: __assign(__assign({}, sx), { textAlign: 'center' }) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: getLeafImage(), style: {
|
|
54
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, __assign({ fullScreen: fullScreen, fullWidth: true, TransitionComponent: getTransition(), open: open, "aria-labelledby": "garage-dialog-title", "aria-describedby": "garage-dialog-description", onClose: handleOnClose, maxWidth: maxWidth, sx: __assign(__assign({}, sx), { textAlign: 'center' }) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: getLeafImage(), style: {
|
|
57
55
|
position: 'absolute',
|
|
58
56
|
float: 'left',
|
|
59
57
|
width: '150px',
|
|
@@ -3,6 +3,7 @@ import { MovaAppType } from "../helpers/Enums";
|
|
|
3
3
|
import Garage from "../models/Garage";
|
|
4
4
|
import User from "../models/User";
|
|
5
5
|
export default class UserService {
|
|
6
|
+
static existsByToken(token: string): Promise<APIResponse<User>>;
|
|
6
7
|
static existsByPhoneNumber(phoneNumber: string): Promise<APIResponse<User>>;
|
|
7
8
|
static reestPassword(req: any): Promise<APIResponse<string>>;
|
|
8
9
|
static resendSecurityCode(req: any): Promise<APIResponse<string>>;
|
|
@@ -45,6 +45,12 @@ var Logger_1 = __importDefault(require("../helpers/Logger"));
|
|
|
45
45
|
var UserService = /** @class */ (function () {
|
|
46
46
|
function UserService() {
|
|
47
47
|
}
|
|
48
|
+
UserService.existsByToken = function (token) {
|
|
49
|
+
return (0, ApiHelper_1.request)({
|
|
50
|
+
url: "".concat(ApiHelper_1.API_BASE_URL, "/user/token/").concat(token),
|
|
51
|
+
method: Enums_1.APIMethod.GET
|
|
52
|
+
});
|
|
53
|
+
};
|
|
48
54
|
UserService.existsByPhoneNumber = function (phoneNumber) {
|
|
49
55
|
return (0, ApiHelper_1.request)({
|
|
50
56
|
url: "".concat(ApiHelper_1.API_BASE_URL, "/user/phone-number/").concat(phoneNumber),
|
package/package.json
CHANGED
package/src/MovaDialog.tsx
CHANGED
|
@@ -70,7 +70,7 @@ const MovaDialog: FC<MovaDialogProps> = ({fullScreen, open, onClose, closable =
|
|
|
70
70
|
<Dialog
|
|
71
71
|
fullScreen={fullScreen}
|
|
72
72
|
fullWidth
|
|
73
|
-
|
|
73
|
+
TransitionComponent={getTransition()}
|
|
74
74
|
open={open}
|
|
75
75
|
aria-labelledby="garage-dialog-title"
|
|
76
76
|
aria-describedby="garage-dialog-description"
|
|
@@ -6,6 +6,13 @@ import User from "../models/User";
|
|
|
6
6
|
|
|
7
7
|
export default class UserService {
|
|
8
8
|
|
|
9
|
+
static existsByToken(token: string): Promise<APIResponse<User>> {
|
|
10
|
+
return request({
|
|
11
|
+
url: `${API_BASE_URL}/user/token/${token}`,
|
|
12
|
+
method: APIMethod.GET
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
9
16
|
static existsByPhoneNumber(phoneNumber: string): Promise<APIResponse<User>> {
|
|
10
17
|
return request({
|
|
11
18
|
url: `${API_BASE_URL}/user/phone-number/${phoneNumber}`,
|