@softruck/api-contracts 0.1.1-beta.3
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/README.md +0 -0
- package/dist/alerts/api.d.ts +9 -0
- package/dist/alerts/api.js +8 -0
- package/dist/alerts/index.d.ts +3 -0
- package/dist/alerts/index.js +3 -0
- package/dist/alerts/schemas.d.ts +65 -0
- package/dist/alerts/schemas.js +29 -0
- package/dist/alerts/types.d.ts +36 -0
- package/dist/alerts/types.js +1 -0
- package/dist/auth/api.d.ts +26 -0
- package/dist/auth/api.js +39 -0
- package/dist/auth/index.d.ts +3 -0
- package/dist/auth/index.js +3 -0
- package/dist/auth/schemas/access-codes.d.ts +16 -0
- package/dist/auth/schemas/access-codes.js +13 -0
- package/dist/auth/schemas/login.d.ts +13 -0
- package/dist/auth/schemas/login.js +9 -0
- package/dist/auth/schemas/passwords.d.ts +81 -0
- package/dist/auth/schemas/passwords.js +28 -0
- package/dist/auth/schemas/sessions.d.ts +3 -0
- package/dist/auth/schemas/sessions.js +2 -0
- package/dist/auth/schemas/tokens.d.ts +11 -0
- package/dist/auth/schemas/tokens.js +9 -0
- package/dist/auth/schemas.d.ts +5 -0
- package/dist/auth/schemas.js +5 -0
- package/dist/auth/types.d.ts +1 -0
- package/dist/auth/types.js +1 -0
- package/dist/checklist/api.d.ts +30 -0
- package/dist/checklist/api.js +15 -0
- package/dist/checklist/index.d.ts +3 -0
- package/dist/checklist/index.js +3 -0
- package/dist/checklist/schemas.d.ts +62 -0
- package/dist/checklist/schemas.js +46 -0
- package/dist/checklist/types.d.ts +76 -0
- package/dist/checklist/types.js +1 -0
- package/dist/chips/api.d.ts +17 -0
- package/dist/chips/api.js +8 -0
- package/dist/chips/connections/api.d.ts +13 -0
- package/dist/chips/connections/api.js +4 -0
- package/dist/chips/connections/index.d.ts +3 -0
- package/dist/chips/connections/index.js +3 -0
- package/dist/chips/connections/schemas.d.ts +31 -0
- package/dist/chips/connections/schemas.js +31 -0
- package/dist/chips/connections/types.d.ts +26 -0
- package/dist/chips/connections/types.js +1 -0
- package/dist/chips/index.d.ts +5 -0
- package/dist/chips/index.js +5 -0
- package/dist/chips/requirements/api.d.ts +13 -0
- package/dist/chips/requirements/api.js +4 -0
- package/dist/chips/requirements/index.d.ts +3 -0
- package/dist/chips/requirements/index.js +3 -0
- package/dist/chips/requirements/schemas.d.ts +21 -0
- package/dist/chips/requirements/schemas.js +21 -0
- package/dist/chips/requirements/types.d.ts +16 -0
- package/dist/chips/requirements/types.js +1 -0
- package/dist/chips/schemas.d.ts +78 -0
- package/dist/chips/schemas.js +72 -0
- package/dist/chips/types.d.ts +76 -0
- package/dist/chips/types.js +1 -0
- package/dist/core/client.d.ts +45 -0
- package/dist/core/client.js +42 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.js +4 -0
- package/dist/core/query-builder.d.ts +34 -0
- package/dist/core/query-builder.js +86 -0
- package/dist/core/schemas.d.ts +80 -0
- package/dist/core/schemas.js +31 -0
- package/dist/core/types.d.ts +119 -0
- package/dist/core/types.js +2 -0
- package/dist/devices/activations/api.d.ts +20 -0
- package/dist/devices/activations/api.js +9 -0
- package/dist/devices/activations/index.d.ts +3 -0
- package/dist/devices/activations/index.js +3 -0
- package/dist/devices/activations/schemas.d.ts +42 -0
- package/dist/devices/activations/schemas.js +42 -0
- package/dist/devices/activations/types.d.ts +75 -0
- package/dist/devices/activations/types.js +1 -0
- package/dist/devices/api.d.ts +28 -0
- package/dist/devices/api.js +11 -0
- package/dist/devices/commands/api.d.ts +17 -0
- package/dist/devices/commands/api.js +8 -0
- package/dist/devices/commands/index.d.ts +3 -0
- package/dist/devices/commands/index.js +3 -0
- package/dist/devices/commands/schemas.d.ts +39 -0
- package/dist/devices/commands/schemas.js +33 -0
- package/dist/devices/commands/types.d.ts +58 -0
- package/dist/devices/commands/types.js +1 -0
- package/dist/devices/index.d.ts +5 -0
- package/dist/devices/index.js +5 -0
- package/dist/devices/schemas.d.ts +115 -0
- package/dist/devices/schemas.js +96 -0
- package/dist/devices/types.d.ts +142 -0
- package/dist/devices/types.js +1 -0
- package/dist/enterprises/api.d.ts +27 -0
- package/dist/enterprises/api.js +15 -0
- package/dist/enterprises/index.d.ts +3 -0
- package/dist/enterprises/index.js +3 -0
- package/dist/enterprises/schemas.d.ts +59 -0
- package/dist/enterprises/schemas.js +53 -0
- package/dist/enterprises/types.d.ts +160 -0
- package/dist/enterprises/types.js +1 -0
- package/dist/events/api.d.ts +18 -0
- package/dist/events/api.js +13 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.js +3 -0
- package/dist/events/schemas.d.ts +262 -0
- package/dist/events/schemas.js +54 -0
- package/dist/events/types.d.ts +130 -0
- package/dist/events/types.js +1 -0
- package/dist/exports/api.d.ts +18 -0
- package/dist/exports/api.js +9 -0
- package/dist/exports/index.d.ts +3 -0
- package/dist/exports/index.js +3 -0
- package/dist/exports/schemas.d.ts +27 -0
- package/dist/exports/schemas.js +22 -0
- package/dist/exports/types.d.ts +47 -0
- package/dist/exports/types.js +1 -0
- package/dist/fuelings/api.d.ts +22 -0
- package/dist/fuelings/api.js +9 -0
- package/dist/fuelings/index.d.ts +3 -0
- package/dist/fuelings/index.js +3 -0
- package/dist/fuelings/schemas.d.ts +84 -0
- package/dist/fuelings/schemas.js +52 -0
- package/dist/fuelings/types.d.ts +80 -0
- package/dist/fuelings/types.js +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +22 -0
- package/dist/maintenances/api.d.ts +31 -0
- package/dist/maintenances/api.js +12 -0
- package/dist/maintenances/index.d.ts +3 -0
- package/dist/maintenances/index.js +3 -0
- package/dist/maintenances/schemas.d.ts +74 -0
- package/dist/maintenances/schemas.js +44 -0
- package/dist/maintenances/types.d.ts +69 -0
- package/dist/maintenances/types.js +1 -0
- package/dist/operation-logs/api.d.ts +13 -0
- package/dist/operation-logs/api.js +10 -0
- package/dist/operation-logs/index.d.ts +3 -0
- package/dist/operation-logs/index.js +3 -0
- package/dist/operation-logs/schemas.d.ts +34 -0
- package/dist/operation-logs/schemas.js +22 -0
- package/dist/operation-logs/types.d.ts +32 -0
- package/dist/operation-logs/types.js +1 -0
- package/dist/protocols/api.d.ts +34 -0
- package/dist/protocols/api.js +13 -0
- package/dist/protocols/index.d.ts +3 -0
- package/dist/protocols/index.js +3 -0
- package/dist/protocols/schemas.d.ts +66 -0
- package/dist/protocols/schemas.js +36 -0
- package/dist/protocols/types.d.ts +99 -0
- package/dist/protocols/types.js +1 -0
- package/dist/service-orders/api.d.ts +38 -0
- package/dist/service-orders/api.js +14 -0
- package/dist/service-orders/index.d.ts +3 -0
- package/dist/service-orders/index.js +3 -0
- package/dist/service-orders/schemas.d.ts +82 -0
- package/dist/service-orders/schemas.js +47 -0
- package/dist/service-orders/types.d.ts +84 -0
- package/dist/service-orders/types.js +1 -0
- package/dist/sharings/api.d.ts +17 -0
- package/dist/sharings/api.js +8 -0
- package/dist/sharings/index.d.ts +3 -0
- package/dist/sharings/index.js +3 -0
- package/dist/sharings/schemas.d.ts +47 -0
- package/dist/sharings/schemas.js +36 -0
- package/dist/sharings/types.d.ts +54 -0
- package/dist/sharings/types.js +1 -0
- package/dist/surveys/api.d.ts +2 -0
- package/dist/surveys/api.js +3 -0
- package/dist/surveys/index.d.ts +3 -0
- package/dist/surveys/index.js +3 -0
- package/dist/surveys/schemas.d.ts +33 -0
- package/dist/surveys/schemas.js +23 -0
- package/dist/surveys/types.d.ts +27 -0
- package/dist/surveys/types.js +1 -0
- package/dist/tags/api.d.ts +24 -0
- package/dist/tags/api.js +28 -0
- package/dist/tags/index.d.ts +3 -0
- package/dist/tags/index.js +3 -0
- package/dist/tags/schemas.d.ts +26 -0
- package/dist/tags/schemas.js +19 -0
- package/dist/tags/types.d.ts +16 -0
- package/dist/tags/types.js +1 -0
- package/dist/tracking/api.d.ts +2 -0
- package/dist/tracking/api.js +3 -0
- package/dist/tracking/index.d.ts +3 -0
- package/dist/tracking/index.js +3 -0
- package/dist/tracking/schemas.d.ts +12 -0
- package/dist/tracking/schemas.js +12 -0
- package/dist/tracking/types.d.ts +11 -0
- package/dist/tracking/types.js +1 -0
- package/dist/trajectories/api.d.ts +27 -0
- package/dist/trajectories/api.js +13 -0
- package/dist/trajectories/index.d.ts +3 -0
- package/dist/trajectories/index.js +3 -0
- package/dist/trajectories/schemas.d.ts +39 -0
- package/dist/trajectories/schemas.js +30 -0
- package/dist/trajectories/types.d.ts +58 -0
- package/dist/trajectories/types.js +1 -0
- package/dist/trips/api.d.ts +30 -0
- package/dist/trips/api.js +12 -0
- package/dist/trips/index.d.ts +3 -0
- package/dist/trips/index.js +3 -0
- package/dist/trips/schemas.d.ts +62 -0
- package/dist/trips/schemas.js +36 -0
- package/dist/trips/types.d.ts +65 -0
- package/dist/trips/types.js +1 -0
- package/dist/users/api.d.ts +533 -0
- package/dist/users/api.js +102 -0
- package/dist/users/configuration/api.d.ts +21 -0
- package/dist/users/configuration/api.js +16 -0
- package/dist/users/configuration/index.d.ts +3 -0
- package/dist/users/configuration/index.js +3 -0
- package/dist/users/configuration/schemas.d.ts +91 -0
- package/dist/users/configuration/schemas.js +42 -0
- package/dist/users/configuration/types.d.ts +36 -0
- package/dist/users/configuration/types.js +1 -0
- package/dist/users/index.d.ts +4 -0
- package/dist/users/index.js +4 -0
- package/dist/users/schemas/addresses.d.ts +136 -0
- package/dist/users/schemas/addresses.js +94 -0
- package/dist/users/schemas/authenticated-user.d.ts +30 -0
- package/dist/users/schemas/authenticated-user.js +21 -0
- package/dist/users/schemas/common.d.ts +28 -0
- package/dist/users/schemas/common.js +26 -0
- package/dist/users/schemas/documents.d.ts +40 -0
- package/dist/users/schemas/documents.js +53 -0
- package/dist/users/schemas/passwords.d.ts +10 -0
- package/dist/users/schemas/passwords.js +15 -0
- package/dist/users/schemas/roles.d.ts +60 -0
- package/dist/users/schemas/roles.js +9 -0
- package/dist/users/schemas/sessions.d.ts +84 -0
- package/dist/users/schemas/sessions.js +55 -0
- package/dist/users/schemas/usernames.d.ts +14 -0
- package/dist/users/schemas/usernames.js +12 -0
- package/dist/users/schemas/users.d.ts +648 -0
- package/dist/users/schemas/users.js +243 -0
- package/dist/users/schemas.d.ts +8 -0
- package/dist/users/schemas.js +8 -0
- package/dist/users/types.d.ts +1 -0
- package/dist/users/types.js +1 -0
- package/dist/vehicles/api.d.ts +28 -0
- package/dist/vehicles/api.js +13 -0
- package/dist/vehicles/index.d.ts +3 -0
- package/dist/vehicles/index.js +3 -0
- package/dist/vehicles/schemas.d.ts +88 -0
- package/dist/vehicles/schemas.js +71 -0
- package/dist/vehicles/types.d.ts +142 -0
- package/dist/vehicles/types.js +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const UserQueryParamsSchema: z.ZodObject<{
|
|
3
|
+
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"only">]>>;
|
|
4
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
search: z.ZodOptional<z.ZodString>;
|
|
7
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
8
|
+
name: "name";
|
|
9
|
+
deleted: "deleted";
|
|
10
|
+
id: "id";
|
|
11
|
+
username: "username";
|
|
12
|
+
email: "email";
|
|
13
|
+
uuid: "uuid";
|
|
14
|
+
phone1: "phone1";
|
|
15
|
+
phone2: "phone2";
|
|
16
|
+
created_at: "created_at";
|
|
17
|
+
updated_at: "updated_at";
|
|
18
|
+
deleted_at: "deleted_at";
|
|
19
|
+
emergency_contact: "emergency_contact";
|
|
20
|
+
emergency_phone: "emergency_phone";
|
|
21
|
+
cpf: "cpf";
|
|
22
|
+
document_number: "document_number";
|
|
23
|
+
locale: "locale";
|
|
24
|
+
otp: "otp";
|
|
25
|
+
enterprise_id: "enterprise_id";
|
|
26
|
+
last_login_at: "last_login_at";
|
|
27
|
+
birthdate: "birthdate";
|
|
28
|
+
deactivated_at: "deactivated_at";
|
|
29
|
+
user_type: "user_type";
|
|
30
|
+
last_integration_source: "last_integration_source";
|
|
31
|
+
last_integration_time: "last_integration_time";
|
|
32
|
+
invalid_email_address: "invalid_email_address";
|
|
33
|
+
reachable_email_address: "reachable_email_address";
|
|
34
|
+
}>, z.ZodLiteral<"*">]>>>;
|
|
35
|
+
includes: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
36
|
+
enterprise: "enterprise";
|
|
37
|
+
document: "document";
|
|
38
|
+
addresses: "addresses";
|
|
39
|
+
roles: "roles";
|
|
40
|
+
times: "times";
|
|
41
|
+
identification_users: "identification_users";
|
|
42
|
+
vehicles: "vehicles";
|
|
43
|
+
tags: "tags";
|
|
44
|
+
}> & z.core.$partial, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>>>>;
|
|
45
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
46
|
+
name: "name";
|
|
47
|
+
deleted: "deleted";
|
|
48
|
+
id: "id";
|
|
49
|
+
username: "username";
|
|
50
|
+
email: "email";
|
|
51
|
+
uuid: "uuid";
|
|
52
|
+
phone1: "phone1";
|
|
53
|
+
phone2: "phone2";
|
|
54
|
+
created_at: "created_at";
|
|
55
|
+
updated_at: "updated_at";
|
|
56
|
+
deleted_at: "deleted_at";
|
|
57
|
+
emergency_contact: "emergency_contact";
|
|
58
|
+
emergency_phone: "emergency_phone";
|
|
59
|
+
cpf: "cpf";
|
|
60
|
+
document_number: "document_number";
|
|
61
|
+
locale: "locale";
|
|
62
|
+
otp: "otp";
|
|
63
|
+
enterprise_id: "enterprise_id";
|
|
64
|
+
last_login_at: "last_login_at";
|
|
65
|
+
birthdate: "birthdate";
|
|
66
|
+
deactivated_at: "deactivated_at";
|
|
67
|
+
user_type: "user_type";
|
|
68
|
+
last_integration_source: "last_integration_source";
|
|
69
|
+
last_integration_time: "last_integration_time";
|
|
70
|
+
invalid_email_address: "invalid_email_address";
|
|
71
|
+
reachable_email_address: "reachable_email_address";
|
|
72
|
+
"users.id": "users.id";
|
|
73
|
+
"users.uuid": "users.uuid";
|
|
74
|
+
"users.enterprise_id": "users.enterprise_id";
|
|
75
|
+
"users.username": "users.username";
|
|
76
|
+
"users.email": "users.email";
|
|
77
|
+
"users.name": "users.name";
|
|
78
|
+
"users.phone1": "users.phone1";
|
|
79
|
+
"users.phone2": "users.phone2";
|
|
80
|
+
"users.last_login_at": "users.last_login_at";
|
|
81
|
+
"users.emergency_contact": "users.emergency_contact";
|
|
82
|
+
"users.emergency_phone": "users.emergency_phone";
|
|
83
|
+
"users.document_number": "users.document_number";
|
|
84
|
+
"users.cpf": "users.cpf";
|
|
85
|
+
"users.birthdate": "users.birthdate";
|
|
86
|
+
"users.created_at": "users.created_at";
|
|
87
|
+
"users.updated_at": "users.updated_at";
|
|
88
|
+
"users.deleted_at": "users.deleted_at";
|
|
89
|
+
"users.deleted": "users.deleted";
|
|
90
|
+
"users.deactivated_at": "users.deactivated_at";
|
|
91
|
+
"users.locale": "users.locale";
|
|
92
|
+
"users.user_type": "users.user_type";
|
|
93
|
+
"users.last_integration_source": "users.last_integration_source";
|
|
94
|
+
"users.last_integration_time": "users.last_integration_time";
|
|
95
|
+
"users.invalid_email_address": "users.invalid_email_address";
|
|
96
|
+
"users.otp": "users.otp";
|
|
97
|
+
"users.reachable_email_address": "users.reachable_email_address";
|
|
98
|
+
"enterprise.id": "enterprise.id";
|
|
99
|
+
"enterprise.name": "enterprise.name";
|
|
100
|
+
"roles.name": "roles.name";
|
|
101
|
+
"roles.internal": "roles.internal";
|
|
102
|
+
"tags.id": "tags.id";
|
|
103
|
+
"tags.name": "tags.name";
|
|
104
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodObject<{
|
|
105
|
+
operator: z.ZodEnum<{
|
|
106
|
+
in: "in";
|
|
107
|
+
eq: "eq";
|
|
108
|
+
neq: "neq";
|
|
109
|
+
gt: "gt";
|
|
110
|
+
gte: "gte";
|
|
111
|
+
lt: "lt";
|
|
112
|
+
lte: "lte";
|
|
113
|
+
btw: "btw";
|
|
114
|
+
nbtw: "nbtw";
|
|
115
|
+
ilk: "ilk";
|
|
116
|
+
ew: "ew";
|
|
117
|
+
sw: "sw";
|
|
118
|
+
nin: "nin";
|
|
119
|
+
is: "is";
|
|
120
|
+
}>;
|
|
121
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
122
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
123
|
+
operator: z.ZodEnum<{
|
|
124
|
+
in: "in";
|
|
125
|
+
eq: "eq";
|
|
126
|
+
neq: "neq";
|
|
127
|
+
gt: "gt";
|
|
128
|
+
gte: "gte";
|
|
129
|
+
lt: "lt";
|
|
130
|
+
lte: "lte";
|
|
131
|
+
btw: "btw";
|
|
132
|
+
nbtw: "nbtw";
|
|
133
|
+
ilk: "ilk";
|
|
134
|
+
ew: "ew";
|
|
135
|
+
sw: "sw";
|
|
136
|
+
nin: "nin";
|
|
137
|
+
is: "is";
|
|
138
|
+
}>;
|
|
139
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
140
|
+
}, z.core.$strict>>]>>>;
|
|
141
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
prop: z.ZodEnum<{
|
|
143
|
+
name: "name";
|
|
144
|
+
deleted: "deleted";
|
|
145
|
+
id: "id";
|
|
146
|
+
username: "username";
|
|
147
|
+
email: "email";
|
|
148
|
+
uuid: "uuid";
|
|
149
|
+
phone1: "phone1";
|
|
150
|
+
phone2: "phone2";
|
|
151
|
+
created_at: "created_at";
|
|
152
|
+
updated_at: "updated_at";
|
|
153
|
+
deleted_at: "deleted_at";
|
|
154
|
+
emergency_contact: "emergency_contact";
|
|
155
|
+
emergency_phone: "emergency_phone";
|
|
156
|
+
cpf: "cpf";
|
|
157
|
+
document_number: "document_number";
|
|
158
|
+
locale: "locale";
|
|
159
|
+
otp: "otp";
|
|
160
|
+
enterprise_id: "enterprise_id";
|
|
161
|
+
last_login_at: "last_login_at";
|
|
162
|
+
birthdate: "birthdate";
|
|
163
|
+
deactivated_at: "deactivated_at";
|
|
164
|
+
user_type: "user_type";
|
|
165
|
+
last_integration_source: "last_integration_source";
|
|
166
|
+
last_integration_time: "last_integration_time";
|
|
167
|
+
invalid_email_address: "invalid_email_address";
|
|
168
|
+
reachable_email_address: "reachable_email_address";
|
|
169
|
+
"users.id": "users.id";
|
|
170
|
+
"users.uuid": "users.uuid";
|
|
171
|
+
"users.enterprise_id": "users.enterprise_id";
|
|
172
|
+
"users.username": "users.username";
|
|
173
|
+
"users.email": "users.email";
|
|
174
|
+
"users.name": "users.name";
|
|
175
|
+
"users.phone1": "users.phone1";
|
|
176
|
+
"users.phone2": "users.phone2";
|
|
177
|
+
"users.last_login_at": "users.last_login_at";
|
|
178
|
+
"users.emergency_contact": "users.emergency_contact";
|
|
179
|
+
"users.emergency_phone": "users.emergency_phone";
|
|
180
|
+
"users.document_number": "users.document_number";
|
|
181
|
+
"users.cpf": "users.cpf";
|
|
182
|
+
"users.birthdate": "users.birthdate";
|
|
183
|
+
"users.created_at": "users.created_at";
|
|
184
|
+
"users.updated_at": "users.updated_at";
|
|
185
|
+
"users.deleted_at": "users.deleted_at";
|
|
186
|
+
"users.deleted": "users.deleted";
|
|
187
|
+
"users.deactivated_at": "users.deactivated_at";
|
|
188
|
+
"users.locale": "users.locale";
|
|
189
|
+
"users.user_type": "users.user_type";
|
|
190
|
+
"users.last_integration_source": "users.last_integration_source";
|
|
191
|
+
"users.last_integration_time": "users.last_integration_time";
|
|
192
|
+
"users.invalid_email_address": "users.invalid_email_address";
|
|
193
|
+
"users.otp": "users.otp";
|
|
194
|
+
"users.reachable_email_address": "users.reachable_email_address";
|
|
195
|
+
"enterprise.id": "enterprise.id";
|
|
196
|
+
"enterprise.name": "enterprise.name";
|
|
197
|
+
"roles.name": "roles.name";
|
|
198
|
+
"roles.internal": "roles.internal";
|
|
199
|
+
"tags.id": "tags.id";
|
|
200
|
+
"tags.name": "tags.name";
|
|
201
|
+
}>;
|
|
202
|
+
order: z.ZodEnum<{
|
|
203
|
+
ASC: "ASC";
|
|
204
|
+
DESC: "DESC";
|
|
205
|
+
}>;
|
|
206
|
+
}, z.core.$strict>>;
|
|
207
|
+
}, z.core.$strict>;
|
|
208
|
+
export type UserQueryParams = z.infer<typeof UserQueryParamsSchema>;
|
|
209
|
+
export declare const UserPanelQueryParamsSchema: z.ZodObject<{
|
|
210
|
+
any: z.ZodObject<{
|
|
211
|
+
groupBy: z.ZodObject<{
|
|
212
|
+
value: z.ZodString;
|
|
213
|
+
}, z.core.$strict>;
|
|
214
|
+
}, z.core.$strict>;
|
|
215
|
+
count: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"only">]>>;
|
|
216
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
218
|
+
search: z.ZodOptional<z.ZodString>;
|
|
219
|
+
attributes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
220
|
+
name: "name";
|
|
221
|
+
deleted: "deleted";
|
|
222
|
+
id: "id";
|
|
223
|
+
username: "username";
|
|
224
|
+
email: "email";
|
|
225
|
+
uuid: "uuid";
|
|
226
|
+
phone1: "phone1";
|
|
227
|
+
phone2: "phone2";
|
|
228
|
+
created_at: "created_at";
|
|
229
|
+
updated_at: "updated_at";
|
|
230
|
+
deleted_at: "deleted_at";
|
|
231
|
+
emergency_contact: "emergency_contact";
|
|
232
|
+
emergency_phone: "emergency_phone";
|
|
233
|
+
cpf: "cpf";
|
|
234
|
+
document_number: "document_number";
|
|
235
|
+
locale: "locale";
|
|
236
|
+
otp: "otp";
|
|
237
|
+
enterprise_id: "enterprise_id";
|
|
238
|
+
last_login_at: "last_login_at";
|
|
239
|
+
birthdate: "birthdate";
|
|
240
|
+
deactivated_at: "deactivated_at";
|
|
241
|
+
user_type: "user_type";
|
|
242
|
+
last_integration_source: "last_integration_source";
|
|
243
|
+
last_integration_time: "last_integration_time";
|
|
244
|
+
invalid_email_address: "invalid_email_address";
|
|
245
|
+
reachable_email_address: "reachable_email_address";
|
|
246
|
+
}>, z.ZodLiteral<"*">]>>>;
|
|
247
|
+
includes: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
248
|
+
enterprise: "enterprise";
|
|
249
|
+
document: "document";
|
|
250
|
+
addresses: "addresses";
|
|
251
|
+
roles: "roles";
|
|
252
|
+
times: "times";
|
|
253
|
+
identification_users: "identification_users";
|
|
254
|
+
vehicles: "vehicles";
|
|
255
|
+
tags: "tags";
|
|
256
|
+
}> & z.core.$partial, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>>>>;
|
|
257
|
+
filters: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
258
|
+
name: "name";
|
|
259
|
+
deleted: "deleted";
|
|
260
|
+
id: "id";
|
|
261
|
+
username: "username";
|
|
262
|
+
email: "email";
|
|
263
|
+
uuid: "uuid";
|
|
264
|
+
phone1: "phone1";
|
|
265
|
+
phone2: "phone2";
|
|
266
|
+
created_at: "created_at";
|
|
267
|
+
updated_at: "updated_at";
|
|
268
|
+
deleted_at: "deleted_at";
|
|
269
|
+
emergency_contact: "emergency_contact";
|
|
270
|
+
emergency_phone: "emergency_phone";
|
|
271
|
+
cpf: "cpf";
|
|
272
|
+
document_number: "document_number";
|
|
273
|
+
locale: "locale";
|
|
274
|
+
otp: "otp";
|
|
275
|
+
enterprise_id: "enterprise_id";
|
|
276
|
+
last_login_at: "last_login_at";
|
|
277
|
+
birthdate: "birthdate";
|
|
278
|
+
deactivated_at: "deactivated_at";
|
|
279
|
+
user_type: "user_type";
|
|
280
|
+
last_integration_source: "last_integration_source";
|
|
281
|
+
last_integration_time: "last_integration_time";
|
|
282
|
+
invalid_email_address: "invalid_email_address";
|
|
283
|
+
reachable_email_address: "reachable_email_address";
|
|
284
|
+
"users.id": "users.id";
|
|
285
|
+
"users.uuid": "users.uuid";
|
|
286
|
+
"users.enterprise_id": "users.enterprise_id";
|
|
287
|
+
"users.username": "users.username";
|
|
288
|
+
"users.email": "users.email";
|
|
289
|
+
"users.name": "users.name";
|
|
290
|
+
"users.phone1": "users.phone1";
|
|
291
|
+
"users.phone2": "users.phone2";
|
|
292
|
+
"users.last_login_at": "users.last_login_at";
|
|
293
|
+
"users.emergency_contact": "users.emergency_contact";
|
|
294
|
+
"users.emergency_phone": "users.emergency_phone";
|
|
295
|
+
"users.document_number": "users.document_number";
|
|
296
|
+
"users.cpf": "users.cpf";
|
|
297
|
+
"users.birthdate": "users.birthdate";
|
|
298
|
+
"users.created_at": "users.created_at";
|
|
299
|
+
"users.updated_at": "users.updated_at";
|
|
300
|
+
"users.deleted_at": "users.deleted_at";
|
|
301
|
+
"users.deleted": "users.deleted";
|
|
302
|
+
"users.deactivated_at": "users.deactivated_at";
|
|
303
|
+
"users.locale": "users.locale";
|
|
304
|
+
"users.user_type": "users.user_type";
|
|
305
|
+
"users.last_integration_source": "users.last_integration_source";
|
|
306
|
+
"users.last_integration_time": "users.last_integration_time";
|
|
307
|
+
"users.invalid_email_address": "users.invalid_email_address";
|
|
308
|
+
"users.otp": "users.otp";
|
|
309
|
+
"users.reachable_email_address": "users.reachable_email_address";
|
|
310
|
+
"enterprise.id": "enterprise.id";
|
|
311
|
+
"enterprise.name": "enterprise.name";
|
|
312
|
+
"roles.name": "roles.name";
|
|
313
|
+
"roles.internal": "roles.internal";
|
|
314
|
+
"tags.id": "tags.id";
|
|
315
|
+
"tags.name": "tags.name";
|
|
316
|
+
}> & z.core.$partial, z.ZodUnion<readonly [z.ZodObject<{
|
|
317
|
+
operator: z.ZodEnum<{
|
|
318
|
+
in: "in";
|
|
319
|
+
eq: "eq";
|
|
320
|
+
neq: "neq";
|
|
321
|
+
gt: "gt";
|
|
322
|
+
gte: "gte";
|
|
323
|
+
lt: "lt";
|
|
324
|
+
lte: "lte";
|
|
325
|
+
btw: "btw";
|
|
326
|
+
nbtw: "nbtw";
|
|
327
|
+
ilk: "ilk";
|
|
328
|
+
ew: "ew";
|
|
329
|
+
sw: "sw";
|
|
330
|
+
nin: "nin";
|
|
331
|
+
is: "is";
|
|
332
|
+
}>;
|
|
333
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
334
|
+
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
|
|
335
|
+
operator: z.ZodEnum<{
|
|
336
|
+
in: "in";
|
|
337
|
+
eq: "eq";
|
|
338
|
+
neq: "neq";
|
|
339
|
+
gt: "gt";
|
|
340
|
+
gte: "gte";
|
|
341
|
+
lt: "lt";
|
|
342
|
+
lte: "lte";
|
|
343
|
+
btw: "btw";
|
|
344
|
+
nbtw: "nbtw";
|
|
345
|
+
ilk: "ilk";
|
|
346
|
+
ew: "ew";
|
|
347
|
+
sw: "sw";
|
|
348
|
+
nin: "nin";
|
|
349
|
+
is: "is";
|
|
350
|
+
}>;
|
|
351
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
352
|
+
}, z.core.$strict>>]>>>;
|
|
353
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
354
|
+
prop: z.ZodEnum<{
|
|
355
|
+
name: "name";
|
|
356
|
+
deleted: "deleted";
|
|
357
|
+
id: "id";
|
|
358
|
+
username: "username";
|
|
359
|
+
email: "email";
|
|
360
|
+
uuid: "uuid";
|
|
361
|
+
phone1: "phone1";
|
|
362
|
+
phone2: "phone2";
|
|
363
|
+
created_at: "created_at";
|
|
364
|
+
updated_at: "updated_at";
|
|
365
|
+
deleted_at: "deleted_at";
|
|
366
|
+
emergency_contact: "emergency_contact";
|
|
367
|
+
emergency_phone: "emergency_phone";
|
|
368
|
+
cpf: "cpf";
|
|
369
|
+
document_number: "document_number";
|
|
370
|
+
locale: "locale";
|
|
371
|
+
otp: "otp";
|
|
372
|
+
enterprise_id: "enterprise_id";
|
|
373
|
+
last_login_at: "last_login_at";
|
|
374
|
+
birthdate: "birthdate";
|
|
375
|
+
deactivated_at: "deactivated_at";
|
|
376
|
+
user_type: "user_type";
|
|
377
|
+
last_integration_source: "last_integration_source";
|
|
378
|
+
last_integration_time: "last_integration_time";
|
|
379
|
+
invalid_email_address: "invalid_email_address";
|
|
380
|
+
reachable_email_address: "reachable_email_address";
|
|
381
|
+
"users.id": "users.id";
|
|
382
|
+
"users.uuid": "users.uuid";
|
|
383
|
+
"users.enterprise_id": "users.enterprise_id";
|
|
384
|
+
"users.username": "users.username";
|
|
385
|
+
"users.email": "users.email";
|
|
386
|
+
"users.name": "users.name";
|
|
387
|
+
"users.phone1": "users.phone1";
|
|
388
|
+
"users.phone2": "users.phone2";
|
|
389
|
+
"users.last_login_at": "users.last_login_at";
|
|
390
|
+
"users.emergency_contact": "users.emergency_contact";
|
|
391
|
+
"users.emergency_phone": "users.emergency_phone";
|
|
392
|
+
"users.document_number": "users.document_number";
|
|
393
|
+
"users.cpf": "users.cpf";
|
|
394
|
+
"users.birthdate": "users.birthdate";
|
|
395
|
+
"users.created_at": "users.created_at";
|
|
396
|
+
"users.updated_at": "users.updated_at";
|
|
397
|
+
"users.deleted_at": "users.deleted_at";
|
|
398
|
+
"users.deleted": "users.deleted";
|
|
399
|
+
"users.deactivated_at": "users.deactivated_at";
|
|
400
|
+
"users.locale": "users.locale";
|
|
401
|
+
"users.user_type": "users.user_type";
|
|
402
|
+
"users.last_integration_source": "users.last_integration_source";
|
|
403
|
+
"users.last_integration_time": "users.last_integration_time";
|
|
404
|
+
"users.invalid_email_address": "users.invalid_email_address";
|
|
405
|
+
"users.otp": "users.otp";
|
|
406
|
+
"users.reachable_email_address": "users.reachable_email_address";
|
|
407
|
+
"enterprise.id": "enterprise.id";
|
|
408
|
+
"enterprise.name": "enterprise.name";
|
|
409
|
+
"roles.name": "roles.name";
|
|
410
|
+
"roles.internal": "roles.internal";
|
|
411
|
+
"tags.id": "tags.id";
|
|
412
|
+
"tags.name": "tags.name";
|
|
413
|
+
}>;
|
|
414
|
+
order: z.ZodEnum<{
|
|
415
|
+
ASC: "ASC";
|
|
416
|
+
DESC: "DESC";
|
|
417
|
+
}>;
|
|
418
|
+
}, z.core.$strict>>;
|
|
419
|
+
}, z.core.$strict>;
|
|
420
|
+
export type UserPanelQueryParams = z.infer<typeof UserPanelQueryParamsSchema>;
|
|
421
|
+
export declare const CreateUserPayloadSchema: z.ZodObject<{
|
|
422
|
+
attributes: z.ZodObject<{
|
|
423
|
+
username: z.ZodString;
|
|
424
|
+
password: z.ZodOptional<z.ZodString>;
|
|
425
|
+
name: z.ZodString;
|
|
426
|
+
locale: z.ZodEnum<{
|
|
427
|
+
pt_BR: "pt_BR";
|
|
428
|
+
es_UY: "es_UY";
|
|
429
|
+
en_US: "en_US";
|
|
430
|
+
}>;
|
|
431
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
432
|
+
birthdate: z.ZodOptional<z.ZodString>;
|
|
433
|
+
phone1: z.ZodOptional<z.ZodString>;
|
|
434
|
+
phone2: z.ZodOptional<z.ZodString>;
|
|
435
|
+
emergency_contact: z.ZodOptional<z.ZodString>;
|
|
436
|
+
emergency_phone: z.ZodOptional<z.ZodString>;
|
|
437
|
+
cpf: z.ZodOptional<z.ZodString>;
|
|
438
|
+
document_number: z.ZodOptional<z.ZodString>;
|
|
439
|
+
}, z.core.$strict>;
|
|
440
|
+
relationships: z.ZodObject<{
|
|
441
|
+
enterprise: z.ZodObject<{
|
|
442
|
+
type: z.ZodLiteral<"enterprise">;
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
}, z.core.$strict>;
|
|
445
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
446
|
+
type: z.ZodLiteral<"roles">;
|
|
447
|
+
id: z.ZodString;
|
|
448
|
+
}, z.core.$strict>>;
|
|
449
|
+
}, z.core.$strict>;
|
|
450
|
+
}, z.core.$strict>;
|
|
451
|
+
export type CreateUserPayload = z.infer<typeof CreateUserPayloadSchema>;
|
|
452
|
+
export declare const CreateUsersPayloadSchema: z.ZodObject<{
|
|
453
|
+
data: z.ZodArray<z.ZodObject<{
|
|
454
|
+
attributes: z.ZodObject<{
|
|
455
|
+
username: z.ZodString;
|
|
456
|
+
password: z.ZodOptional<z.ZodString>;
|
|
457
|
+
name: z.ZodString;
|
|
458
|
+
locale: z.ZodEnum<{
|
|
459
|
+
pt_BR: "pt_BR";
|
|
460
|
+
es_UY: "es_UY";
|
|
461
|
+
en_US: "en_US";
|
|
462
|
+
}>;
|
|
463
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
464
|
+
birthdate: z.ZodOptional<z.ZodString>;
|
|
465
|
+
phone1: z.ZodOptional<z.ZodString>;
|
|
466
|
+
phone2: z.ZodOptional<z.ZodString>;
|
|
467
|
+
emergency_contact: z.ZodOptional<z.ZodString>;
|
|
468
|
+
emergency_phone: z.ZodOptional<z.ZodString>;
|
|
469
|
+
cpf: z.ZodOptional<z.ZodString>;
|
|
470
|
+
document_number: z.ZodOptional<z.ZodString>;
|
|
471
|
+
}, z.core.$strict>;
|
|
472
|
+
relationships: z.ZodObject<{
|
|
473
|
+
enterprise: z.ZodObject<{
|
|
474
|
+
type: z.ZodLiteral<"enterprise">;
|
|
475
|
+
id: z.ZodString;
|
|
476
|
+
}, z.core.$strict>;
|
|
477
|
+
roles: z.ZodOptional<z.ZodObject<{
|
|
478
|
+
type: z.ZodLiteral<"roles">;
|
|
479
|
+
id: z.ZodString;
|
|
480
|
+
}, z.core.$strict>>;
|
|
481
|
+
}, z.core.$strict>;
|
|
482
|
+
}, z.core.$strict>>;
|
|
483
|
+
}, z.core.$strict>;
|
|
484
|
+
export type CreateUsersPayload = z.infer<typeof CreateUsersPayloadSchema>;
|
|
485
|
+
export declare const CreatedUserSchema: z.ZodObject<{
|
|
486
|
+
id: z.ZodString;
|
|
487
|
+
type: z.ZodOptional<z.ZodString>;
|
|
488
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
489
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
490
|
+
}, z.core.$strip>;
|
|
491
|
+
export type CreatedUser = z.infer<typeof CreatedUserSchema>;
|
|
492
|
+
export declare const CreateUsersResponseSchema: z.ZodObject<{
|
|
493
|
+
data: z.ZodArray<z.ZodObject<{
|
|
494
|
+
id: z.ZodString;
|
|
495
|
+
type: z.ZodOptional<z.ZodString>;
|
|
496
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
497
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
498
|
+
}, z.core.$strip>>;
|
|
499
|
+
}, z.core.$strict>;
|
|
500
|
+
export type CreateUsersResponse = z.infer<typeof CreateUsersResponseSchema>;
|
|
501
|
+
export declare const UpdateUserPayloadSchema: z.ZodObject<{
|
|
502
|
+
attributes: z.ZodOptional<z.ZodObject<{
|
|
503
|
+
username: z.ZodOptional<z.ZodString>;
|
|
504
|
+
name: z.ZodOptional<z.ZodString>;
|
|
505
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
506
|
+
birthdate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
507
|
+
cpf: z.ZodOptional<z.ZodString>;
|
|
508
|
+
document_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
509
|
+
emergency_contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
511
|
+
phone1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
512
|
+
phone2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
513
|
+
emergency_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
514
|
+
}, z.core.$strict>>;
|
|
515
|
+
relationships: z.ZodOptional<z.ZodObject<{
|
|
516
|
+
enterprise: z.ZodOptional<z.ZodObject<{
|
|
517
|
+
type: z.ZodLiteral<"enterprise">;
|
|
518
|
+
id: z.ZodString;
|
|
519
|
+
}, z.core.$strict>>;
|
|
520
|
+
roles: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
521
|
+
type: z.ZodLiteral<"roles">;
|
|
522
|
+
id: z.ZodString;
|
|
523
|
+
}, z.core.$strict>>>;
|
|
524
|
+
}, z.core.$strict>>;
|
|
525
|
+
}, z.core.$strict>;
|
|
526
|
+
export type UpdateUserPayload = z.infer<typeof UpdateUserPayloadSchema>;
|
|
527
|
+
export declare const DeleteUsersPayloadSchema: z.ZodObject<{
|
|
528
|
+
data: z.ZodArray<z.ZodObject<{
|
|
529
|
+
type: z.ZodLiteral<"users">;
|
|
530
|
+
id: z.ZodString;
|
|
531
|
+
}, z.core.$strict>>;
|
|
532
|
+
}, z.core.$strict>;
|
|
533
|
+
export type DeleteUsersPayload = z.infer<typeof DeleteUsersPayloadSchema>;
|
|
534
|
+
export declare const UserAttributesSchema: z.ZodObject<{
|
|
535
|
+
name: z.ZodString;
|
|
536
|
+
username: z.ZodString;
|
|
537
|
+
email: z.ZodNullable<z.ZodString>;
|
|
538
|
+
birthdate: z.ZodNullable<z.ZodString>;
|
|
539
|
+
locale: z.ZodNullable<z.ZodString>;
|
|
540
|
+
last_login_at: z.ZodNullable<z.ZodString>;
|
|
541
|
+
last_integration_source: z.ZodNullable<z.ZodString>;
|
|
542
|
+
last_integration_time: z.ZodNullable<z.ZodString>;
|
|
543
|
+
deactivated_at: z.ZodNullable<z.ZodString>;
|
|
544
|
+
phone1: z.ZodNullable<z.ZodString>;
|
|
545
|
+
phone2: z.ZodNullable<z.ZodString>;
|
|
546
|
+
emergency_contact: z.ZodNullable<z.ZodString>;
|
|
547
|
+
emergency_phone: z.ZodNullable<z.ZodString>;
|
|
548
|
+
cpf: z.ZodNullable<z.ZodString>;
|
|
549
|
+
document_number: z.ZodNullable<z.ZodString>;
|
|
550
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
551
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
552
|
+
}, z.core.$strip>;
|
|
553
|
+
export type UserAttributes = z.infer<typeof UserAttributesSchema>;
|
|
554
|
+
export declare const UserPanelRowSchema: z.ZodObject<{
|
|
555
|
+
type: z.ZodString;
|
|
556
|
+
attributes: z.ZodObject<{
|
|
557
|
+
created_at: z.ZodObject<{
|
|
558
|
+
day: z.ZodString;
|
|
559
|
+
}, z.core.$strip>;
|
|
560
|
+
deactivated_at: z.ZodNullable<z.ZodString>;
|
|
561
|
+
locale: z.ZodString;
|
|
562
|
+
count: z.ZodString;
|
|
563
|
+
roles: z.ZodObject<{
|
|
564
|
+
name: z.ZodNullable<z.ZodString>;
|
|
565
|
+
}, z.core.$strip>;
|
|
566
|
+
}, z.core.$strip>;
|
|
567
|
+
relationships: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
568
|
+
}, z.core.$strip>;
|
|
569
|
+
export type UserPanelRow = z.infer<typeof UserPanelRowSchema>;
|
|
570
|
+
export declare const UserSchema: z.ZodObject<{
|
|
571
|
+
id: z.ZodString;
|
|
572
|
+
attributes: z.ZodObject<{
|
|
573
|
+
name: z.ZodString;
|
|
574
|
+
username: z.ZodString;
|
|
575
|
+
email: z.ZodNullable<z.ZodString>;
|
|
576
|
+
birthdate: z.ZodNullable<z.ZodString>;
|
|
577
|
+
locale: z.ZodNullable<z.ZodString>;
|
|
578
|
+
last_login_at: z.ZodNullable<z.ZodString>;
|
|
579
|
+
last_integration_source: z.ZodNullable<z.ZodString>;
|
|
580
|
+
last_integration_time: z.ZodNullable<z.ZodString>;
|
|
581
|
+
deactivated_at: z.ZodNullable<z.ZodString>;
|
|
582
|
+
phone1: z.ZodNullable<z.ZodString>;
|
|
583
|
+
phone2: z.ZodNullable<z.ZodString>;
|
|
584
|
+
emergency_contact: z.ZodNullable<z.ZodString>;
|
|
585
|
+
emergency_phone: z.ZodNullable<z.ZodString>;
|
|
586
|
+
cpf: z.ZodNullable<z.ZodString>;
|
|
587
|
+
document_number: z.ZodNullable<z.ZodString>;
|
|
588
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
589
|
+
updated_at: z.ZodNullable<z.ZodString>;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
relationships: z.ZodObject<{
|
|
592
|
+
enterprise: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
593
|
+
id: z.ZodString;
|
|
594
|
+
attributes: z.ZodObject<{
|
|
595
|
+
name: z.ZodNullable<z.ZodString>;
|
|
596
|
+
cnpj: z.ZodNullable<z.ZodString>;
|
|
597
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
598
|
+
}, z.core.$strip>;
|
|
599
|
+
}, z.core.$strip>>>;
|
|
600
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
601
|
+
attributes: z.ZodObject<{
|
|
602
|
+
name: z.ZodString;
|
|
603
|
+
}, z.core.$strip>;
|
|
604
|
+
}, z.core.$strip>>>;
|
|
605
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
606
|
+
id: z.ZodString;
|
|
607
|
+
attributes: z.ZodObject<{
|
|
608
|
+
name: z.ZodString;
|
|
609
|
+
color: z.ZodNullable<z.ZodString>;
|
|
610
|
+
}, z.core.$strip>;
|
|
611
|
+
}, z.core.$strip>>>;
|
|
612
|
+
document: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
613
|
+
attributes: z.ZodObject<{
|
|
614
|
+
folder: z.ZodString;
|
|
615
|
+
}, z.core.$strip>;
|
|
616
|
+
}, z.core.$strip>>>;
|
|
617
|
+
}, z.core.$strip>;
|
|
618
|
+
}, z.core.$strip>;
|
|
619
|
+
export type User = z.infer<typeof UserSchema>;
|
|
620
|
+
export declare const SerializedUserSchema: z.ZodObject<{
|
|
621
|
+
type: z.ZodLiteral<"users">;
|
|
622
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
623
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
624
|
+
attributes: z.ZodObject<{
|
|
625
|
+
username: z.ZodString;
|
|
626
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
627
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
628
|
+
phone1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
629
|
+
phone2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
630
|
+
emergency_contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
631
|
+
emergency_phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
632
|
+
document_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
633
|
+
cpf: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
634
|
+
birthdate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
635
|
+
last_login_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
636
|
+
deactivated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
637
|
+
locale: z.ZodString;
|
|
638
|
+
user_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
639
|
+
last_integration_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
640
|
+
last_integration_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
641
|
+
created_at: z.ZodString;
|
|
642
|
+
updated_at: z.ZodString;
|
|
643
|
+
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
644
|
+
otp: z.ZodOptional<z.ZodBoolean>;
|
|
645
|
+
}, z.core.$strict>;
|
|
646
|
+
relationships: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
647
|
+
}, z.core.$strict>;
|
|
648
|
+
export type SerializedUser = z.infer<typeof SerializedUserSchema>;
|