@addev-be/ui 0.21.7 → 1.0.0
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/components/data/DataGrid/hooks/useDataGridSettings.d.ts +8 -12
- package/dist/components/data/DataGrid/types.d.ts +16 -16
- package/dist/components/data/DataGrid/types.js +8 -31
- package/dist/services/requests/auth.d.ts +9 -11
- package/dist/services/requests/generic.d.ts +150 -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 +41 -64
- package/dist/services/types/base.d.ts +5 -5
- package/dist/services/types/base.js +4 -27
- package/dist/services/types/generic.d.ts +39 -40
- package/dist/services/types/generic.js +38 -65
- package/dist/services/types/tracking.d.ts +24 -24
- package/dist/services/types/tracking.js +13 -44
- package/dist/services/types/userProfiles.d.ts +60 -60
- package/dist/services/types/userProfiles.js +31 -61
- package/dist/services/types/users.d.ts +108 -114
- package/dist/services/types/users.js +39 -75
- package/package.json +4 -5
- package/src/components/data/DataGrid/types.ts +15 -20
- package/src/services/requests/generic.ts +20 -20
- package/src/services/types/auth.ts +73 -106
- package/src/services/types/base.ts +4 -4
- package/src/services/types/generic.ts +58 -72
- package/src/services/types/tracking.ts +21 -31
- package/src/services/types/userProfiles.ts +54 -82
- package/src/services/types/users.ts +57 -89
|
@@ -1,87 +1,85 @@
|
|
|
1
|
-
import
|
|
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 { 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.ZodNullable<z.ZodString>;
|
|
11
|
+
username: z.ZodString;
|
|
12
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
13
|
+
isAdmin: z.ZodBoolean;
|
|
14
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
id: z.ZodNullable<z.ZodString>;
|
|
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.ZodNullable<z.ZodString>;
|
|
42
|
+
username: z.ZodString;
|
|
43
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
44
|
+
isAdmin: z.ZodBoolean;
|
|
45
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
id: z.ZodNullable<z.ZodString>;
|
|
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>;
|
|
@@ -1,72 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
var
|
|
3
|
+
exports.resetPasswordResponseDtoSchema = exports.resetPasswordRequestDtoSchema = exports.checkRecoveryKeyResponseDtoSchema = exports.checkRecoveryKeyRequestDtoSchema = exports.sendRecoveryKeyResponseDtoSchema = exports.sendRecoveryKeyRequestDtoSchema = exports.authenticateResponseDtoSchema = exports.authenticateRequestDtoSchema = exports.logoutResponseDtoSchema = exports.logoutRequestDtoSchema = exports.loginResponseDtoSchema = exports.loginRequestDtoSchema = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
28
5
|
var users_1 = require("./users");
|
|
29
|
-
exports.
|
|
30
|
-
username:
|
|
31
|
-
password:
|
|
32
|
-
}
|
|
33
|
-
exports.
|
|
34
|
-
status:
|
|
35
|
-
token:
|
|
36
|
-
user:
|
|
37
|
-
}
|
|
6
|
+
exports.loginRequestDtoSchema = zod_1.z.object({
|
|
7
|
+
username: zod_1.z.string(),
|
|
8
|
+
password: zod_1.z.string(),
|
|
9
|
+
});
|
|
10
|
+
exports.loginResponseDtoSchema = zod_1.z.object({
|
|
11
|
+
status: zod_1.z.number(),
|
|
12
|
+
token: zod_1.z.string(),
|
|
13
|
+
user: users_1.userDtoSchema.nullable(),
|
|
14
|
+
});
|
|
38
15
|
/*****/
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
status:
|
|
42
|
-
}
|
|
16
|
+
exports.logoutRequestDtoSchema = zod_1.z.object({});
|
|
17
|
+
exports.logoutResponseDtoSchema = zod_1.z.object({
|
|
18
|
+
status: zod_1.z.number(),
|
|
19
|
+
});
|
|
43
20
|
/*****/
|
|
44
|
-
exports.
|
|
45
|
-
token:
|
|
46
|
-
}
|
|
47
|
-
exports.
|
|
48
|
-
status:
|
|
49
|
-
user:
|
|
50
|
-
}
|
|
21
|
+
exports.authenticateRequestDtoSchema = zod_1.z.object({
|
|
22
|
+
token: zod_1.z.string(),
|
|
23
|
+
});
|
|
24
|
+
exports.authenticateResponseDtoSchema = zod_1.z.object({
|
|
25
|
+
status: zod_1.z.number(),
|
|
26
|
+
user: users_1.userDtoSchema.nullable(),
|
|
27
|
+
});
|
|
51
28
|
/*****/
|
|
52
|
-
exports.
|
|
53
|
-
email:
|
|
54
|
-
}
|
|
55
|
-
exports.
|
|
56
|
-
status:
|
|
57
|
-
}
|
|
29
|
+
exports.sendRecoveryKeyRequestDtoSchema = zod_1.z.object({
|
|
30
|
+
email: zod_1.z.string(),
|
|
31
|
+
});
|
|
32
|
+
exports.sendRecoveryKeyResponseDtoSchema = zod_1.z.object({
|
|
33
|
+
status: zod_1.z.number(),
|
|
34
|
+
});
|
|
58
35
|
/*****/
|
|
59
|
-
exports.
|
|
60
|
-
key:
|
|
61
|
-
}
|
|
62
|
-
exports.
|
|
63
|
-
status:
|
|
64
|
-
}
|
|
36
|
+
exports.checkRecoveryKeyRequestDtoSchema = zod_1.z.object({
|
|
37
|
+
key: zod_1.z.string(),
|
|
38
|
+
});
|
|
39
|
+
exports.checkRecoveryKeyResponseDtoSchema = zod_1.z.object({
|
|
40
|
+
status: zod_1.z.number(),
|
|
41
|
+
});
|
|
65
42
|
/*****/
|
|
66
|
-
exports.
|
|
67
|
-
key:
|
|
68
|
-
password:
|
|
69
|
-
}
|
|
70
|
-
exports.
|
|
71
|
-
status:
|
|
72
|
-
}
|
|
43
|
+
exports.resetPasswordRequestDtoSchema = zod_1.z.object({
|
|
44
|
+
key: zod_1.z.string(),
|
|
45
|
+
password: zod_1.z.string(),
|
|
46
|
+
});
|
|
47
|
+
exports.resetPasswordResponseDtoSchema = zod_1.z.object({
|
|
48
|
+
status: zod_1.z.number(),
|
|
49
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const
|
|
3
|
-
id:
|
|
4
|
-
}>;
|
|
5
|
-
export type BaseModelDTO =
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const baseModelDtoSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNullable<z.ZodString>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type BaseModelDTO = z.infer<typeof baseModelDtoSchema>;
|
|
6
6
|
export declare const UUID_REGEX: RegExp;
|
|
@@ -1,31 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.UUID_REGEX = exports.
|
|
27
|
-
var
|
|
28
|
-
exports.
|
|
29
|
-
id:
|
|
3
|
+
exports.UUID_REGEX = exports.baseModelDtoSchema = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
5
|
+
exports.baseModelDtoSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string().nullable(),
|
|
30
7
|
});
|
|
31
8
|
exports.UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const
|
|
3
|
-
id:
|
|
4
|
-
}>;
|
|
5
|
-
export declare const
|
|
6
|
-
status:
|
|
7
|
-
data:
|
|
8
|
-
}>;
|
|
9
|
-
export type GenericGetRequestDTO =
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const genericGetRequestDtoSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const getGenericGetResponseDtoSchema: <T extends z.ZodType>(schema: T) => z.ZodObject<{
|
|
6
|
+
status: z.ZodNumber;
|
|
7
|
+
data: T;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export type GenericGetRequestDTO = z.infer<typeof genericGetRequestDtoSchema>;
|
|
10
10
|
/*****/
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
status:
|
|
14
|
-
data:
|
|
15
|
-
}>;
|
|
16
|
-
export type GenericGetAllRequestDTO =
|
|
11
|
+
export declare const genericGetAllRequestDtoSchema: z.ZodObject<{}, z.core.$strip>;
|
|
12
|
+
export declare const getGenericGetAllResponseDtoSchema: <T extends z.ZodType>(schema: T) => z.ZodObject<{
|
|
13
|
+
status: z.ZodNumber;
|
|
14
|
+
data: z.ZodArray<T>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type GenericGetAllRequestDTO = z.infer<typeof genericGetAllRequestDtoSchema>;
|
|
17
17
|
/*****/
|
|
18
|
-
export declare const
|
|
19
|
-
data:
|
|
20
|
-
}>;
|
|
21
|
-
export declare const
|
|
22
|
-
status:
|
|
23
|
-
data:
|
|
24
|
-
}>;
|
|
18
|
+
export declare const getGenericSaveRequestDtoSchema: <T extends z.ZodType>(schema: T) => z.ZodObject<{
|
|
19
|
+
data: T;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const getGenericSaveResponseDtoSchema: <T extends z.ZodType>(schema: T) => z.ZodObject<{
|
|
22
|
+
status: z.ZodNumber;
|
|
23
|
+
data: T;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
25
|
/*****/
|
|
26
|
-
export declare const
|
|
27
|
-
ids:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export type
|
|
35
|
-
export type GenericArchiveResponseDTO = t.TypeOf<typeof genericArchiveResponseDtoCodec>;
|
|
26
|
+
export declare const genericArchiveRequestDtoSchema: z.ZodObject<{
|
|
27
|
+
ids: z.ZodArray<z.ZodString>;
|
|
28
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const genericArchiveResponseDtoSchema: z.ZodObject<{
|
|
31
|
+
status: z.ZodArray<z.ZodNumber>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type GenericArchiveRequestDTO = z.infer<typeof genericArchiveRequestDtoSchema>;
|
|
34
|
+
export type GenericArchiveResponseDTO = z.infer<typeof genericArchiveResponseDtoSchema>;
|
|
36
35
|
/*****/
|
|
37
|
-
export declare const
|
|
38
|
-
ids:
|
|
39
|
-
}>;
|
|
40
|
-
export declare const
|
|
41
|
-
status:
|
|
42
|
-
}>;
|
|
43
|
-
export type GenericDeleteRequestDTO =
|
|
44
|
-
export type GenericDeleteResponseDTO =
|
|
36
|
+
export declare const genericDeleteRequestDtoSchema: z.ZodObject<{
|
|
37
|
+
ids: z.ZodArray<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export declare const genericDeleteResponseDtoSchema: z.ZodObject<{
|
|
40
|
+
status: z.ZodArray<z.ZodNumber>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type GenericDeleteRequestDTO = z.infer<typeof genericDeleteRequestDtoSchema>;
|
|
43
|
+
export type GenericDeleteResponseDTO = z.infer<typeof genericDeleteResponseDtoSchema>;
|
|
@@ -1,79 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
var
|
|
28
|
-
exports.
|
|
29
|
-
id:
|
|
30
|
-
}
|
|
31
|
-
var
|
|
32
|
-
return
|
|
33
|
-
status:
|
|
34
|
-
data:
|
|
3
|
+
exports.genericDeleteResponseDtoSchema = exports.genericDeleteRequestDtoSchema = exports.genericArchiveResponseDtoSchema = exports.genericArchiveRequestDtoSchema = exports.getGenericSaveResponseDtoSchema = exports.getGenericSaveRequestDtoSchema = exports.getGenericGetAllResponseDtoSchema = exports.genericGetAllRequestDtoSchema = exports.getGenericGetResponseDtoSchema = exports.genericGetRequestDtoSchema = void 0;
|
|
4
|
+
var zod_1 = require("zod");
|
|
5
|
+
exports.genericGetRequestDtoSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
});
|
|
8
|
+
var getGenericGetResponseDtoSchema = function (schema) {
|
|
9
|
+
return zod_1.z.object({
|
|
10
|
+
status: zod_1.z.number(),
|
|
11
|
+
data: schema,
|
|
35
12
|
});
|
|
36
13
|
};
|
|
37
|
-
exports.
|
|
14
|
+
exports.getGenericGetResponseDtoSchema = getGenericGetResponseDtoSchema;
|
|
38
15
|
/*****/
|
|
39
|
-
exports.
|
|
40
|
-
var
|
|
41
|
-
return
|
|
42
|
-
status:
|
|
43
|
-
data:
|
|
16
|
+
exports.genericGetAllRequestDtoSchema = zod_1.z.object({});
|
|
17
|
+
var getGenericGetAllResponseDtoSchema = function (schema) {
|
|
18
|
+
return zod_1.z.object({
|
|
19
|
+
status: zod_1.z.number(),
|
|
20
|
+
data: zod_1.z.array(schema),
|
|
44
21
|
});
|
|
45
22
|
};
|
|
46
|
-
exports.
|
|
23
|
+
exports.getGenericGetAllResponseDtoSchema = getGenericGetAllResponseDtoSchema;
|
|
47
24
|
/*****/
|
|
48
|
-
var
|
|
49
|
-
return
|
|
50
|
-
data:
|
|
25
|
+
var getGenericSaveRequestDtoSchema = function (schema) {
|
|
26
|
+
return zod_1.z.object({
|
|
27
|
+
data: schema,
|
|
51
28
|
});
|
|
52
29
|
};
|
|
53
|
-
exports.
|
|
54
|
-
var
|
|
55
|
-
return
|
|
56
|
-
status:
|
|
57
|
-
data:
|
|
30
|
+
exports.getGenericSaveRequestDtoSchema = getGenericSaveRequestDtoSchema;
|
|
31
|
+
var getGenericSaveResponseDtoSchema = function (schema) {
|
|
32
|
+
return zod_1.z.object({
|
|
33
|
+
status: zod_1.z.number(),
|
|
34
|
+
data: schema,
|
|
58
35
|
});
|
|
59
36
|
};
|
|
60
|
-
exports.
|
|
37
|
+
exports.getGenericSaveResponseDtoSchema = getGenericSaveResponseDtoSchema;
|
|
61
38
|
/*****/
|
|
62
|
-
exports.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
], 'GenericArchiveRequestDTO');
|
|
70
|
-
exports.genericArchiveResponseDtoCodec = t.type({
|
|
71
|
-
status: t.array(t.number),
|
|
72
|
-
}, 'GenericArchiveResponseDTO');
|
|
39
|
+
exports.genericArchiveRequestDtoSchema = zod_1.z.object({
|
|
40
|
+
ids: zod_1.z.array(zod_1.z.string()),
|
|
41
|
+
archived: zod_1.z.boolean().optional(),
|
|
42
|
+
});
|
|
43
|
+
exports.genericArchiveResponseDtoSchema = zod_1.z.object({
|
|
44
|
+
status: zod_1.z.array(zod_1.z.number()),
|
|
45
|
+
});
|
|
73
46
|
/*****/
|
|
74
|
-
exports.
|
|
75
|
-
ids:
|
|
76
|
-
}
|
|
77
|
-
exports.
|
|
78
|
-
status:
|
|
79
|
-
}
|
|
47
|
+
exports.genericDeleteRequestDtoSchema = zod_1.z.object({
|
|
48
|
+
ids: zod_1.z.array(zod_1.z.string()),
|
|
49
|
+
});
|
|
50
|
+
exports.genericDeleteResponseDtoSchema = zod_1.z.object({
|
|
51
|
+
status: zod_1.z.array(zod_1.z.number()),
|
|
52
|
+
});
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}>;
|
|
7
|
-
export type TrackingEventDTO =
|
|
8
|
-
export declare const
|
|
9
|
-
data:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}>;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const
|
|
16
|
-
status:
|
|
17
|
-
data:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}>;
|
|
22
|
-
}>;
|
|
23
|
-
export type SendTrackingEventRequestDTO =
|
|
24
|
-
export type SendTrackingEventResponseDTO =
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const trackingEventDtoSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNullable<z.ZodString>;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
details: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type TrackingEventDTO = z.infer<typeof trackingEventDtoSchema>;
|
|
8
|
+
export declare const sendTrackingEventRequestDtoSchema: z.ZodObject<{
|
|
9
|
+
data: z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
details: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const sendTrackingEventResponseDtoSchema: z.ZodObject<{
|
|
16
|
+
status: z.ZodNumber;
|
|
17
|
+
data: z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
details: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type SendTrackingEventRequestDTO = z.infer<typeof sendTrackingEventRequestDtoSchema>;
|
|
24
|
+
export type SendTrackingEventResponseDTO = z.infer<typeof sendTrackingEventResponseDtoSchema>;
|