@addev-be/ui 0.16.9 → 0.16.10
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/Icons.d.ts +3 -1
- package/dist/Icons.js +6 -1
- package/dist/components/auth/LoginForm.js +7 -5
- package/dist/components/auth/PasswordRecoveryForm.js +6 -5
- package/dist/components/auth/styles.d.ts +1 -3
- package/dist/components/data/DataGrid/DataGridCell.d.ts +1 -1
- package/dist/components/data/DataGrid/DataGridCell.js +25 -15
- package/dist/components/data/DataGrid/DataGridColumnsModal/hooks.js +2 -2
- package/dist/components/data/DataGrid/DataGridColumnsModal/index.js +17 -7
- package/dist/components/data/DataGrid/DataGridColumnsModal/styles.d.ts +6 -18
- package/dist/components/data/DataGrid/DataGridColumnsModal/styles.js +19 -9
- package/dist/components/data/DataGrid/DataGridEditableCell/CheckboxEditableCell.d.ts +1 -1
- package/dist/components/data/DataGrid/DataGridEditableCell/CheckboxEditableCell.js +3 -3
- package/dist/components/data/DataGrid/DataGridEditableCell/DateEditableCell.d.ts +1 -1
- package/dist/components/data/DataGrid/DataGridEditableCell/DateEditableCell.js +4 -4
- package/dist/components/data/DataGrid/DataGridEditableCell/NumberEditableCell.d.ts +4 -2
- package/dist/components/data/DataGrid/DataGridEditableCell/NumberEditableCell.js +7 -5
- package/dist/components/data/DataGrid/DataGridEditableCell/TextEditableCell.d.ts +1 -1
- package/dist/components/data/DataGrid/DataGridEditableCell/TextEditableCell.js +3 -3
- package/dist/components/data/DataGrid/DataGridEditableCell/index.js +12 -12
- package/dist/components/data/DataGrid/DataGridEditableCell/styles.js +1 -1
- package/dist/components/data/DataGrid/DataGridEditableCell/types.d.ts +3 -3
- package/dist/components/data/DataGrid/DataGridFilterMenu/FilterValuesScroller.js +19 -10
- package/dist/components/data/DataGrid/DataGridFilterMenu/helpers.d.ts +2 -0
- package/dist/components/data/DataGrid/DataGridFilterMenu/helpers.js +19 -0
- package/dist/components/data/DataGrid/DataGridFilterMenu/hooks.js +2 -2
- package/dist/components/data/DataGrid/DataGridFilterMenu/index.js +24 -19
- package/dist/components/data/DataGrid/DataGridFilterMenu/styles.d.ts +5 -15
- package/dist/components/data/DataGrid/DataGridFilterMenu/styles.js +5 -5
- package/dist/components/data/DataGrid/DataGridFooter.js +18 -10
- package/dist/components/data/DataGrid/DataGridHeader.js +20 -60
- package/dist/components/data/DataGrid/DataGridHeaderCell.js +22 -13
- package/dist/components/data/DataGrid/DataGridRowTemplate.js +22 -10
- package/dist/components/data/DataGrid/DataGridToolbar.d.ts +4 -0
- package/dist/components/data/DataGrid/DataGridToolbar.js +141 -0
- package/dist/components/data/DataGrid/FilterModalContent/index.js +22 -12
- package/dist/components/data/DataGrid/FilterModalContent/styles.d.ts +1 -3
- package/dist/components/data/DataGrid/helpers/columns.d.ts +11 -9
- package/dist/components/data/DataGrid/helpers/columns.js +38 -19
- package/dist/components/data/DataGrid/hooks/useDataGrid.js +6 -5
- package/dist/components/data/DataGrid/hooks/useDataGridChangedRows.d.ts +7 -7
- package/dist/components/data/DataGrid/hooks/useDataGridChangedRows.js +52 -32
- package/dist/components/data/DataGrid/hooks/useDataGridSettings.d.ts +8 -12
- package/dist/components/data/DataGrid/hooks/useDataGridSettings.js +2 -2
- package/dist/components/data/DataGrid/hooks/useRefreshModal.d.ts +5 -0
- package/dist/components/data/DataGrid/hooks/useRefreshModal.js +25 -0
- package/dist/components/data/DataGrid/index.d.ts +3 -6
- package/dist/components/data/DataGrid/index.js +42 -19
- package/dist/components/data/DataGrid/styles.d.ts +10 -18
- package/dist/components/data/DataGrid/styles.js +64 -37
- package/dist/components/data/DataGrid/types.d.ts +42 -30
- package/dist/components/data/DataGrid/types.js +25 -15
- package/dist/components/data/SqlRequestDataGrid/SqlRequestForeignListEditableCell.d.ts +2 -1
- package/dist/components/data/SqlRequestDataGrid/SqlRequestForeignListEditableCell.js +2 -3
- package/dist/components/data/SqlRequestDataGrid/helpers/columns.d.ts +1 -1
- package/dist/components/data/SqlRequestDataGrid/helpers/columns.js +70 -47
- package/dist/components/data/SqlRequestDataGrid/helpers/rows.d.ts +2 -0
- package/dist/components/data/SqlRequestDataGrid/helpers/rows.js +17 -0
- package/dist/components/data/SqlRequestDataGrid/index.d.ts +4 -11
- package/dist/components/data/SqlRequestDataGrid/index.js +50 -30
- package/dist/components/data/SqlRequestForeignList/index.d.ts +4 -3
- package/dist/components/data/SqlRequestForeignList/index.js +15 -15
- package/dist/components/data/SqlRequestForeignList/styles.js +1 -1
- package/dist/components/data/SqlRequestForeignList/types.d.ts +1 -1
- package/dist/components/data/SqlRequestForeignList/types.js +0 -1
- package/dist/components/data/SqlRequestGrid/filters/FiltersSidebar.js +19 -10
- package/dist/components/data/SqlRequestGrid/filters/styles.js +3 -3
- package/dist/components/data/SqlRequestGrid/index.d.ts +4 -3
- package/dist/components/data/SqlRequestGrid/index.js +26 -26
- package/dist/components/data/SqlRequestGrid/styles.d.ts +1 -3
- package/dist/components/data/SqlRequestGrid/types.js +0 -1
- package/dist/components/data/VirtualScroller/hooks.js +2 -2
- package/dist/components/data/VirtualScroller/index.js +17 -8
- package/dist/components/data/VirtualScroller/styles.d.ts +2 -6
- package/dist/components/data/VirtualScroller/styles.js +0 -1
- package/dist/components/data/VirtualScroller/types.js +0 -1
- package/dist/components/forms/AutoTextArea.js +2 -1
- package/dist/components/forms/Button.d.ts +4 -4
- package/dist/components/forms/Button.js +29 -19
- package/dist/components/forms/Form/Checkbox.d.ts +2 -2
- package/dist/components/forms/Form/Checkbox.js +2 -2
- package/dist/components/forms/Form/CustomSelect.d.ts +13 -0
- package/dist/components/forms/Form/CustomSelect.js +50 -0
- package/dist/components/forms/Form/FormGroup.d.ts +3 -1
- package/dist/components/forms/Form/FormGroup.js +2 -2
- package/dist/components/forms/Form/Input.d.ts +2 -2
- package/dist/components/forms/Form/Input.js +3 -2
- package/dist/components/forms/Form/Row.d.ts +9 -0
- package/dist/components/forms/Form/Row.js +10 -0
- package/dist/components/forms/Form/Select.d.ts +4 -8
- package/dist/components/forms/Form/Select.js +12 -8
- package/dist/components/forms/Form/TextArea.d.ts +2 -2
- package/dist/components/forms/Form/TextArea.js +3 -2
- package/dist/components/forms/Form/index.d.ts +40 -20
- package/dist/components/forms/Form/index.js +15 -8
- package/dist/components/forms/Form/styles.d.ts +10 -7
- package/dist/components/forms/Form/styles.js +31 -19
- package/dist/components/forms/IconButton.d.ts +8 -4
- package/dist/components/forms/IconButton.js +4 -4
- package/dist/components/forms/NumberInput.d.ts +9 -0
- package/dist/components/forms/NumberInput.js +40 -0
- package/dist/components/forms/index.d.ts +2 -1
- package/dist/components/forms/index.js +2 -1
- package/dist/components/forms/styles.d.ts +18 -6
- package/dist/components/forms/styles.js +25 -14
- package/dist/components/layout/Columns.d.ts +3 -1
- package/dist/components/layout/Columns.js +8 -6
- package/dist/components/layout/Dropdown/index.js +19 -9
- package/dist/components/layout/Dropdown/styles.d.ts +3 -6
- package/dist/components/layout/Dropdown/styles.js +22 -9
- package/dist/components/layout/Flexbox.d.ts +11 -0
- package/dist/components/layout/Flexbox.js +26 -0
- package/dist/components/layout/Grid/styles.d.ts +1 -3
- package/dist/components/layout/Loading/index.js +19 -9
- package/dist/components/layout/Loading/styles.d.ts +2 -6
- package/dist/components/layout/Modal/index.js +19 -9
- package/dist/components/layout/Modal/styles.d.ts +9 -27
- package/dist/components/layout/Modal/styles.js +21 -11
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/index.js +1 -0
- package/dist/components/search/HighlightedText.js +11 -9
- package/dist/components/search/QuickSearchBar.d.ts +6 -2
- package/dist/components/search/QuickSearchBar.js +28 -25
- package/dist/components/search/QuickSearchResults.js +17 -7
- package/dist/components/search/styles.d.ts +9 -27
- package/dist/components/search/styles.js +5 -5
- package/dist/components/search/types.d.ts +3 -0
- package/dist/components/ui/Avatar/index.d.ts +1 -1
- package/dist/components/ui/Avatar/index.js +17 -7
- package/dist/components/ui/Avatar/styles.js +17 -7
- package/dist/components/ui/Card/styles.d.ts +3 -9
- package/dist/components/ui/Card/styles.js +3 -3
- package/dist/components/ui/ContextMenu/styles.d.ts +4 -12
- package/dist/components/ui/ContextMenu/styles.js +22 -12
- package/dist/components/ui/Ellipsis.d.ts +0 -1
- package/dist/components/ui/Label.d.ts +2 -1
- package/dist/components/ui/Label.js +23 -13
- package/dist/components/ui/Message/index.js +19 -9
- package/dist/components/ui/Message/styles.d.ts +4 -7
- package/dist/components/ui/Message/styles.js +20 -9
- package/dist/components/ui/TabsView/TabsList.d.ts +10 -0
- package/dist/components/ui/TabsView/TabsList.js +40 -0
- package/dist/components/ui/TabsView/TabsView.d.ts +9 -0
- package/dist/components/ui/TabsView/TabsView.js +17 -0
- package/dist/components/ui/TabsView/index.d.ts +3 -0
- package/dist/components/ui/TabsView/index.js +19 -0
- package/dist/components/ui/TabsView/styles.d.ts +11 -0
- package/dist/components/ui/TabsView/styles.js +57 -0
- package/dist/components/ui/TabsView/types.d.ts +10 -0
- package/dist/components/ui/TabsView/types.js +2 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +1 -0
- package/dist/config/index.d.ts +1 -4
- package/dist/helpers/components.d.ts +2 -0
- package/dist/helpers/components.js +8 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/react.d.ts +2 -0
- package/dist/helpers/react.js +8 -0
- package/dist/helpers/styled/index.d.ts +1 -0
- package/dist/helpers/styled/index.js +17 -0
- package/dist/helpers/styled/space.d.ts +39 -0
- package/dist/helpers/styled/space.js +90 -0
- package/dist/helpers/styled/typography.d.ts +9 -0
- package/dist/helpers/styled/typography.js +61 -0
- package/dist/helpers/types.d.ts +2 -0
- package/dist/helpers/types.js +8 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/useMutableState.d.ts +8 -0
- package/dist/hooks/useMutableState.js +14 -0
- package/dist/index.d.ts +86 -5
- package/dist/index.js +86 -5
- package/dist/providers/AuthenticationProvider/index.d.ts +2 -1
- package/dist/providers/AuthenticationProvider/index.js +63 -21
- package/dist/providers/LoadingProvider/index.js +2 -2
- package/dist/providers/PortalsProvider/index.js +17 -7
- package/dist/providers/PortalsProvider/styles.d.ts +3 -9
- package/dist/providers/ThemeProvider/ThemeProvider.d.ts +1 -0
- package/dist/providers/ThemeProvider/ThemeProvider.js +11 -9
- package/dist/providers/ThemeProvider/defaultTheme.d.ts +1 -0
- package/dist/providers/ThemeProvider/defaultTheme.js +20 -1
- package/dist/providers/ThemeProvider/helpers.d.ts +12 -3
- package/dist/providers/ThemeProvider/helpers.js +54 -2
- package/dist/providers/ThemeProvider/index.d.ts +8 -3
- package/dist/providers/ThemeProvider/index.js +49 -18
- package/dist/providers/ThemeProvider/types.d.ts +3 -2
- package/dist/providers/ToastProvider/index.d.ts +12 -0
- package/dist/providers/ToastProvider/index.js +66 -0
- package/dist/providers/TrackingProvider/index.js +2 -2
- package/dist/providers/UiProviders/index.d.ts +4 -1
- package/dist/providers/UiProviders/index.js +20 -10
- package/dist/providers/UiProviders/styles.d.ts +1 -3
- package/dist/providers/UiProviders/styles.js +1 -1
- package/dist/providers/hooks.d.ts +6 -0
- package/dist/providers/hooks.js +4 -1
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.js +1 -0
- package/dist/services/WebSocketService.d.ts +8 -0
- package/dist/services/WebSocketService.js +34 -2
- package/dist/services/globalSearch.d.ts +5 -2
- package/dist/services/hooks.d.ts +10 -0
- package/dist/services/hooks.js +91 -4
- package/dist/services/index.js +17 -7
- package/dist/services/requests/auth.d.ts +9 -11
- package/dist/services/requests/generic.d.ts +62 -15
- package/dist/services/requests/generic.js +7 -7
- package/dist/services/requests/tracking.d.ts +4 -8
- package/dist/services/requests/userProfiles.d.ts +5 -5
- package/dist/services/requests/users.d.ts +11 -16
- package/dist/services/types/auth.d.ts +80 -82
- package/dist/services/types/auth.js +58 -48
- package/dist/services/types/base.d.ts +5 -5
- package/dist/services/types/base.js +21 -11
- package/dist/services/types/generic.d.ts +39 -40
- package/dist/services/types/generic.js +55 -49
- package/dist/services/types/tracking.d.ts +24 -24
- package/dist/services/types/tracking.js +30 -28
- package/dist/services/types/userProfiles.d.ts +60 -60
- package/dist/services/types/userProfiles.js +48 -45
- package/dist/services/types/users.d.ts +108 -114
- package/dist/services/types/users.js +56 -59
- package/dist/services/updateSqlRequests.js +0 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.js +2 -0
- package/eslint.config.js +28 -28
- package/package.json +1 -1
- package/src/components/data/DataGrid/DataGridEditableCell/index.tsx +7 -5
- package/src/components/data/DataGrid/DataGridHeader.tsx +4 -16
- package/src/components/data/DataGrid/DataGridRowTemplate.tsx +2 -4
- package/src/components/data/DataGrid/hooks/useDataGrid.tsx +6 -3
- package/src/components/data/DataGrid/hooks/useDataGridChangedRows.ts +32 -65
- package/src/components/data/DataGrid/styles.ts +2 -9
- package/src/components/data/DataGrid/types.ts +5 -5
- package/src/components/data/SqlRequestDataGrid/helpers/columns.tsx +3 -4
- package/src/components/layout/Modal/styles.ts +2 -6
- package/src/components/search/HighlightedText.tsx +20 -24
- package/src/components/search/QuickSearchBar.tsx +7 -11
- package/tsconfig.tsbuildinfo +1 -1
- package/src/components/data/DataGrid/hooks/useRefreshModal.tsx +0 -48
package/dist/services/hooks.js
CHANGED
|
@@ -1,12 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
2
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useHttpRequestHandler = exports.useWebSocketRequestHandler = exports.useLoadingRequestHandler = void 0;
|
|
4
|
-
var HttpService_1 = require("./HttpService");
|
|
39
|
+
exports.useRequestState = exports.useHttpRequestHandler = exports.useWebSocketRequestHandler = exports.useLoadingRequestHandler = void 0;
|
|
5
40
|
var WebSocketService_1 = require("./WebSocketService");
|
|
6
41
|
var react_1 = require("react");
|
|
7
|
-
var
|
|
42
|
+
var HttpService_1 = require("./HttpService");
|
|
43
|
+
var hooks_1 = require("../providers/hooks");
|
|
8
44
|
var useLoadingRequestHandler = function (name) {
|
|
9
|
-
var _a = (0,
|
|
45
|
+
var _a = (0, hooks_1.useLoading)(), startLoading = _a.startLoading, stopLoading = _a.stopLoading;
|
|
10
46
|
return (0, react_1.useCallback)(function (data) {
|
|
11
47
|
startLoading();
|
|
12
48
|
return WebSocketService_1.WebSocketService.getInstance()
|
|
@@ -27,3 +63,54 @@ var useHttpRequestHandler = function (name) {
|
|
|
27
63
|
}, [name]);
|
|
28
64
|
};
|
|
29
65
|
exports.useHttpRequestHandler = useHttpRequestHandler;
|
|
66
|
+
var useRequestState = function (name, loading) {
|
|
67
|
+
if (loading === void 0) { loading = false; }
|
|
68
|
+
var _a = (0, react_1.useState)('initial'), state = _a[0], setState = _a[1];
|
|
69
|
+
var _b = (0, react_1.useState)(undefined), status = _b[0], setStatus = _b[1];
|
|
70
|
+
var _c = (0, react_1.useState)(null), response = _c[0], setResponse = _c[1];
|
|
71
|
+
var handleSendRequest = (0, exports.useWebSocketRequestHandler)(name);
|
|
72
|
+
var handleSendLoadingRequest = (0, exports.useLoadingRequestHandler)(name);
|
|
73
|
+
var sendRequest = (0, react_1.useCallback)(function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
74
|
+
var res, error_1;
|
|
75
|
+
return __generator(this, function (_a) {
|
|
76
|
+
switch (_a.label) {
|
|
77
|
+
case 0:
|
|
78
|
+
setState('loading');
|
|
79
|
+
_a.label = 1;
|
|
80
|
+
case 1:
|
|
81
|
+
_a.trys.push([1, 3, , 4]);
|
|
82
|
+
return [4 /*yield*/, (loading
|
|
83
|
+
? handleSendLoadingRequest
|
|
84
|
+
: handleSendRequest)(data)];
|
|
85
|
+
case 2:
|
|
86
|
+
res = _a.sent();
|
|
87
|
+
setStatus(0);
|
|
88
|
+
setResponse(res);
|
|
89
|
+
setState('success');
|
|
90
|
+
return [2 /*return*/, res];
|
|
91
|
+
case 3:
|
|
92
|
+
error_1 = _a.sent();
|
|
93
|
+
setStatus(error_1 instanceof WebSocketService_1.WebSocketError ? error_1.status : -1);
|
|
94
|
+
setState('error');
|
|
95
|
+
return [3 /*break*/, 4];
|
|
96
|
+
case 4: return [2 /*return*/];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}); }, [handleSendLoadingRequest, handleSendRequest, loading]);
|
|
100
|
+
var reset = (0, react_1.useCallback)(function () {
|
|
101
|
+
setState('initial');
|
|
102
|
+
setStatus(undefined);
|
|
103
|
+
setResponse(null);
|
|
104
|
+
}, []);
|
|
105
|
+
return {
|
|
106
|
+
status: status,
|
|
107
|
+
isInitial: state === 'initial',
|
|
108
|
+
isLoading: state === 'loading',
|
|
109
|
+
isSuccess: state === 'success',
|
|
110
|
+
isError: state === 'error',
|
|
111
|
+
response: response,
|
|
112
|
+
sendRequest: sendRequest,
|
|
113
|
+
reset: reset,
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
exports.useRequestState = useRequestState;
|
package/dist/services/index.js
CHANGED
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
20
|
};
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.SmartQueries = void 0;
|
|
30
40
|
__exportStar(require("./WebSocketService"), exports);
|
|
@@ -2,22 +2,21 @@ export declare const useAuthenticateRequestHandler: (name?: string) => (data: {
|
|
|
2
2
|
token: string;
|
|
3
3
|
}) => Promise<{
|
|
4
4
|
status: number;
|
|
5
|
-
user:
|
|
5
|
+
user: {
|
|
6
|
+
id: string;
|
|
6
7
|
username: string;
|
|
7
8
|
permissions: string[];
|
|
8
9
|
isAdmin: boolean;
|
|
9
10
|
profile: {
|
|
11
|
+
id: string;
|
|
10
12
|
name: string;
|
|
11
13
|
permissions: string[];
|
|
12
14
|
isAdmin: boolean;
|
|
13
|
-
id: string | null;
|
|
14
15
|
} | null;
|
|
15
|
-
id: string | null;
|
|
16
|
-
} & {
|
|
17
16
|
name?: string | undefined;
|
|
18
17
|
email?: string | undefined;
|
|
19
18
|
lastLogin?: string | null | undefined;
|
|
20
|
-
}
|
|
19
|
+
} | null;
|
|
21
20
|
}>;
|
|
22
21
|
export declare const useLoginRequestHandler: () => (data: {
|
|
23
22
|
username: string;
|
|
@@ -25,24 +24,23 @@ export declare const useLoginRequestHandler: () => (data: {
|
|
|
25
24
|
}) => Promise<{
|
|
26
25
|
status: number;
|
|
27
26
|
token: string;
|
|
28
|
-
user:
|
|
27
|
+
user: {
|
|
28
|
+
id: string;
|
|
29
29
|
username: string;
|
|
30
30
|
permissions: string[];
|
|
31
31
|
isAdmin: boolean;
|
|
32
32
|
profile: {
|
|
33
|
+
id: string;
|
|
33
34
|
name: string;
|
|
34
35
|
permissions: string[];
|
|
35
36
|
isAdmin: boolean;
|
|
36
|
-
id: string | null;
|
|
37
37
|
} | null;
|
|
38
|
-
id: string | null;
|
|
39
|
-
} & {
|
|
40
38
|
name?: string | undefined;
|
|
41
39
|
email?: string | undefined;
|
|
42
40
|
lastLogin?: string | null | undefined;
|
|
43
|
-
}
|
|
41
|
+
} | null;
|
|
44
42
|
}>;
|
|
45
|
-
export declare const useLogoutRequestHandler: () => (data:
|
|
43
|
+
export declare const useLogoutRequestHandler: () => (data: Record<string, never>) => Promise<{
|
|
46
44
|
status: number;
|
|
47
45
|
}>;
|
|
48
46
|
export declare const useSendRecoveryKeyRequestHandler: () => (data: {
|
|
@@ -1,20 +1,68 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
export declare const useGenericGetRequestHandler: <
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const useGenericGetRequestHandler: <T extends z.ZodType>(name: string, schema: T) => (data: {
|
|
3
3
|
id: string;
|
|
4
|
-
}) => Promise<{
|
|
5
|
-
status:
|
|
6
|
-
data:
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})
|
|
4
|
+
}) => Promise<({
|
|
5
|
+
status: z.ZodNumber;
|
|
6
|
+
data: T;
|
|
7
|
+
} extends infer T_2 extends z.core.$ZodLooseShape ? { -readonly [k in keyof T_2 as {
|
|
8
|
+
status: z.ZodNumber;
|
|
9
|
+
data: T;
|
|
10
|
+
}[k] extends {
|
|
11
|
+
_zod: {
|
|
12
|
+
optout: "optional";
|
|
13
|
+
};
|
|
14
|
+
} ? never : k]: T_2[k]["_zod"]["output"]; } : never) & ({
|
|
15
|
+
status: z.ZodNumber;
|
|
16
|
+
data: T;
|
|
17
|
+
} extends infer T_3 extends z.core.$ZodLooseShape ? { -readonly [k_1 in keyof T_3 as {
|
|
18
|
+
status: z.ZodNumber;
|
|
19
|
+
data: T;
|
|
20
|
+
}[k_1] extends {
|
|
21
|
+
_zod: {
|
|
22
|
+
optout: "optional";
|
|
23
|
+
};
|
|
24
|
+
} ? k_1 : never]?: T_3[k_1]["_zod"]["output"] | undefined; } : never) extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never>;
|
|
25
|
+
export declare const useGenericGetAllRequestHandler: <T extends z.ZodType>(name: string, schema: T) => (data: Record<string, never>) => Promise<{
|
|
15
26
|
status: number;
|
|
16
|
-
data:
|
|
27
|
+
data: z.core.output<T>[];
|
|
17
28
|
}>;
|
|
29
|
+
export declare const useGenericSaveRequestHandler: <T extends z.ZodType>(name: string, schema: T) => (data: ({
|
|
30
|
+
data: T;
|
|
31
|
+
} extends infer T_2 extends z.core.$ZodLooseShape ? { -readonly [k in keyof T_2 as {
|
|
32
|
+
data: T;
|
|
33
|
+
}[k] extends {
|
|
34
|
+
_zod: {
|
|
35
|
+
optout: "optional";
|
|
36
|
+
};
|
|
37
|
+
} ? never : k]: T_2[k]["_zod"]["output"]; } : never) & ({
|
|
38
|
+
data: T;
|
|
39
|
+
} extends infer T_3 extends z.core.$ZodLooseShape ? { -readonly [k_1 in keyof T_3 as {
|
|
40
|
+
data: T;
|
|
41
|
+
}[k_1] extends {
|
|
42
|
+
_zod: {
|
|
43
|
+
optout: "optional";
|
|
44
|
+
};
|
|
45
|
+
} ? k_1 : never]?: T_3[k_1]["_zod"]["output"] | undefined; } : never) extends infer T_1 ? { [K in keyof T_1]: T_1[K]; } : never) => Promise<({
|
|
46
|
+
status: z.ZodNumber;
|
|
47
|
+
data: T;
|
|
48
|
+
} extends infer T_5 extends z.core.$ZodLooseShape ? { -readonly [k_2 in keyof T_5 as {
|
|
49
|
+
status: z.ZodNumber;
|
|
50
|
+
data: T;
|
|
51
|
+
}[k_2] extends {
|
|
52
|
+
_zod: {
|
|
53
|
+
optout: "optional";
|
|
54
|
+
};
|
|
55
|
+
} ? never : k_2]: T_5[k_2]["_zod"]["output"]; } : never) & ({
|
|
56
|
+
status: z.ZodNumber;
|
|
57
|
+
data: T;
|
|
58
|
+
} extends infer T_6 extends z.core.$ZodLooseShape ? { -readonly [k_3 in keyof T_6 as {
|
|
59
|
+
status: z.ZodNumber;
|
|
60
|
+
data: T;
|
|
61
|
+
}[k_3] extends {
|
|
62
|
+
_zod: {
|
|
63
|
+
optout: "optional";
|
|
64
|
+
};
|
|
65
|
+
} ? k_3 : never]?: T_6[k_3]["_zod"]["output"] | undefined; } : never) extends infer T_4 ? { [K_1 in keyof T_4]: T_4[K_1]; } : never>;
|
|
18
66
|
export declare const useGenericDeleteRequestHandler: (name: string) => (data: {
|
|
19
67
|
ids: string[];
|
|
20
68
|
}) => Promise<{
|
|
@@ -22,7 +70,6 @@ export declare const useGenericDeleteRequestHandler: (name: string) => (data: {
|
|
|
22
70
|
}>;
|
|
23
71
|
export declare const useGenericArchiveRequestHandler: (name: string) => (data: {
|
|
24
72
|
ids: string[];
|
|
25
|
-
} & {
|
|
26
73
|
archived?: boolean | undefined;
|
|
27
74
|
}) => Promise<{
|
|
28
75
|
status: number[];
|
|
@@ -3,19 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useGenericArchiveRequestHandler = exports.useGenericDeleteRequestHandler = exports.useGenericSaveRequestHandler = exports.useGenericGetAllRequestHandler = exports.useGenericGetRequestHandler = void 0;
|
|
4
4
|
var generic_1 = require("../types/generic");
|
|
5
5
|
var hooks_1 = require("../hooks");
|
|
6
|
-
var useGenericGetRequestHandler = function (name,
|
|
7
|
-
var
|
|
6
|
+
var useGenericGetRequestHandler = function (name, schema) {
|
|
7
|
+
var responseSchema = (0, generic_1.getGenericGetResponseDtoSchema)(schema);
|
|
8
8
|
return (0, hooks_1.useLoadingRequestHandler)(name);
|
|
9
9
|
};
|
|
10
10
|
exports.useGenericGetRequestHandler = useGenericGetRequestHandler;
|
|
11
|
-
var useGenericGetAllRequestHandler = function (name,
|
|
12
|
-
var
|
|
11
|
+
var useGenericGetAllRequestHandler = function (name, schema) {
|
|
12
|
+
var responseSchema = (0, generic_1.getGenericGetAllResponseDtoSchema)(schema);
|
|
13
13
|
return (0, hooks_1.useLoadingRequestHandler)(name);
|
|
14
14
|
};
|
|
15
15
|
exports.useGenericGetAllRequestHandler = useGenericGetAllRequestHandler;
|
|
16
|
-
var useGenericSaveRequestHandler = function (name,
|
|
17
|
-
var
|
|
18
|
-
var
|
|
16
|
+
var useGenericSaveRequestHandler = function (name, schema) {
|
|
17
|
+
var requestSchema = (0, generic_1.getGenericSaveRequestDtoSchema)(schema);
|
|
18
|
+
var responseSchema = (0, generic_1.getGenericSaveResponseDtoSchema)(schema);
|
|
19
19
|
return (0, hooks_1.useLoadingRequestHandler)(name);
|
|
20
20
|
};
|
|
21
21
|
exports.useGenericSaveRequestHandler = useGenericSaveRequestHandler;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
export declare const useSendTrackingEventRequestHandler: () => (data: {
|
|
2
2
|
data: {
|
|
3
|
+
id: string;
|
|
3
4
|
name: string;
|
|
4
|
-
details:
|
|
5
|
-
[x: string]: string | number | boolean | null;
|
|
6
|
-
};
|
|
7
|
-
id: string | null;
|
|
5
|
+
details: Record<string, string | number | boolean | null>;
|
|
8
6
|
};
|
|
9
7
|
}) => Promise<{
|
|
10
8
|
status: number;
|
|
11
9
|
data: {
|
|
10
|
+
id: string;
|
|
12
11
|
name: string;
|
|
13
|
-
details:
|
|
14
|
-
[x: string]: string | number | boolean | null;
|
|
15
|
-
};
|
|
16
|
-
id: string | null;
|
|
12
|
+
details: Record<string, string | number | boolean | null>;
|
|
17
13
|
};
|
|
18
14
|
}>;
|
|
@@ -3,34 +3,34 @@ export declare const useGetUserProfileRequestHandler: () => (data: {
|
|
|
3
3
|
}) => Promise<{
|
|
4
4
|
status: number;
|
|
5
5
|
data: {
|
|
6
|
+
id: string;
|
|
6
7
|
name: string;
|
|
7
8
|
permissions: string[];
|
|
8
9
|
isAdmin: boolean;
|
|
9
|
-
id: string | null;
|
|
10
10
|
};
|
|
11
11
|
}>;
|
|
12
|
-
export declare const useGetAllUserProfilesRequestHandler: () => (data:
|
|
12
|
+
export declare const useGetAllUserProfilesRequestHandler: () => (data: Record<string, never>) => Promise<{
|
|
13
13
|
data: {
|
|
14
|
+
id: string;
|
|
14
15
|
name: string;
|
|
15
16
|
permissions: string[];
|
|
16
17
|
isAdmin: boolean;
|
|
17
|
-
id: string | null;
|
|
18
18
|
}[];
|
|
19
19
|
}>;
|
|
20
20
|
export declare const useSaveUserProfileRequestHandler: () => (data: {
|
|
21
21
|
data: {
|
|
22
|
+
id: string;
|
|
22
23
|
name: string;
|
|
23
24
|
permissions: string[];
|
|
24
25
|
isAdmin: boolean;
|
|
25
|
-
id: string | null;
|
|
26
26
|
};
|
|
27
27
|
}) => Promise<{
|
|
28
28
|
status: number;
|
|
29
29
|
data: {
|
|
30
|
+
id: string;
|
|
30
31
|
name: string;
|
|
31
32
|
permissions: string[];
|
|
32
33
|
isAdmin: boolean;
|
|
33
|
-
id: string | null;
|
|
34
34
|
};
|
|
35
35
|
}>;
|
|
36
36
|
export declare const useDeleteUserProfileRequestHandler: () => (data: {
|
|
@@ -3,75 +3,70 @@ export declare const useGetUserRequestHandler: () => (data: {
|
|
|
3
3
|
}) => Promise<{
|
|
4
4
|
status: number;
|
|
5
5
|
data: {
|
|
6
|
+
id: string;
|
|
6
7
|
username: string;
|
|
7
8
|
permissions: string[];
|
|
8
9
|
isAdmin: boolean;
|
|
9
10
|
profile: {
|
|
11
|
+
id: string;
|
|
10
12
|
name: string;
|
|
11
13
|
permissions: string[];
|
|
12
14
|
isAdmin: boolean;
|
|
13
|
-
id: string | null;
|
|
14
15
|
} | null;
|
|
15
|
-
id: string | null;
|
|
16
|
-
} & {
|
|
17
16
|
name?: string | undefined;
|
|
18
17
|
email?: string | undefined;
|
|
19
18
|
lastLogin?: string | null | undefined;
|
|
20
19
|
};
|
|
21
20
|
}>;
|
|
22
|
-
export declare const useGetAllUsersRequestHandler: () => (data:
|
|
21
|
+
export declare const useGetAllUsersRequestHandler: () => (data: Record<string, never>) => Promise<{
|
|
23
22
|
status: number;
|
|
24
|
-
data:
|
|
23
|
+
data: {
|
|
24
|
+
id: string;
|
|
25
25
|
username: string;
|
|
26
26
|
permissions: string[];
|
|
27
27
|
isAdmin: boolean;
|
|
28
28
|
profile: {
|
|
29
|
+
id: string;
|
|
29
30
|
name: string;
|
|
30
31
|
permissions: string[];
|
|
31
32
|
isAdmin: boolean;
|
|
32
|
-
id: string | null;
|
|
33
33
|
} | null;
|
|
34
|
-
id: string | null;
|
|
35
|
-
} & {
|
|
36
34
|
name?: string | undefined;
|
|
37
35
|
email?: string | undefined;
|
|
38
36
|
lastLogin?: string | null | undefined;
|
|
39
|
-
}
|
|
37
|
+
}[];
|
|
40
38
|
}>;
|
|
41
39
|
export declare const useSaveUserRequestHandler: () => (data: {
|
|
42
40
|
data: {
|
|
41
|
+
id: string;
|
|
43
42
|
username: string;
|
|
44
43
|
permissions: string[];
|
|
45
44
|
isAdmin: boolean;
|
|
46
45
|
profile: {
|
|
46
|
+
id: string;
|
|
47
47
|
name: string;
|
|
48
48
|
permissions: string[];
|
|
49
49
|
isAdmin: boolean;
|
|
50
|
-
id: string | null;
|
|
51
50
|
} | null;
|
|
52
|
-
id: string | null;
|
|
53
|
-
} & {
|
|
54
51
|
name?: string | undefined;
|
|
55
52
|
email?: string | undefined;
|
|
56
53
|
lastLogin?: string | null | undefined;
|
|
57
|
-
} & {
|
|
58
54
|
password?: string | undefined;
|
|
59
55
|
};
|
|
60
56
|
password: string;
|
|
61
57
|
}) => Promise<{
|
|
62
58
|
status: number;
|
|
63
59
|
data: {
|
|
60
|
+
id: string;
|
|
64
61
|
username: string;
|
|
65
62
|
permissions: string[];
|
|
66
63
|
isAdmin: boolean;
|
|
67
64
|
profile: {
|
|
65
|
+
id: string;
|
|
68
66
|
name: string;
|
|
69
67
|
permissions: string[];
|
|
70
68
|
isAdmin: boolean;
|
|
71
|
-
id: string | null;
|
|
72
69
|
} | null;
|
|
73
|
-
id: string | null;
|
|
74
|
-
} & {
|
|
75
70
|
name?: string | undefined;
|
|
76
71
|
email?: string | undefined;
|
|
77
72
|
lastLogin?: string | null | undefined;
|
|
@@ -1,87 +1,85 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
export declare const
|
|
3
|
-
username:
|
|
4
|
-
password:
|
|
5
|
-
}>;
|
|
6
|
-
export declare const
|
|
7
|
-
status:
|
|
8
|
-
token:
|
|
9
|
-
user:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export type
|
|
27
|
-
export type LoginResponseDTO = t.TypeOf<typeof loginResponseDtoCodec>;
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
export declare const loginRequestDtoSchema: z.ZodObject<{
|
|
3
|
+
username: z.ZodString;
|
|
4
|
+
password: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const loginResponseDtoSchema: z.ZodObject<{
|
|
7
|
+
status: z.ZodNumber;
|
|
8
|
+
token: z.ZodString;
|
|
9
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
10
|
+
id: z.ZodUUID;
|
|
11
|
+
username: z.ZodString;
|
|
12
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
13
|
+
isAdmin: z.ZodBoolean;
|
|
14
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
id: z.ZodUUID;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
18
|
+
isAdmin: z.ZodBoolean;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
name: z.ZodOptional<z.ZodString>;
|
|
21
|
+
email: z.ZodOptional<z.ZodString>;
|
|
22
|
+
lastLogin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type LoginRequestDTO = z.infer<typeof loginRequestDtoSchema>;
|
|
26
|
+
export type LoginResponseDTO = z.infer<typeof loginResponseDtoSchema>;
|
|
28
27
|
/*****/
|
|
29
|
-
export declare const
|
|
30
|
-
export declare const
|
|
31
|
-
status:
|
|
32
|
-
}>;
|
|
33
|
-
export type LogoutRequestDTO =
|
|
34
|
-
export type LogoutResponseDTO =
|
|
28
|
+
export declare const logoutRequestDtoSchema: z.ZodObject<{}, z.core.$strip>;
|
|
29
|
+
export declare const logoutResponseDtoSchema: z.ZodObject<{
|
|
30
|
+
status: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type LogoutRequestDTO = z.infer<typeof logoutRequestDtoSchema>;
|
|
33
|
+
export type LogoutResponseDTO = z.infer<typeof logoutResponseDtoSchema>;
|
|
35
34
|
/*****/
|
|
36
|
-
export declare const
|
|
37
|
-
token:
|
|
38
|
-
}>;
|
|
39
|
-
export declare const
|
|
40
|
-
status:
|
|
41
|
-
user:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export type
|
|
59
|
-
export type AuthenticateResponseDTO = t.TypeOf<typeof authenticateResponseDtoCodec>;
|
|
35
|
+
export declare const authenticateRequestDtoSchema: z.ZodObject<{
|
|
36
|
+
token: z.ZodString;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const authenticateResponseDtoSchema: z.ZodObject<{
|
|
39
|
+
status: z.ZodNumber;
|
|
40
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
41
|
+
id: z.ZodUUID;
|
|
42
|
+
username: z.ZodString;
|
|
43
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
44
|
+
isAdmin: z.ZodBoolean;
|
|
45
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
id: z.ZodUUID;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
49
|
+
isAdmin: z.ZodBoolean;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
name: z.ZodOptional<z.ZodString>;
|
|
52
|
+
email: z.ZodOptional<z.ZodString>;
|
|
53
|
+
lastLogin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type AuthenticateRequestDTO = z.infer<typeof authenticateRequestDtoSchema>;
|
|
57
|
+
export type AuthenticateResponseDTO = z.infer<typeof authenticateResponseDtoSchema>;
|
|
60
58
|
/*****/
|
|
61
|
-
export declare const
|
|
62
|
-
email:
|
|
63
|
-
}>;
|
|
64
|
-
export declare const
|
|
65
|
-
status:
|
|
66
|
-
}>;
|
|
67
|
-
export type SendRecoveryKeyRequestDTO =
|
|
68
|
-
export type SendRecoveryKeyResponseDTO =
|
|
59
|
+
export declare const sendRecoveryKeyRequestDtoSchema: z.ZodObject<{
|
|
60
|
+
email: z.ZodString;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export declare const sendRecoveryKeyResponseDtoSchema: z.ZodObject<{
|
|
63
|
+
status: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type SendRecoveryKeyRequestDTO = z.infer<typeof sendRecoveryKeyRequestDtoSchema>;
|
|
66
|
+
export type SendRecoveryKeyResponseDTO = z.infer<typeof sendRecoveryKeyResponseDtoSchema>;
|
|
69
67
|
/*****/
|
|
70
|
-
export declare const
|
|
71
|
-
key:
|
|
72
|
-
}>;
|
|
73
|
-
export declare const
|
|
74
|
-
status:
|
|
75
|
-
}>;
|
|
76
|
-
export type CheckRecoveryKeyRequestDTO =
|
|
77
|
-
export type CheckRecoveryKeyResponseDTO =
|
|
68
|
+
export declare const checkRecoveryKeyRequestDtoSchema: z.ZodObject<{
|
|
69
|
+
key: z.ZodString;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export declare const checkRecoveryKeyResponseDtoSchema: z.ZodObject<{
|
|
72
|
+
status: z.ZodNumber;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export type CheckRecoveryKeyRequestDTO = z.infer<typeof checkRecoveryKeyRequestDtoSchema>;
|
|
75
|
+
export type CheckRecoveryKeyResponseDTO = z.infer<typeof checkRecoveryKeyResponseDtoSchema>;
|
|
78
76
|
/*****/
|
|
79
|
-
export declare const
|
|
80
|
-
key:
|
|
81
|
-
password:
|
|
82
|
-
}>;
|
|
83
|
-
export declare const
|
|
84
|
-
status:
|
|
85
|
-
}>;
|
|
86
|
-
export type ResetPasswordRequestDTO =
|
|
87
|
-
export type ResetPasswordResponseDTO =
|
|
77
|
+
export declare const resetPasswordRequestDtoSchema: z.ZodObject<{
|
|
78
|
+
key: z.ZodString;
|
|
79
|
+
password: z.ZodString;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
export declare const resetPasswordResponseDtoSchema: z.ZodObject<{
|
|
82
|
+
status: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export type ResetPasswordRequestDTO = z.infer<typeof resetPasswordRequestDtoSchema>;
|
|
85
|
+
export type ResetPasswordResponseDTO = z.infer<typeof resetPasswordResponseDtoSchema>;
|