aivilife-contracts 1.0.0 → 3.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/auth/index.d.mts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +180 -2
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/index.mjs +177 -3
- package/dist/auth/index.mjs.map +1 -1
- package/dist/index.d.mts +234 -3
- package/dist/index.d.ts +234 -3
- package/dist/index.js +226 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +189 -6
- package/dist/index.mjs.map +1 -1
- package/dist/marketing.enums-qC7eI41b.d.mts +90 -0
- package/dist/marketing.enums-qC7eI41b.d.ts +90 -0
- package/package.json +1 -1
- package/dist/index-BexwaaJv.d.mts +0 -59
- package/dist/index-BexwaaJv.d.ts +0 -59
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare enum UserRole {
|
|
4
|
-
ADMIN = "admin",
|
|
5
|
-
MANAGER = "manager",
|
|
6
|
-
STAFF = "staff",
|
|
7
|
-
PARTNER = "partner"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare const AuthUserSchema: z.ZodObject<{
|
|
11
|
-
id: z.ZodNumber;
|
|
12
|
-
login: z.ZodString;
|
|
13
|
-
role: z.ZodEnum<typeof UserRole>;
|
|
14
|
-
isActive: z.ZodBoolean;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
type AuthUser = z.infer<typeof AuthUserSchema>;
|
|
17
|
-
|
|
18
|
-
declare const RefreshResponseSchema: z.ZodObject<{
|
|
19
|
-
accessToken: z.ZodString;
|
|
20
|
-
user: z.ZodObject<{
|
|
21
|
-
id: z.ZodNumber;
|
|
22
|
-
login: z.ZodString;
|
|
23
|
-
role: z.ZodEnum<typeof UserRole>;
|
|
24
|
-
isActive: z.ZodBoolean;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
type RefreshResponse = z.infer<typeof RefreshResponseSchema>;
|
|
28
|
-
|
|
29
|
-
declare const SignInRequestSchema: z.ZodObject<{
|
|
30
|
-
login: z.ZodString;
|
|
31
|
-
password: z.ZodString;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
declare const SignInResponseSchema: z.ZodObject<{
|
|
34
|
-
accessToken: z.ZodString;
|
|
35
|
-
refreshToken: z.ZodString;
|
|
36
|
-
user: z.ZodObject<{
|
|
37
|
-
id: z.ZodNumber;
|
|
38
|
-
login: z.ZodString;
|
|
39
|
-
role: z.ZodEnum<typeof UserRole>;
|
|
40
|
-
isActive: z.ZodBoolean;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
type SignInRequest = z.infer<typeof SignInRequestSchema>;
|
|
44
|
-
type SignInResponse = z.infer<typeof SignInResponseSchema>;
|
|
45
|
-
|
|
46
|
-
declare const SignUpRequestSchema: z.ZodObject<{
|
|
47
|
-
firstName: z.ZodString;
|
|
48
|
-
lastName: z.ZodString;
|
|
49
|
-
email: z.ZodEmail;
|
|
50
|
-
phoneNumber: z.ZodString;
|
|
51
|
-
login: z.ZodString;
|
|
52
|
-
password: z.ZodString;
|
|
53
|
-
countryCode: z.ZodString;
|
|
54
|
-
country: z.ZodString;
|
|
55
|
-
city: z.ZodString;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
type SignUpRequest = z.infer<typeof SignUpRequestSchema>;
|
|
58
|
-
|
|
59
|
-
export { type AuthUser as A, type RefreshResponse as R, type SignInRequest as S, UserRole as U, AuthUserSchema as a, RefreshResponseSchema as b, SignInRequestSchema as c, type SignInResponse as d, SignInResponseSchema as e, type SignUpRequest as f, SignUpRequestSchema as g };
|
package/dist/index-BexwaaJv.d.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
declare enum UserRole {
|
|
4
|
-
ADMIN = "admin",
|
|
5
|
-
MANAGER = "manager",
|
|
6
|
-
STAFF = "staff",
|
|
7
|
-
PARTNER = "partner"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare const AuthUserSchema: z.ZodObject<{
|
|
11
|
-
id: z.ZodNumber;
|
|
12
|
-
login: z.ZodString;
|
|
13
|
-
role: z.ZodEnum<typeof UserRole>;
|
|
14
|
-
isActive: z.ZodBoolean;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
type AuthUser = z.infer<typeof AuthUserSchema>;
|
|
17
|
-
|
|
18
|
-
declare const RefreshResponseSchema: z.ZodObject<{
|
|
19
|
-
accessToken: z.ZodString;
|
|
20
|
-
user: z.ZodObject<{
|
|
21
|
-
id: z.ZodNumber;
|
|
22
|
-
login: z.ZodString;
|
|
23
|
-
role: z.ZodEnum<typeof UserRole>;
|
|
24
|
-
isActive: z.ZodBoolean;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
type RefreshResponse = z.infer<typeof RefreshResponseSchema>;
|
|
28
|
-
|
|
29
|
-
declare const SignInRequestSchema: z.ZodObject<{
|
|
30
|
-
login: z.ZodString;
|
|
31
|
-
password: z.ZodString;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
declare const SignInResponseSchema: z.ZodObject<{
|
|
34
|
-
accessToken: z.ZodString;
|
|
35
|
-
refreshToken: z.ZodString;
|
|
36
|
-
user: z.ZodObject<{
|
|
37
|
-
id: z.ZodNumber;
|
|
38
|
-
login: z.ZodString;
|
|
39
|
-
role: z.ZodEnum<typeof UserRole>;
|
|
40
|
-
isActive: z.ZodBoolean;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
type SignInRequest = z.infer<typeof SignInRequestSchema>;
|
|
44
|
-
type SignInResponse = z.infer<typeof SignInResponseSchema>;
|
|
45
|
-
|
|
46
|
-
declare const SignUpRequestSchema: z.ZodObject<{
|
|
47
|
-
firstName: z.ZodString;
|
|
48
|
-
lastName: z.ZodString;
|
|
49
|
-
email: z.ZodEmail;
|
|
50
|
-
phoneNumber: z.ZodString;
|
|
51
|
-
login: z.ZodString;
|
|
52
|
-
password: z.ZodString;
|
|
53
|
-
countryCode: z.ZodString;
|
|
54
|
-
country: z.ZodString;
|
|
55
|
-
city: z.ZodString;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
type SignUpRequest = z.infer<typeof SignUpRequestSchema>;
|
|
58
|
-
|
|
59
|
-
export { type AuthUser as A, type RefreshResponse as R, type SignInRequest as S, UserRole as U, AuthUserSchema as a, RefreshResponseSchema as b, SignInRequestSchema as c, type SignInResponse as d, SignInResponseSchema as e, type SignUpRequest as f, SignUpRequestSchema as g };
|