@gigapay-dev/contracts 1.8.4 → 1.8.6

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.
Files changed (69) hide show
  1. package/build/commands/api-response.d.ts +18 -0
  2. package/build/commands/auth/confirm.d.ts +11 -0
  3. package/build/commands/auth/endpoints.d.ts +114 -0
  4. package/build/commands/auth/index.d.ts +5 -0
  5. package/build/commands/auth/login.d.ts +20 -0
  6. package/build/commands/auth/profile.d.ts +18 -0
  7. package/build/commands/auth/register.d.ts +12 -0
  8. package/build/commands/auth/reset.d.ts +12 -0
  9. package/build/commands/consts.d.ts +1 -0
  10. package/build/commands/index.d.ts +13 -0
  11. package/build/commands/orders/create.d.ts +95 -0
  12. package/build/commands/orders/endpoints.d.ts +726 -0
  13. package/build/commands/orders/enums.d.ts +7 -0
  14. package/build/commands/orders/index.d.ts +6 -0
  15. package/build/commands/orders/query.d.ts +103 -0
  16. package/build/commands/orders/read.d.ts +230 -0
  17. package/build/commands/orders/update.d.ts +23 -0
  18. package/build/commands/pagination.d.ts +12 -0
  19. package/build/commands/payment-methods/create.d.ts +45 -0
  20. package/build/commands/payment-methods/endpoints.d.ts +536 -0
  21. package/build/commands/payment-methods/index.d.ts +4 -0
  22. package/build/commands/payment-methods/read.d.ts +71 -0
  23. package/build/commands/payment-methods/update.d.ts +45 -0
  24. package/build/commands/products/create.d.ts +229 -0
  25. package/build/commands/products/endpoints.d.ts +1881 -0
  26. package/build/commands/products/enums.d.ts +19 -0
  27. package/build/commands/products/index.d.ts +6 -0
  28. package/build/commands/products/query.d.ts +79 -0
  29. package/build/commands/products/read.d.ts +1178 -0
  30. package/build/commands/products/read.js +56 -1
  31. package/build/commands/products/update.d.ts +78 -0
  32. package/build/commands/promocode-activations/create.d.ts +18 -0
  33. package/build/commands/promocode-activations/index.d.ts +3 -0
  34. package/build/commands/promocode-activations/read.d.ts +21 -0
  35. package/build/commands/promocode-activations/update.d.ts +18 -0
  36. package/build/commands/promocodes/create.d.ts +39 -0
  37. package/build/commands/promocodes/endpoints.d.ts +353 -0
  38. package/build/commands/promocodes/enums.d.ts +5 -0
  39. package/build/commands/promocodes/index.d.ts +5 -0
  40. package/build/commands/promocodes/read.d.ts +45 -0
  41. package/build/commands/promocodes/update.d.ts +33 -0
  42. package/build/commands/refresh-sessions/create.d.ts +24 -0
  43. package/build/commands/refresh-sessions/enums.d.ts +3 -0
  44. package/build/commands/refresh-sessions/index.d.ts +4 -0
  45. package/build/commands/refresh-sessions/read.d.ts +27 -0
  46. package/build/commands/refresh-sessions/update.d.ts +24 -0
  47. package/build/commands/settings/endpoints.d.ts +108 -0
  48. package/build/commands/settings/index.d.ts +3 -0
  49. package/build/commands/settings/read.d.ts +18 -0
  50. package/build/commands/settings/update.d.ts +18 -0
  51. package/build/commands/stats/endpoints.d.ts +67 -0
  52. package/build/commands/stats/index.d.ts +3 -0
  53. package/build/commands/stats/query.d.ts +31 -0
  54. package/build/commands/stats/read.d.ts +30 -0
  55. package/build/commands/users/create.d.ts +42 -0
  56. package/build/commands/users/endpoints.d.ts +403 -0
  57. package/build/commands/users/enums.d.ts +6 -0
  58. package/build/commands/users/index.d.ts +6 -0
  59. package/build/commands/users/query.d.ts +52 -0
  60. package/build/commands/users/read.d.ts +60 -0
  61. package/build/commands/users/update.d.ts +42 -0
  62. package/build/index.d.ts +1 -0
  63. package/build/types.d.ts +8 -0
  64. package/commands/products/read.ts +63 -0
  65. package/package.json +3 -2
  66. package/tsconfig.json +1 -1
  67. package/build/commands/status/endpoints.js +0 -33
  68. package/build/commands/status/index.js +0 -18
  69. package/build/commands/status/read.js +0 -12
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ export declare const PromoCodeUpdateSchema: z.ZodObject<{
3
+ value: z.ZodOptional<z.ZodString>;
4
+ discountValue: z.ZodOptional<z.ZodString>;
5
+ startedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
7
+ activationLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
+ activationPerUserLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
+ type: z.ZodOptional<z.ZodEnum<["USER", "AD", "SYSTEM"]>>;
11
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "INACTIVE", "LIMITED", "EXPIRED", "DELETED"]>>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ value?: string | undefined;
14
+ type?: "USER" | "AD" | "SYSTEM" | undefined;
15
+ status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
16
+ discountValue?: string | undefined;
17
+ expiredAt?: Date | null | undefined;
18
+ startedAt?: Date | null | undefined;
19
+ deletedAt?: Date | null | undefined;
20
+ activationLimit?: number | null | undefined;
21
+ activationPerUserLimit?: number | null | undefined;
22
+ }, {
23
+ value?: string | undefined;
24
+ type?: "USER" | "AD" | "SYSTEM" | undefined;
25
+ status?: "ACTIVE" | "INACTIVE" | "LIMITED" | "EXPIRED" | "DELETED" | undefined;
26
+ discountValue?: string | undefined;
27
+ expiredAt?: Date | null | undefined;
28
+ startedAt?: Date | null | undefined;
29
+ deletedAt?: Date | null | undefined;
30
+ activationLimit?: number | null | undefined;
31
+ activationPerUserLimit?: number | null | undefined;
32
+ }>;
33
+ export type PromoCodeUpdate = z.infer<typeof PromoCodeUpdateSchema>;
@@ -0,0 +1,24 @@
1
+ import { z } from "zod";
2
+ export declare const RefreshSessionCreateSchema: z.ZodObject<{
3
+ userId: z.ZodNumber;
4
+ refreshToken: z.ZodString;
5
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
+ status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
7
+ IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
11
+ userId: number;
12
+ refreshToken: string;
13
+ expiredAt?: Date | null | undefined;
14
+ IP?: string | null | undefined;
15
+ UA?: string | null | undefined;
16
+ }, {
17
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
18
+ userId: number;
19
+ refreshToken: string;
20
+ expiredAt?: Date | null | undefined;
21
+ IP?: string | null | undefined;
22
+ UA?: string | null | undefined;
23
+ }>;
24
+ export type RefreshSessionCreate = z.infer<typeof RefreshSessionCreateSchema>;
@@ -0,0 +1,3 @@
1
+ import z from "zod";
2
+ export declare const RefreshSessionStatus: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
3
+ export type RefreshSessionStatus = z.infer<typeof RefreshSessionStatus>;
@@ -0,0 +1,4 @@
1
+ export * from './create';
2
+ export * from './read';
3
+ export * from './update';
4
+ export * from './enums';
@@ -0,0 +1,27 @@
1
+ import z from "zod";
2
+ export declare const RefreshSessionReadResponseSchema: z.ZodObject<{
3
+ id: z.ZodNumber;
4
+ userId: z.ZodNumber;
5
+ refreshToken: z.ZodString;
6
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
7
+ status: z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>;
8
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
9
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
12
+ id: number;
13
+ userId: number;
14
+ refreshToken: string;
15
+ createdAt?: Date | null | undefined;
16
+ updatedAt?: Date | null | undefined;
17
+ expiredAt?: Date | null | undefined;
18
+ }, {
19
+ status: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED";
20
+ id: number;
21
+ userId: number;
22
+ refreshToken: string;
23
+ createdAt?: Date | null | undefined;
24
+ updatedAt?: Date | null | undefined;
25
+ expiredAt?: Date | null | undefined;
26
+ }>;
27
+ export type RefreshSessionReadResponse = z.infer<typeof RefreshSessionReadResponseSchema>;
@@ -0,0 +1,24 @@
1
+ import z from "zod";
2
+ export declare const RefreshSessionUpdateSchema: z.ZodObject<{
3
+ userId: z.ZodOptional<z.ZodNumber>;
4
+ refreshToken: z.ZodOptional<z.ZodString>;
5
+ expiredAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
6
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "EXPIRED", "BLOCKED", "TERMINATED"]>>;
7
+ IP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ UA: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
11
+ userId?: number | undefined;
12
+ expiredAt?: Date | null | undefined;
13
+ refreshToken?: string | undefined;
14
+ IP?: string | null | undefined;
15
+ UA?: string | null | undefined;
16
+ }, {
17
+ status?: "ACTIVE" | "EXPIRED" | "BLOCKED" | "TERMINATED" | undefined;
18
+ userId?: number | undefined;
19
+ expiredAt?: Date | null | undefined;
20
+ refreshToken?: string | undefined;
21
+ IP?: string | null | undefined;
22
+ UA?: string | null | undefined;
23
+ }>;
24
+ export type RefreshSessionUpdate = z.infer<typeof RefreshSessionUpdateSchema>;
@@ -0,0 +1,108 @@
1
+ import { z } from "zod";
2
+ export declare const SettingsEndpoints: {
3
+ getAll: {
4
+ method: "GET";
5
+ path: string;
6
+ request: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
7
+ response: z.ZodObject<{
8
+ desslyDiscount: z.ZodString;
9
+ serviceEnabled: z.ZodBoolean;
10
+ worksEnabled: z.ZodBoolean;
11
+ paymentsEnabled: z.ZodBoolean;
12
+ }, "strip", z.ZodTypeAny, {
13
+ desslyDiscount: string;
14
+ serviceEnabled: boolean;
15
+ worksEnabled: boolean;
16
+ paymentsEnabled: boolean;
17
+ }, {
18
+ desslyDiscount: string;
19
+ serviceEnabled: boolean;
20
+ worksEnabled: boolean;
21
+ paymentsEnabled: boolean;
22
+ }>;
23
+ };
24
+ getOne: {
25
+ method: "GET";
26
+ path: string;
27
+ request: z.ZodObject<{
28
+ key: z.ZodString;
29
+ }, "strip", z.ZodTypeAny, {
30
+ key: string;
31
+ }, {
32
+ key: string;
33
+ }>;
34
+ response: z.ZodObject<{
35
+ key: z.ZodString;
36
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ value: string | boolean;
39
+ key: string;
40
+ }, {
41
+ value: string | boolean;
42
+ key: string;
43
+ }>;
44
+ };
45
+ updateAll: {
46
+ method: "PUT";
47
+ path: string;
48
+ request: z.ZodObject<{
49
+ desslyDiscount: z.ZodOptional<z.ZodString>;
50
+ serviceEnabled: z.ZodOptional<z.ZodBoolean>;
51
+ worksEnabled: z.ZodOptional<z.ZodBoolean>;
52
+ paymentsEnabled: z.ZodOptional<z.ZodBoolean>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ desslyDiscount?: string | undefined;
55
+ serviceEnabled?: boolean | undefined;
56
+ worksEnabled?: boolean | undefined;
57
+ paymentsEnabled?: boolean | undefined;
58
+ }, {
59
+ desslyDiscount?: string | undefined;
60
+ serviceEnabled?: boolean | undefined;
61
+ worksEnabled?: boolean | undefined;
62
+ paymentsEnabled?: boolean | undefined;
63
+ }>;
64
+ response: z.ZodObject<{
65
+ desslyDiscount: z.ZodString;
66
+ serviceEnabled: z.ZodBoolean;
67
+ worksEnabled: z.ZodBoolean;
68
+ paymentsEnabled: z.ZodBoolean;
69
+ }, "strip", z.ZodTypeAny, {
70
+ desslyDiscount: string;
71
+ serviceEnabled: boolean;
72
+ worksEnabled: boolean;
73
+ paymentsEnabled: boolean;
74
+ }, {
75
+ desslyDiscount: string;
76
+ serviceEnabled: boolean;
77
+ worksEnabled: boolean;
78
+ paymentsEnabled: boolean;
79
+ }>;
80
+ };
81
+ updateOne: {
82
+ method: "PUT";
83
+ path: string;
84
+ request: z.ZodObject<{
85
+ key: z.ZodString;
86
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ value: string | boolean;
89
+ key: string;
90
+ }, {
91
+ value: string | boolean;
92
+ key: string;
93
+ }>;
94
+ response: z.ZodObject<{
95
+ key: z.ZodString;
96
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ value: string | boolean;
99
+ key: string;
100
+ }, {
101
+ value: string | boolean;
102
+ key: string;
103
+ }>;
104
+ };
105
+ };
106
+ export type SettingsEndpointKey = keyof typeof SettingsEndpoints;
107
+ export type GetSettingsRequest<K extends SettingsEndpointKey> = z.infer<typeof SettingsEndpoints[K]["request"]>;
108
+ export type GetSettingsResponse<K extends SettingsEndpointKey> = z.infer<typeof SettingsEndpoints[K]["response"]>;
@@ -0,0 +1,3 @@
1
+ export * from "./read";
2
+ export * from "./update";
3
+ export * from "./endpoints";
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const SettingsReadResponseSchema: z.ZodObject<{
3
+ desslyDiscount: z.ZodString;
4
+ serviceEnabled: z.ZodBoolean;
5
+ worksEnabled: z.ZodBoolean;
6
+ paymentsEnabled: z.ZodBoolean;
7
+ }, "strip", z.ZodTypeAny, {
8
+ desslyDiscount: string;
9
+ serviceEnabled: boolean;
10
+ worksEnabled: boolean;
11
+ paymentsEnabled: boolean;
12
+ }, {
13
+ desslyDiscount: string;
14
+ serviceEnabled: boolean;
15
+ worksEnabled: boolean;
16
+ paymentsEnabled: boolean;
17
+ }>;
18
+ export type SettingsReadResponse = z.infer<typeof SettingsReadResponseSchema>;
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const SettingsUpdateRequestSchema: z.ZodObject<{
3
+ desslyDiscount: z.ZodOptional<z.ZodString>;
4
+ serviceEnabled: z.ZodOptional<z.ZodBoolean>;
5
+ worksEnabled: z.ZodOptional<z.ZodBoolean>;
6
+ paymentsEnabled: z.ZodOptional<z.ZodBoolean>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ desslyDiscount?: string | undefined;
9
+ serviceEnabled?: boolean | undefined;
10
+ worksEnabled?: boolean | undefined;
11
+ paymentsEnabled?: boolean | undefined;
12
+ }, {
13
+ desslyDiscount?: string | undefined;
14
+ serviceEnabled?: boolean | undefined;
15
+ worksEnabled?: boolean | undefined;
16
+ paymentsEnabled?: boolean | undefined;
17
+ }>;
18
+ export type SettingsUpdateRequest = z.infer<typeof SettingsUpdateRequestSchema>;
@@ -0,0 +1,67 @@
1
+ import { z } from "zod";
2
+ export declare const StatsEndpoints: {
3
+ list: {
4
+ method: "GET";
5
+ path: string;
6
+ request: z.ZodEffects<z.ZodEffects<z.ZodObject<{
7
+ period: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
8
+ start: z.ZodOptional<z.ZodString>;
9
+ end: z.ZodOptional<z.ZodString>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ period: "day" | "week" | "month" | "year" | "custom";
12
+ start?: string | undefined;
13
+ end?: string | undefined;
14
+ }, {
15
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
16
+ start?: string | undefined;
17
+ end?: string | undefined;
18
+ }>, {
19
+ period: "day" | "week" | "month" | "year" | "custom";
20
+ start?: string | undefined;
21
+ end?: string | undefined;
22
+ }, {
23
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
24
+ start?: string | undefined;
25
+ end?: string | undefined;
26
+ }>, {
27
+ period: "day" | "week" | "month" | "year" | "custom";
28
+ start?: string | undefined;
29
+ end?: string | undefined;
30
+ }, {
31
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
32
+ start?: string | undefined;
33
+ end?: string | undefined;
34
+ }>;
35
+ response: z.ZodObject<{
36
+ usersCount: z.ZodNumber;
37
+ ordersCount: z.ZodNumber;
38
+ totalAmount: z.ZodNumber;
39
+ acquiringCommission: z.ZodNumber;
40
+ serviceCommission: z.ZodNumber;
41
+ totalAmountWithCommission: z.ZodNumber;
42
+ periodStart: z.ZodOptional<z.ZodString>;
43
+ periodEnd: z.ZodOptional<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ serviceCommission: number;
46
+ ordersCount: number;
47
+ usersCount: number;
48
+ totalAmount: number;
49
+ acquiringCommission: number;
50
+ totalAmountWithCommission: number;
51
+ periodStart?: string | undefined;
52
+ periodEnd?: string | undefined;
53
+ }, {
54
+ serviceCommission: number;
55
+ ordersCount: number;
56
+ usersCount: number;
57
+ totalAmount: number;
58
+ acquiringCommission: number;
59
+ totalAmountWithCommission: number;
60
+ periodStart?: string | undefined;
61
+ periodEnd?: string | undefined;
62
+ }>;
63
+ };
64
+ };
65
+ export type StatsEndpointKey = keyof typeof StatsEndpoints;
66
+ export type GetStatsRequest<K extends StatsEndpointKey> = z.infer<typeof StatsEndpoints[K]["request"]>;
67
+ export type GetStatsResponse<K extends StatsEndpointKey> = z.infer<typeof StatsEndpoints[K]["response"]>;
@@ -0,0 +1,3 @@
1
+ export * from "./read";
2
+ export * from "./query";
3
+ export * from "./endpoints";
@@ -0,0 +1,31 @@
1
+ import z from "zod";
2
+ export declare const StatsReadRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3
+ period: z.ZodDefault<z.ZodEnum<["day", "week", "month", "year", "custom"]>>;
4
+ start: z.ZodOptional<z.ZodString>;
5
+ end: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ period: "day" | "week" | "month" | "year" | "custom";
8
+ start?: string | undefined;
9
+ end?: string | undefined;
10
+ }, {
11
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
12
+ start?: string | undefined;
13
+ end?: string | undefined;
14
+ }>, {
15
+ period: "day" | "week" | "month" | "year" | "custom";
16
+ start?: string | undefined;
17
+ end?: string | undefined;
18
+ }, {
19
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
20
+ start?: string | undefined;
21
+ end?: string | undefined;
22
+ }>, {
23
+ period: "day" | "week" | "month" | "year" | "custom";
24
+ start?: string | undefined;
25
+ end?: string | undefined;
26
+ }, {
27
+ period?: "day" | "week" | "month" | "year" | "custom" | undefined;
28
+ start?: string | undefined;
29
+ end?: string | undefined;
30
+ }>;
31
+ export type StatsReadRequest = z.infer<typeof StatsReadRequestSchema>;
@@ -0,0 +1,30 @@
1
+ import z from "zod";
2
+ export declare const StatsReadResponseSchema: z.ZodObject<{
3
+ usersCount: z.ZodNumber;
4
+ ordersCount: z.ZodNumber;
5
+ totalAmount: z.ZodNumber;
6
+ acquiringCommission: z.ZodNumber;
7
+ serviceCommission: z.ZodNumber;
8
+ totalAmountWithCommission: z.ZodNumber;
9
+ periodStart: z.ZodOptional<z.ZodString>;
10
+ periodEnd: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ serviceCommission: number;
13
+ ordersCount: number;
14
+ usersCount: number;
15
+ totalAmount: number;
16
+ acquiringCommission: number;
17
+ totalAmountWithCommission: number;
18
+ periodStart?: string | undefined;
19
+ periodEnd?: string | undefined;
20
+ }, {
21
+ serviceCommission: number;
22
+ ordersCount: number;
23
+ usersCount: number;
24
+ totalAmount: number;
25
+ acquiringCommission: number;
26
+ totalAmountWithCommission: number;
27
+ periodStart?: string | undefined;
28
+ periodEnd?: string | undefined;
29
+ }>;
30
+ export type StatsReadResponse = z.infer<typeof StatsReadResponseSchema>;
@@ -0,0 +1,42 @@
1
+ import { z } from "zod";
2
+ export declare const UserCreateSchema: z.ZodObject<{
3
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ email: z.ZodString;
6
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ steamId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ telegramId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ vkId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ googleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ isConfirmEmail: z.ZodOptional<z.ZodBoolean>;
12
+ role: z.ZodEnum<["USER", "ADMIN", "NO_AUTH"]>;
13
+ status: z.ZodEnum<["ACTIVE", "BLOCKED"]>;
14
+ utmSource: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ email: string;
17
+ status: "ACTIVE" | "BLOCKED";
18
+ role: "USER" | "ADMIN" | "NO_AUTH";
19
+ password?: string | null | undefined;
20
+ username?: string | null | undefined;
21
+ telegramId?: string | null | undefined;
22
+ utmSource?: string | null | undefined;
23
+ picture?: string | null | undefined;
24
+ steamId?: string | null | undefined;
25
+ vkId?: string | null | undefined;
26
+ googleId?: string | null | undefined;
27
+ isConfirmEmail?: boolean | undefined;
28
+ }, {
29
+ email: string;
30
+ status: "ACTIVE" | "BLOCKED";
31
+ role: "USER" | "ADMIN" | "NO_AUTH";
32
+ password?: string | null | undefined;
33
+ username?: string | null | undefined;
34
+ telegramId?: string | null | undefined;
35
+ utmSource?: string | null | undefined;
36
+ picture?: string | null | undefined;
37
+ steamId?: string | null | undefined;
38
+ vkId?: string | null | undefined;
39
+ googleId?: string | null | undefined;
40
+ isConfirmEmail?: boolean | undefined;
41
+ }>;
42
+ export type UserCreate = z.infer<typeof UserCreateSchema>;