@stefaninigo/security-client 1.2.0 → 1.2.1
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/generated/authentication/authentication.d.ts +22 -0
- package/dist/generated/authentication/authentication.js +55 -0
- package/dist/generated/authentication/authentication.js.map +1 -0
- package/dist/generated/bootstrap/bootstrap.d.ts +12 -0
- package/dist/generated/bootstrap/bootstrap.js +24 -0
- package/dist/generated/bootstrap/bootstrap.js.map +1 -0
- package/dist/generated/client-assignments/client-assignments.d.ts +24 -0
- package/dist/generated/client-assignments/client-assignments.js +50 -0
- package/dist/generated/client-assignments/client-assignments.js.map +1 -0
- package/dist/generated/credentials/credentials.d.ts +18 -0
- package/dist/generated/credentials/credentials.js +39 -0
- package/dist/generated/credentials/credentials.js.map +1 -0
- package/dist/generated/health/health.d.ts +11 -0
- package/dist/generated/health/health.js +21 -0
- package/dist/generated/health/health.js.map +1 -0
- package/dist/generated/location-tracking-deprecated/location-tracking-deprecated.d.ts +20 -0
- package/dist/generated/location-tracking-deprecated/location-tracking-deprecated.js +42 -0
- package/dist/generated/location-tracking-deprecated/location-tracking-deprecated.js.map +1 -0
- package/dist/generated/provider-client-assignments/provider-client-assignments.d.ts +20 -0
- package/dist/generated/provider-client-assignments/provider-client-assignments.js +42 -0
- package/dist/generated/provider-client-assignments/provider-client-assignments.js.map +1 -0
- package/dist/generated/providers/providers.d.ts +20 -0
- package/dist/generated/providers/providers.js +42 -0
- package/dist/generated/providers/providers.js.map +1 -0
- package/dist/generated/stefaniniGoServiceAPI.schemas.d.ts +963 -0
- package/dist/generated/stefaniniGoServiceAPI.schemas.js +169 -0
- package/dist/generated/stefaniniGoServiceAPI.schemas.js.map +1 -0
- package/dist/generated/users/users.d.ts +36 -0
- package/dist/generated/users/users.js +90 -0
- package/dist/generated/users/users.js.map +1 -0
- package/dist/guards/{security-auth.guard.d.ts → cognito-auth.guard.d.ts} +1 -3
- package/dist/guards/{security-auth.guard.js → cognito-auth.guard.js} +15 -29
- package/dist/guards/cognito-auth.guard.js.map +1 -0
- package/dist/guards/role.guard.js +0 -8
- package/dist/guards/role.guard.js.map +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/module/security-client.module.d.ts +0 -5
- package/dist/module/security-client.module.js +3 -29
- package/dist/module/security-client.module.js.map +1 -1
- package/dist/services/security-client.service.d.ts +0 -15
- package/dist/services/security-client.service.js +7 -95
- package/dist/services/security-client.service.js.map +1 -1
- package/dist/types/user.types.d.ts +0 -5
- package/dist/types/user.types.js +0 -1
- package/dist/types/user.types.js.map +1 -1
- package/dist/utils/mutator.d.ts +3 -0
- package/dist/utils/mutator.js +22 -0
- package/dist/utils/mutator.js.map +1 -0
- package/package.json +3 -4
- package/dist/decorators/public.decorator.d.ts +0 -2
- package/dist/decorators/public.decorator.js +0 -8
- package/dist/decorators/public.decorator.js.map +0 -1
- package/dist/guards/provider.guard.d.ts +0 -7
- package/dist/guards/provider.guard.js +0 -43
- package/dist/guards/provider.guard.js.map +0 -1
- package/dist/guards/security-auth.guard.js.map +0 -1
|
@@ -0,0 +1,963 @@
|
|
|
1
|
+
export interface UserLocation {
|
|
2
|
+
country?: string;
|
|
3
|
+
region?: string;
|
|
4
|
+
province?: string;
|
|
5
|
+
commune?: string;
|
|
6
|
+
address?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface UserProfile {
|
|
9
|
+
dniType?: string;
|
|
10
|
+
dniNumber?: string;
|
|
11
|
+
fullName?: string;
|
|
12
|
+
birthCountry?: string;
|
|
13
|
+
area?: string;
|
|
14
|
+
position?: string;
|
|
15
|
+
location?: UserLocation;
|
|
16
|
+
phone?: string;
|
|
17
|
+
language?: string;
|
|
18
|
+
avatarUrl?: string;
|
|
19
|
+
photoUrl?: string;
|
|
20
|
+
signatureUrl?: string;
|
|
21
|
+
credentialToken?: string;
|
|
22
|
+
credentialEnabled?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type UserRole = typeof UserRole[keyof typeof UserRole];
|
|
25
|
+
export declare const UserRole: {
|
|
26
|
+
readonly root: "root";
|
|
27
|
+
readonly admin: "admin";
|
|
28
|
+
readonly dispatcher: "dispatcher";
|
|
29
|
+
readonly client: "client";
|
|
30
|
+
readonly technician: "technician";
|
|
31
|
+
};
|
|
32
|
+
export type UserStatus = typeof UserStatus[keyof typeof UserStatus];
|
|
33
|
+
export declare const UserStatus: {
|
|
34
|
+
readonly active: "active";
|
|
35
|
+
readonly pending: "pending";
|
|
36
|
+
readonly blocked: "blocked";
|
|
37
|
+
};
|
|
38
|
+
export interface User {
|
|
39
|
+
id: string;
|
|
40
|
+
email: string;
|
|
41
|
+
role: UserRole;
|
|
42
|
+
providerId?: string;
|
|
43
|
+
status: UserStatus;
|
|
44
|
+
cognitoSub?: string;
|
|
45
|
+
profile?: UserProfile;
|
|
46
|
+
lastLogin?: string;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
}
|
|
50
|
+
export interface UserLocationDto {
|
|
51
|
+
country?: string;
|
|
52
|
+
region?: string;
|
|
53
|
+
province?: string;
|
|
54
|
+
commune?: string;
|
|
55
|
+
address?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface UserProfileDto {
|
|
58
|
+
dniType?: string;
|
|
59
|
+
dniNumber?: string;
|
|
60
|
+
fullName?: string;
|
|
61
|
+
birthCountry?: string;
|
|
62
|
+
area?: string;
|
|
63
|
+
position?: string;
|
|
64
|
+
location?: UserLocationDto;
|
|
65
|
+
phone?: string;
|
|
66
|
+
language?: string;
|
|
67
|
+
avatarUrl?: string;
|
|
68
|
+
photoUrl?: string;
|
|
69
|
+
signatureUrl?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface CreateRootUserDto {
|
|
72
|
+
email: string;
|
|
73
|
+
profile?: UserProfileDto;
|
|
74
|
+
}
|
|
75
|
+
export interface ValidationErrorDto {
|
|
76
|
+
path: string;
|
|
77
|
+
code: string;
|
|
78
|
+
message: string;
|
|
79
|
+
}
|
|
80
|
+
export interface ProblemDetailsDto {
|
|
81
|
+
type: string;
|
|
82
|
+
title: string;
|
|
83
|
+
status: number;
|
|
84
|
+
detail: string;
|
|
85
|
+
instance: string;
|
|
86
|
+
errors?: ValidationErrorDto[];
|
|
87
|
+
}
|
|
88
|
+
export interface ProviderInfo {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
alias: string;
|
|
92
|
+
status: string;
|
|
93
|
+
}
|
|
94
|
+
export type UserWithProviderRole = typeof UserWithProviderRole[keyof typeof UserWithProviderRole];
|
|
95
|
+
export declare const UserWithProviderRole: {
|
|
96
|
+
readonly root: "root";
|
|
97
|
+
readonly admin: "admin";
|
|
98
|
+
readonly dispatcher: "dispatcher";
|
|
99
|
+
readonly client: "client";
|
|
100
|
+
readonly technician: "technician";
|
|
101
|
+
};
|
|
102
|
+
export type UserWithProviderStatus = typeof UserWithProviderStatus[keyof typeof UserWithProviderStatus];
|
|
103
|
+
export declare const UserWithProviderStatus: {
|
|
104
|
+
readonly active: "active";
|
|
105
|
+
readonly pending: "pending";
|
|
106
|
+
readonly blocked: "blocked";
|
|
107
|
+
};
|
|
108
|
+
export interface UserWithProvider {
|
|
109
|
+
id: string;
|
|
110
|
+
email: string;
|
|
111
|
+
role: UserWithProviderRole;
|
|
112
|
+
providerId?: string;
|
|
113
|
+
provider?: ProviderInfo | null;
|
|
114
|
+
status: UserWithProviderStatus;
|
|
115
|
+
cognitoSub?: string;
|
|
116
|
+
profile?: UserProfile;
|
|
117
|
+
lastLogin?: string;
|
|
118
|
+
createdAt: string;
|
|
119
|
+
updatedAt: string;
|
|
120
|
+
}
|
|
121
|
+
export type CreateUserDtoRole = typeof CreateUserDtoRole[keyof typeof CreateUserDtoRole];
|
|
122
|
+
export declare const CreateUserDtoRole: {
|
|
123
|
+
readonly root: "root";
|
|
124
|
+
readonly admin: "admin";
|
|
125
|
+
readonly dispatcher: "dispatcher";
|
|
126
|
+
readonly client: "client";
|
|
127
|
+
readonly technician: "technician";
|
|
128
|
+
};
|
|
129
|
+
export interface CreateUserDto {
|
|
130
|
+
email: string;
|
|
131
|
+
role: CreateUserDtoRole;
|
|
132
|
+
providerId?: string;
|
|
133
|
+
profile?: UserProfileDto;
|
|
134
|
+
}
|
|
135
|
+
export type ChangeRoleDtoNewRole = typeof ChangeRoleDtoNewRole[keyof typeof ChangeRoleDtoNewRole];
|
|
136
|
+
export declare const ChangeRoleDtoNewRole: {
|
|
137
|
+
readonly root: "root";
|
|
138
|
+
readonly admin: "admin";
|
|
139
|
+
readonly dispatcher: "dispatcher";
|
|
140
|
+
readonly client: "client";
|
|
141
|
+
readonly technician: "technician";
|
|
142
|
+
};
|
|
143
|
+
export interface ChangeRoleDto {
|
|
144
|
+
newRole: ChangeRoleDtoNewRole;
|
|
145
|
+
}
|
|
146
|
+
export interface AdminResetPasswordDto {
|
|
147
|
+
newPassword?: string;
|
|
148
|
+
forceChangeOnNextLogin?: boolean;
|
|
149
|
+
sendEmail?: boolean;
|
|
150
|
+
}
|
|
151
|
+
export interface AdminResetPasswordResponseDto {
|
|
152
|
+
message: string;
|
|
153
|
+
temporaryPassword?: string;
|
|
154
|
+
emailSent: boolean;
|
|
155
|
+
forceChangeOnNextLogin: boolean;
|
|
156
|
+
}
|
|
157
|
+
export interface TransferRootDto {
|
|
158
|
+
confirmationCode: string;
|
|
159
|
+
}
|
|
160
|
+
export type UpdateUserDtoStatus = typeof UpdateUserDtoStatus[keyof typeof UpdateUserDtoStatus];
|
|
161
|
+
export declare const UpdateUserDtoStatus: {
|
|
162
|
+
readonly active: "active";
|
|
163
|
+
readonly pending: "pending";
|
|
164
|
+
readonly blocked: "blocked";
|
|
165
|
+
};
|
|
166
|
+
export interface UpdateUserDto {
|
|
167
|
+
status?: UpdateUserDtoStatus;
|
|
168
|
+
profile?: UserProfileDto;
|
|
169
|
+
lastLogin?: string;
|
|
170
|
+
cognitoSub?: string;
|
|
171
|
+
providerId?: string;
|
|
172
|
+
}
|
|
173
|
+
export interface BulkUploadResultDto {
|
|
174
|
+
total: number;
|
|
175
|
+
created: number;
|
|
176
|
+
updated: number;
|
|
177
|
+
skipped: number;
|
|
178
|
+
failed: number;
|
|
179
|
+
errors: string[];
|
|
180
|
+
createdIds: string[];
|
|
181
|
+
updatedIds: string[];
|
|
182
|
+
}
|
|
183
|
+
export type ProviderStatus = typeof ProviderStatus[keyof typeof ProviderStatus];
|
|
184
|
+
export declare const ProviderStatus: {
|
|
185
|
+
readonly active: "active";
|
|
186
|
+
readonly suspended: "suspended";
|
|
187
|
+
};
|
|
188
|
+
export interface Provider {
|
|
189
|
+
id: string;
|
|
190
|
+
name: string;
|
|
191
|
+
alias: string;
|
|
192
|
+
contactEmail: string;
|
|
193
|
+
status: ProviderStatus;
|
|
194
|
+
createdBy: string;
|
|
195
|
+
createdAt: string;
|
|
196
|
+
updatedAt: string;
|
|
197
|
+
}
|
|
198
|
+
export interface CreateProviderDto {
|
|
199
|
+
name: string;
|
|
200
|
+
alias: string;
|
|
201
|
+
contactEmail: string;
|
|
202
|
+
}
|
|
203
|
+
export type UpdateProviderDtoStatus = typeof UpdateProviderDtoStatus[keyof typeof UpdateProviderDtoStatus];
|
|
204
|
+
export declare const UpdateProviderDtoStatus: {
|
|
205
|
+
readonly active: "active";
|
|
206
|
+
readonly suspended: "suspended";
|
|
207
|
+
};
|
|
208
|
+
export interface UpdateProviderDto {
|
|
209
|
+
name?: string;
|
|
210
|
+
alias?: string;
|
|
211
|
+
contactEmail?: string;
|
|
212
|
+
status?: UpdateProviderDtoStatus;
|
|
213
|
+
}
|
|
214
|
+
export type ClientAssignmentPermission = typeof ClientAssignmentPermission[keyof typeof ClientAssignmentPermission];
|
|
215
|
+
export declare const ClientAssignmentPermission: {
|
|
216
|
+
readonly read: "read";
|
|
217
|
+
readonly write: "write";
|
|
218
|
+
readonly admin: "admin";
|
|
219
|
+
};
|
|
220
|
+
export type ClientAssignmentStatus = typeof ClientAssignmentStatus[keyof typeof ClientAssignmentStatus];
|
|
221
|
+
export declare const ClientAssignmentStatus: {
|
|
222
|
+
readonly active: "active";
|
|
223
|
+
readonly suspended: "suspended";
|
|
224
|
+
readonly expired: "expired";
|
|
225
|
+
};
|
|
226
|
+
export interface ClientAssignment {
|
|
227
|
+
id: string;
|
|
228
|
+
userId: string;
|
|
229
|
+
clientId: string;
|
|
230
|
+
permission: ClientAssignmentPermission;
|
|
231
|
+
assignedBy: string;
|
|
232
|
+
expiresAt?: string;
|
|
233
|
+
status: ClientAssignmentStatus;
|
|
234
|
+
createdAt: string;
|
|
235
|
+
updatedAt: string;
|
|
236
|
+
}
|
|
237
|
+
export type CreateClientAssignmentDtoPermission = typeof CreateClientAssignmentDtoPermission[keyof typeof CreateClientAssignmentDtoPermission];
|
|
238
|
+
export declare const CreateClientAssignmentDtoPermission: {
|
|
239
|
+
readonly read: "read";
|
|
240
|
+
readonly write: "write";
|
|
241
|
+
readonly admin: "admin";
|
|
242
|
+
};
|
|
243
|
+
export interface CreateClientAssignmentDto {
|
|
244
|
+
userId: string;
|
|
245
|
+
clientId: string;
|
|
246
|
+
permission: CreateClientAssignmentDtoPermission;
|
|
247
|
+
expiresAt?: string;
|
|
248
|
+
}
|
|
249
|
+
export type UpdateClientAssignmentDtoPermission = typeof UpdateClientAssignmentDtoPermission[keyof typeof UpdateClientAssignmentDtoPermission];
|
|
250
|
+
export declare const UpdateClientAssignmentDtoPermission: {
|
|
251
|
+
readonly read: "read";
|
|
252
|
+
readonly write: "write";
|
|
253
|
+
readonly admin: "admin";
|
|
254
|
+
};
|
|
255
|
+
export type UpdateClientAssignmentDtoStatus = typeof UpdateClientAssignmentDtoStatus[keyof typeof UpdateClientAssignmentDtoStatus];
|
|
256
|
+
export declare const UpdateClientAssignmentDtoStatus: {
|
|
257
|
+
readonly active: "active";
|
|
258
|
+
readonly suspended: "suspended";
|
|
259
|
+
readonly expired: "expired";
|
|
260
|
+
};
|
|
261
|
+
export interface UpdateClientAssignmentDto {
|
|
262
|
+
permission?: UpdateClientAssignmentDtoPermission;
|
|
263
|
+
expiresAt?: string;
|
|
264
|
+
status?: UpdateClientAssignmentDtoStatus;
|
|
265
|
+
}
|
|
266
|
+
export type ProviderClientAssignmentStatus = typeof ProviderClientAssignmentStatus[keyof typeof ProviderClientAssignmentStatus];
|
|
267
|
+
export declare const ProviderClientAssignmentStatus: {
|
|
268
|
+
readonly active: "active";
|
|
269
|
+
readonly suspended: "suspended";
|
|
270
|
+
readonly terminated: "terminated";
|
|
271
|
+
};
|
|
272
|
+
export type ProviderClientAssignmentMetadata = {
|
|
273
|
+
[key: string]: unknown;
|
|
274
|
+
};
|
|
275
|
+
export interface ProviderClientAssignment {
|
|
276
|
+
id: string;
|
|
277
|
+
providerId: string;
|
|
278
|
+
clientId: string;
|
|
279
|
+
assignedBy: string;
|
|
280
|
+
status: ProviderClientAssignmentStatus;
|
|
281
|
+
startDate: string;
|
|
282
|
+
endDate?: string;
|
|
283
|
+
metadata?: ProviderClientAssignmentMetadata;
|
|
284
|
+
createdAt: string;
|
|
285
|
+
updatedAt: string;
|
|
286
|
+
}
|
|
287
|
+
export type CreateProviderClientAssignmentDtoMetadata = {
|
|
288
|
+
[key: string]: unknown;
|
|
289
|
+
};
|
|
290
|
+
export interface CreateProviderClientAssignmentDto {
|
|
291
|
+
providerId: string;
|
|
292
|
+
clientId: string;
|
|
293
|
+
startDate?: string;
|
|
294
|
+
endDate?: string;
|
|
295
|
+
metadata?: CreateProviderClientAssignmentDtoMetadata;
|
|
296
|
+
}
|
|
297
|
+
export type UpdateProviderClientAssignmentDtoStatus = typeof UpdateProviderClientAssignmentDtoStatus[keyof typeof UpdateProviderClientAssignmentDtoStatus];
|
|
298
|
+
export declare const UpdateProviderClientAssignmentDtoStatus: {
|
|
299
|
+
readonly active: "active";
|
|
300
|
+
readonly suspended: "suspended";
|
|
301
|
+
readonly terminated: "terminated";
|
|
302
|
+
};
|
|
303
|
+
export type UpdateProviderClientAssignmentDtoMetadata = {
|
|
304
|
+
[key: string]: unknown;
|
|
305
|
+
};
|
|
306
|
+
export interface UpdateProviderClientAssignmentDto {
|
|
307
|
+
status?: UpdateProviderClientAssignmentDtoStatus;
|
|
308
|
+
startDate?: string;
|
|
309
|
+
endDate?: string;
|
|
310
|
+
metadata?: UpdateProviderClientAssignmentDtoMetadata;
|
|
311
|
+
}
|
|
312
|
+
export interface LoginDto {
|
|
313
|
+
email: string;
|
|
314
|
+
password: string;
|
|
315
|
+
}
|
|
316
|
+
export interface CompleteNewPasswordDto {
|
|
317
|
+
email: string;
|
|
318
|
+
newPassword: string;
|
|
319
|
+
session: string;
|
|
320
|
+
}
|
|
321
|
+
export interface ConfirmRegistrationDto {
|
|
322
|
+
email: string;
|
|
323
|
+
code: string;
|
|
324
|
+
}
|
|
325
|
+
export interface ForgotPasswordDto {
|
|
326
|
+
email: string;
|
|
327
|
+
}
|
|
328
|
+
export interface ResetPasswordDto {
|
|
329
|
+
email: string;
|
|
330
|
+
code: string;
|
|
331
|
+
newPassword: string;
|
|
332
|
+
}
|
|
333
|
+
export interface RefreshTokenDto {
|
|
334
|
+
refreshToken: string;
|
|
335
|
+
email?: string;
|
|
336
|
+
}
|
|
337
|
+
export interface ChangePasswordDto {
|
|
338
|
+
currentPassword: string;
|
|
339
|
+
newPassword: string;
|
|
340
|
+
}
|
|
341
|
+
export type CreateLocationTrackDtoAccuracy = {
|
|
342
|
+
[key: string]: unknown;
|
|
343
|
+
} | null;
|
|
344
|
+
export type CreateLocationTrackDtoSpeed = {
|
|
345
|
+
[key: string]: unknown;
|
|
346
|
+
} | null;
|
|
347
|
+
export type CreateLocationTrackDtoHeading = {
|
|
348
|
+
[key: string]: unknown;
|
|
349
|
+
} | null;
|
|
350
|
+
export type CreateLocationTrackDtoSource = typeof CreateLocationTrackDtoSource[keyof typeof CreateLocationTrackDtoSource];
|
|
351
|
+
export declare const CreateLocationTrackDtoSource: {
|
|
352
|
+
readonly manual: "manual";
|
|
353
|
+
readonly auto: "auto";
|
|
354
|
+
readonly state_change: "state_change";
|
|
355
|
+
};
|
|
356
|
+
export type CreateLocationTrackDtoMetadata = {
|
|
357
|
+
[key: string]: unknown;
|
|
358
|
+
};
|
|
359
|
+
export interface CreateLocationTrackDto {
|
|
360
|
+
latitude: number;
|
|
361
|
+
longitude: number;
|
|
362
|
+
accuracy?: CreateLocationTrackDtoAccuracy;
|
|
363
|
+
speed?: CreateLocationTrackDtoSpeed;
|
|
364
|
+
heading?: CreateLocationTrackDtoHeading;
|
|
365
|
+
activeTicketId?: string;
|
|
366
|
+
ticketStateId?: string;
|
|
367
|
+
source?: CreateLocationTrackDtoSource;
|
|
368
|
+
metadata?: CreateLocationTrackDtoMetadata;
|
|
369
|
+
}
|
|
370
|
+
export interface LocationTrackResponseDto {
|
|
371
|
+
id: string;
|
|
372
|
+
userId: string;
|
|
373
|
+
userEmail: string;
|
|
374
|
+
clientId: string;
|
|
375
|
+
activeTicketId?: string;
|
|
376
|
+
ticketStateId?: string;
|
|
377
|
+
latitude: number;
|
|
378
|
+
longitude: number;
|
|
379
|
+
accuracy?: number;
|
|
380
|
+
source: string;
|
|
381
|
+
trackDate: string;
|
|
382
|
+
timestamp: string;
|
|
383
|
+
}
|
|
384
|
+
export type GeoPointType = typeof GeoPointType[keyof typeof GeoPointType];
|
|
385
|
+
export declare const GeoPointType: {
|
|
386
|
+
readonly Point: "Point";
|
|
387
|
+
};
|
|
388
|
+
export interface GeoPoint {
|
|
389
|
+
type: GeoPointType;
|
|
390
|
+
coordinates: number[];
|
|
391
|
+
}
|
|
392
|
+
export type LocationTrackHeading = {
|
|
393
|
+
[key: string]: unknown;
|
|
394
|
+
} | null;
|
|
395
|
+
export type LocationTrackSource = typeof LocationTrackSource[keyof typeof LocationTrackSource];
|
|
396
|
+
export declare const LocationTrackSource: {
|
|
397
|
+
readonly manual: "manual";
|
|
398
|
+
readonly auto: "auto";
|
|
399
|
+
readonly state_change: "state_change";
|
|
400
|
+
};
|
|
401
|
+
export type LocationTrackMetadata = {
|
|
402
|
+
[key: string]: unknown;
|
|
403
|
+
};
|
|
404
|
+
export interface LocationTrack {
|
|
405
|
+
id: string;
|
|
406
|
+
userId: string;
|
|
407
|
+
userEmail: string;
|
|
408
|
+
clientId: string;
|
|
409
|
+
activeTicketId?: string;
|
|
410
|
+
ticketStateId?: string;
|
|
411
|
+
location: GeoPoint;
|
|
412
|
+
latitude: number;
|
|
413
|
+
longitude: number;
|
|
414
|
+
accuracy?: number;
|
|
415
|
+
speed?: number;
|
|
416
|
+
heading?: LocationTrackHeading;
|
|
417
|
+
source: LocationTrackSource;
|
|
418
|
+
trackDate: string;
|
|
419
|
+
timestamp: string;
|
|
420
|
+
metadata?: LocationTrackMetadata;
|
|
421
|
+
createdAt: string;
|
|
422
|
+
}
|
|
423
|
+
export interface DailyRoute {
|
|
424
|
+
date: string;
|
|
425
|
+
userId: string;
|
|
426
|
+
points: LocationTrack[];
|
|
427
|
+
totalPoints: number;
|
|
428
|
+
totalDistanceKm?: number;
|
|
429
|
+
ticketIds: string[];
|
|
430
|
+
}
|
|
431
|
+
export interface TicketRoute {
|
|
432
|
+
ticketId: string;
|
|
433
|
+
userId: string;
|
|
434
|
+
points: LocationTrack[];
|
|
435
|
+
startPoint?: LocationTrack;
|
|
436
|
+
endPoint?: LocationTrack;
|
|
437
|
+
distanceKm?: number;
|
|
438
|
+
}
|
|
439
|
+
export interface TechnicianCredentialDto {
|
|
440
|
+
photoUrl: string;
|
|
441
|
+
signatureUrl: string;
|
|
442
|
+
providerName: string;
|
|
443
|
+
providerAlias: string;
|
|
444
|
+
credentialToken: string;
|
|
445
|
+
verificationUrl: string;
|
|
446
|
+
credentialEnabled: boolean;
|
|
447
|
+
roleLabel: string;
|
|
448
|
+
}
|
|
449
|
+
export type UploadFileResponseDtoType = typeof UploadFileResponseDtoType[keyof typeof UploadFileResponseDtoType];
|
|
450
|
+
export declare const UploadFileResponseDtoType: {
|
|
451
|
+
readonly signature: "signature";
|
|
452
|
+
readonly photo: "photo";
|
|
453
|
+
};
|
|
454
|
+
export interface UploadFileResponseDto {
|
|
455
|
+
url: string;
|
|
456
|
+
type: UploadFileResponseDtoType;
|
|
457
|
+
message: string;
|
|
458
|
+
}
|
|
459
|
+
export interface UpdateCredentialStatusDto {
|
|
460
|
+
enabled: boolean;
|
|
461
|
+
}
|
|
462
|
+
export type PublicVerificationResponseDtoStatus = typeof PublicVerificationResponseDtoStatus[keyof typeof PublicVerificationResponseDtoStatus];
|
|
463
|
+
export declare const PublicVerificationResponseDtoStatus: {
|
|
464
|
+
readonly active: "active";
|
|
465
|
+
readonly inactive: "inactive";
|
|
466
|
+
readonly not_found: "not_found";
|
|
467
|
+
};
|
|
468
|
+
export interface PublicVerificationResponseDto {
|
|
469
|
+
valid: boolean;
|
|
470
|
+
status: PublicVerificationResponseDtoStatus;
|
|
471
|
+
providerName: string;
|
|
472
|
+
roleLabel: string;
|
|
473
|
+
verifiedAt: string;
|
|
474
|
+
message: string;
|
|
475
|
+
}
|
|
476
|
+
export type BootstrapControllerCreateRootUser201Message = {
|
|
477
|
+
user?: User;
|
|
478
|
+
temporaryPassword?: string;
|
|
479
|
+
message?: string;
|
|
480
|
+
};
|
|
481
|
+
export type BootstrapControllerCreateRootUser201 = {
|
|
482
|
+
success?: boolean;
|
|
483
|
+
message?: BootstrapControllerCreateRootUser201Message;
|
|
484
|
+
};
|
|
485
|
+
export type BootstrapControllerDeleteRootUserParams = {
|
|
486
|
+
email: string;
|
|
487
|
+
};
|
|
488
|
+
export type BootstrapControllerDeleteRootUser204Message = {
|
|
489
|
+
message?: string;
|
|
490
|
+
};
|
|
491
|
+
export type BootstrapControllerDeleteRootUser204 = {
|
|
492
|
+
success?: boolean;
|
|
493
|
+
message?: BootstrapControllerDeleteRootUser204Message;
|
|
494
|
+
};
|
|
495
|
+
export type BootstrapControllerCheckBootstrapStatus200Message = {
|
|
496
|
+
needsBootstrap?: boolean;
|
|
497
|
+
rootUsersCount?: number;
|
|
498
|
+
};
|
|
499
|
+
export type BootstrapControllerCheckBootstrapStatus200 = {
|
|
500
|
+
success?: boolean;
|
|
501
|
+
message?: BootstrapControllerCheckBootstrapStatus200Message;
|
|
502
|
+
};
|
|
503
|
+
export type UsersControllerCreate201 = {
|
|
504
|
+
success?: boolean;
|
|
505
|
+
message?: User;
|
|
506
|
+
};
|
|
507
|
+
export type UsersControllerFindAllParams = {
|
|
508
|
+
page?: number;
|
|
509
|
+
limit?: number;
|
|
510
|
+
search?: string;
|
|
511
|
+
textSearch?: string;
|
|
512
|
+
sortBy?: string;
|
|
513
|
+
sortOrder?: UsersControllerFindAllSortOrder;
|
|
514
|
+
role?: UsersControllerFindAllRole;
|
|
515
|
+
providerId?: string;
|
|
516
|
+
status?: UsersControllerFindAllStatus;
|
|
517
|
+
forTicketTransfer?: boolean;
|
|
518
|
+
};
|
|
519
|
+
export type UsersControllerFindAllSortOrder = typeof UsersControllerFindAllSortOrder[keyof typeof UsersControllerFindAllSortOrder];
|
|
520
|
+
export declare const UsersControllerFindAllSortOrder: {
|
|
521
|
+
readonly default: "default";
|
|
522
|
+
readonly asc: "asc";
|
|
523
|
+
readonly desc: "desc";
|
|
524
|
+
};
|
|
525
|
+
export type UsersControllerFindAllRole = typeof UsersControllerFindAllRole[keyof typeof UsersControllerFindAllRole];
|
|
526
|
+
export declare const UsersControllerFindAllRole: {
|
|
527
|
+
readonly root: "root";
|
|
528
|
+
readonly admin: "admin";
|
|
529
|
+
readonly dispatcher: "dispatcher";
|
|
530
|
+
readonly client: "client";
|
|
531
|
+
readonly technician: "technician";
|
|
532
|
+
};
|
|
533
|
+
export type UsersControllerFindAllStatus = typeof UsersControllerFindAllStatus[keyof typeof UsersControllerFindAllStatus];
|
|
534
|
+
export declare const UsersControllerFindAllStatus: {
|
|
535
|
+
readonly active: "active";
|
|
536
|
+
readonly pending: "pending";
|
|
537
|
+
readonly blocked: "blocked";
|
|
538
|
+
};
|
|
539
|
+
export type UsersControllerFindAll200MessagePagination = {
|
|
540
|
+
page?: number;
|
|
541
|
+
limit?: number;
|
|
542
|
+
total?: number;
|
|
543
|
+
totalPages?: number;
|
|
544
|
+
};
|
|
545
|
+
export type UsersControllerFindAll200Message = {
|
|
546
|
+
data?: User[];
|
|
547
|
+
pagination?: UsersControllerFindAll200MessagePagination;
|
|
548
|
+
};
|
|
549
|
+
export type UsersControllerFindAll200 = {
|
|
550
|
+
success?: boolean;
|
|
551
|
+
message?: UsersControllerFindAll200Message;
|
|
552
|
+
};
|
|
553
|
+
export type UsersControllerFindAssignableParams = {
|
|
554
|
+
page?: number;
|
|
555
|
+
limit?: number;
|
|
556
|
+
search?: string;
|
|
557
|
+
textSearch: string;
|
|
558
|
+
clientId?: string;
|
|
559
|
+
excludeProviderId?: string;
|
|
560
|
+
roles?: string;
|
|
561
|
+
};
|
|
562
|
+
export type UsersControllerFindAssignable200MessagePagination = {
|
|
563
|
+
page?: number;
|
|
564
|
+
limit?: number;
|
|
565
|
+
total?: number;
|
|
566
|
+
totalPages?: number;
|
|
567
|
+
};
|
|
568
|
+
export type UsersControllerFindAssignable200Message = {
|
|
569
|
+
data?: User[];
|
|
570
|
+
pagination?: UsersControllerFindAssignable200MessagePagination;
|
|
571
|
+
};
|
|
572
|
+
export type UsersControllerFindAssignable200 = {
|
|
573
|
+
success?: boolean;
|
|
574
|
+
message?: UsersControllerFindAssignable200Message;
|
|
575
|
+
};
|
|
576
|
+
export type UsersControllerFindByProviderParams = {
|
|
577
|
+
page?: number;
|
|
578
|
+
limit?: number;
|
|
579
|
+
};
|
|
580
|
+
export type UsersControllerFindByProvider200MessagePagination = {
|
|
581
|
+
page?: number;
|
|
582
|
+
limit?: number;
|
|
583
|
+
total?: number;
|
|
584
|
+
totalPages?: number;
|
|
585
|
+
};
|
|
586
|
+
export type UsersControllerFindByProvider200Message = {
|
|
587
|
+
data?: User[];
|
|
588
|
+
pagination?: UsersControllerFindByProvider200MessagePagination;
|
|
589
|
+
};
|
|
590
|
+
export type UsersControllerFindByProvider200 = {
|
|
591
|
+
success?: boolean;
|
|
592
|
+
message?: UsersControllerFindByProvider200Message;
|
|
593
|
+
};
|
|
594
|
+
export type UsersControllerFindByRoleParams = {
|
|
595
|
+
providerId?: string;
|
|
596
|
+
page?: number;
|
|
597
|
+
limit?: number;
|
|
598
|
+
};
|
|
599
|
+
export type UsersControllerFindByRole200MessagePagination = {
|
|
600
|
+
page?: number;
|
|
601
|
+
limit?: number;
|
|
602
|
+
total?: number;
|
|
603
|
+
totalPages?: number;
|
|
604
|
+
};
|
|
605
|
+
export type UsersControllerFindByRole200Message = {
|
|
606
|
+
data?: User[];
|
|
607
|
+
pagination?: UsersControllerFindByRole200MessagePagination;
|
|
608
|
+
};
|
|
609
|
+
export type UsersControllerFindByRole200 = {
|
|
610
|
+
success?: boolean;
|
|
611
|
+
message?: UsersControllerFindByRole200Message;
|
|
612
|
+
};
|
|
613
|
+
export type UsersControllerChangeRole200 = {
|
|
614
|
+
success?: boolean;
|
|
615
|
+
message?: User;
|
|
616
|
+
};
|
|
617
|
+
export type UsersControllerVerifyUserEmail200 = {
|
|
618
|
+
success?: boolean;
|
|
619
|
+
message?: string;
|
|
620
|
+
};
|
|
621
|
+
export type UsersControllerTransferRoot200Message = {
|
|
622
|
+
message?: string;
|
|
623
|
+
newRoot?: User;
|
|
624
|
+
};
|
|
625
|
+
export type UsersControllerTransferRoot200 = {
|
|
626
|
+
success?: boolean;
|
|
627
|
+
message?: UsersControllerTransferRoot200Message;
|
|
628
|
+
};
|
|
629
|
+
export type UsersControllerGetTemplateParams = {
|
|
630
|
+
format?: UsersControllerGetTemplateFormat;
|
|
631
|
+
};
|
|
632
|
+
export type UsersControllerGetTemplateFormat = typeof UsersControllerGetTemplateFormat[keyof typeof UsersControllerGetTemplateFormat];
|
|
633
|
+
export declare const UsersControllerGetTemplateFormat: {
|
|
634
|
+
readonly json: "json";
|
|
635
|
+
readonly csv: "csv";
|
|
636
|
+
};
|
|
637
|
+
export type UsersControllerGetTemplate200Headers = {
|
|
638
|
+
[key: string]: unknown;
|
|
639
|
+
};
|
|
640
|
+
export type UsersControllerGetTemplate200 = {
|
|
641
|
+
columns?: string[];
|
|
642
|
+
headers?: UsersControllerGetTemplate200Headers;
|
|
643
|
+
examples?: unknown;
|
|
644
|
+
};
|
|
645
|
+
export type UsersControllerUpdate200 = {
|
|
646
|
+
success?: boolean;
|
|
647
|
+
message?: User;
|
|
648
|
+
};
|
|
649
|
+
export type UsersControllerBulkUploadParams = {
|
|
650
|
+
mode?: UsersControllerBulkUploadMode;
|
|
651
|
+
duplicateKey?: UsersControllerBulkUploadDuplicateKey;
|
|
652
|
+
skipDuplicates?: boolean;
|
|
653
|
+
};
|
|
654
|
+
export type UsersControllerBulkUploadMode = typeof UsersControllerBulkUploadMode[keyof typeof UsersControllerBulkUploadMode];
|
|
655
|
+
export declare const UsersControllerBulkUploadMode: {
|
|
656
|
+
readonly create: "create";
|
|
657
|
+
readonly upsert: "upsert";
|
|
658
|
+
};
|
|
659
|
+
export type UsersControllerBulkUploadDuplicateKey = typeof UsersControllerBulkUploadDuplicateKey[keyof typeof UsersControllerBulkUploadDuplicateKey];
|
|
660
|
+
export declare const UsersControllerBulkUploadDuplicateKey: {
|
|
661
|
+
readonly email: "email";
|
|
662
|
+
};
|
|
663
|
+
export type UsersControllerBulkUploadBody = {
|
|
664
|
+
file?: Blob;
|
|
665
|
+
};
|
|
666
|
+
export type ProvidersControllerCreate201 = {
|
|
667
|
+
success?: boolean;
|
|
668
|
+
message?: Provider;
|
|
669
|
+
};
|
|
670
|
+
export type ProvidersControllerFindAllParams = {
|
|
671
|
+
page?: number;
|
|
672
|
+
limit?: number;
|
|
673
|
+
search?: string;
|
|
674
|
+
textSearch?: string;
|
|
675
|
+
status?: ProvidersControllerFindAllStatus;
|
|
676
|
+
};
|
|
677
|
+
export type ProvidersControllerFindAllStatus = typeof ProvidersControllerFindAllStatus[keyof typeof ProvidersControllerFindAllStatus];
|
|
678
|
+
export declare const ProvidersControllerFindAllStatus: {
|
|
679
|
+
readonly active: "active";
|
|
680
|
+
readonly suspended: "suspended";
|
|
681
|
+
};
|
|
682
|
+
export type ProvidersControllerFindAll200MessagePagination = {
|
|
683
|
+
page?: number;
|
|
684
|
+
limit?: number;
|
|
685
|
+
total?: number;
|
|
686
|
+
totalPages?: number;
|
|
687
|
+
};
|
|
688
|
+
export type ProvidersControllerFindAll200Message = {
|
|
689
|
+
data?: Provider[];
|
|
690
|
+
pagination?: ProvidersControllerFindAll200MessagePagination;
|
|
691
|
+
};
|
|
692
|
+
export type ProvidersControllerFindAll200 = {
|
|
693
|
+
success?: boolean;
|
|
694
|
+
message?: ProvidersControllerFindAll200Message;
|
|
695
|
+
};
|
|
696
|
+
export type ProvidersControllerFindOne200 = {
|
|
697
|
+
success?: boolean;
|
|
698
|
+
message?: Provider;
|
|
699
|
+
};
|
|
700
|
+
export type ProvidersControllerUpdate200 = {
|
|
701
|
+
success?: boolean;
|
|
702
|
+
message?: Provider;
|
|
703
|
+
};
|
|
704
|
+
export type ProvidersControllerSuspend200 = {
|
|
705
|
+
success?: boolean;
|
|
706
|
+
message?: Provider;
|
|
707
|
+
};
|
|
708
|
+
export type ProvidersControllerActivate200 = {
|
|
709
|
+
success?: boolean;
|
|
710
|
+
message?: Provider;
|
|
711
|
+
};
|
|
712
|
+
export type ClientAssignmentsControllerCreate201 = {
|
|
713
|
+
success?: boolean;
|
|
714
|
+
message?: ClientAssignment;
|
|
715
|
+
};
|
|
716
|
+
export type ClientAssignmentsControllerFindAllParams = {
|
|
717
|
+
page?: number;
|
|
718
|
+
limit?: number;
|
|
719
|
+
userId?: string;
|
|
720
|
+
clientId?: string;
|
|
721
|
+
permission?: ClientAssignmentsControllerFindAllPermission;
|
|
722
|
+
status?: ClientAssignmentsControllerFindAllStatus;
|
|
723
|
+
};
|
|
724
|
+
export type ClientAssignmentsControllerFindAllPermission = typeof ClientAssignmentsControllerFindAllPermission[keyof typeof ClientAssignmentsControllerFindAllPermission];
|
|
725
|
+
export declare const ClientAssignmentsControllerFindAllPermission: {
|
|
726
|
+
readonly read: "read";
|
|
727
|
+
readonly write: "write";
|
|
728
|
+
readonly admin: "admin";
|
|
729
|
+
};
|
|
730
|
+
export type ClientAssignmentsControllerFindAllStatus = typeof ClientAssignmentsControllerFindAllStatus[keyof typeof ClientAssignmentsControllerFindAllStatus];
|
|
731
|
+
export declare const ClientAssignmentsControllerFindAllStatus: {
|
|
732
|
+
readonly active: "active";
|
|
733
|
+
readonly suspended: "suspended";
|
|
734
|
+
readonly expired: "expired";
|
|
735
|
+
};
|
|
736
|
+
export type ClientAssignmentsControllerFindAll200MessagePagination = {
|
|
737
|
+
page?: number;
|
|
738
|
+
limit?: number;
|
|
739
|
+
total?: number;
|
|
740
|
+
totalPages?: number;
|
|
741
|
+
};
|
|
742
|
+
export type ClientAssignmentsControllerFindAll200Message = {
|
|
743
|
+
data?: ClientAssignment[];
|
|
744
|
+
pagination?: ClientAssignmentsControllerFindAll200MessagePagination;
|
|
745
|
+
};
|
|
746
|
+
export type ClientAssignmentsControllerFindAll200 = {
|
|
747
|
+
success?: boolean;
|
|
748
|
+
message?: ClientAssignmentsControllerFindAll200Message;
|
|
749
|
+
};
|
|
750
|
+
export type ClientAssignmentsControllerGetMyClients200MessageItemPermission = typeof ClientAssignmentsControllerGetMyClients200MessageItemPermission[keyof typeof ClientAssignmentsControllerGetMyClients200MessageItemPermission] | null;
|
|
751
|
+
export declare const ClientAssignmentsControllerGetMyClients200MessageItemPermission: {
|
|
752
|
+
readonly read: "read";
|
|
753
|
+
readonly write: "write";
|
|
754
|
+
readonly admin: "admin";
|
|
755
|
+
};
|
|
756
|
+
export type ClientAssignmentsControllerGetMyClients200MessageItemAssignmentStatus = typeof ClientAssignmentsControllerGetMyClients200MessageItemAssignmentStatus[keyof typeof ClientAssignmentsControllerGetMyClients200MessageItemAssignmentStatus] | null;
|
|
757
|
+
export declare const ClientAssignmentsControllerGetMyClients200MessageItemAssignmentStatus: {
|
|
758
|
+
readonly active: "active";
|
|
759
|
+
readonly suspended: "suspended";
|
|
760
|
+
readonly expired: "expired";
|
|
761
|
+
};
|
|
762
|
+
export type ClientAssignmentsControllerGetMyClients200MessageItem = {
|
|
763
|
+
clientId?: string;
|
|
764
|
+
name?: string;
|
|
765
|
+
taxId?: string;
|
|
766
|
+
status?: string;
|
|
767
|
+
logoUrl?: string;
|
|
768
|
+
logoFileName?: string;
|
|
769
|
+
permission?: ClientAssignmentsControllerGetMyClients200MessageItemPermission;
|
|
770
|
+
assignmentStatus?: ClientAssignmentsControllerGetMyClients200MessageItemAssignmentStatus;
|
|
771
|
+
assignmentId?: string | null;
|
|
772
|
+
};
|
|
773
|
+
export type ClientAssignmentsControllerGetMyClients200 = {
|
|
774
|
+
success?: boolean;
|
|
775
|
+
message?: ClientAssignmentsControllerGetMyClients200MessageItem[];
|
|
776
|
+
};
|
|
777
|
+
export type ClientAssignmentsControllerFindByUser200 = {
|
|
778
|
+
success?: boolean;
|
|
779
|
+
message?: ClientAssignment[];
|
|
780
|
+
};
|
|
781
|
+
export type ClientAssignmentsControllerFindByClient200 = {
|
|
782
|
+
success?: boolean;
|
|
783
|
+
message?: ClientAssignment[];
|
|
784
|
+
};
|
|
785
|
+
export type ClientAssignmentsControllerCheckPermission200Message = {
|
|
786
|
+
hasPermission?: boolean;
|
|
787
|
+
};
|
|
788
|
+
export type ClientAssignmentsControllerCheckPermission200 = {
|
|
789
|
+
success?: boolean;
|
|
790
|
+
message?: ClientAssignmentsControllerCheckPermission200Message;
|
|
791
|
+
};
|
|
792
|
+
export type ClientAssignmentsControllerFindOne200 = {
|
|
793
|
+
success?: boolean;
|
|
794
|
+
message?: ClientAssignment;
|
|
795
|
+
};
|
|
796
|
+
export type ClientAssignmentsControllerUpdate200 = {
|
|
797
|
+
success?: boolean;
|
|
798
|
+
message?: ClientAssignment;
|
|
799
|
+
};
|
|
800
|
+
export type ProviderClientAssignmentsControllerCreate201 = {
|
|
801
|
+
success?: boolean;
|
|
802
|
+
message?: ProviderClientAssignment;
|
|
803
|
+
};
|
|
804
|
+
export type ProviderClientAssignmentsControllerFindAllParams = {
|
|
805
|
+
page?: number;
|
|
806
|
+
limit?: number;
|
|
807
|
+
providerId?: string;
|
|
808
|
+
clientId?: string;
|
|
809
|
+
status?: ProviderClientAssignmentsControllerFindAllStatus;
|
|
810
|
+
};
|
|
811
|
+
export type ProviderClientAssignmentsControllerFindAllStatus = typeof ProviderClientAssignmentsControllerFindAllStatus[keyof typeof ProviderClientAssignmentsControllerFindAllStatus];
|
|
812
|
+
export declare const ProviderClientAssignmentsControllerFindAllStatus: {
|
|
813
|
+
readonly active: "active";
|
|
814
|
+
readonly suspended: "suspended";
|
|
815
|
+
readonly terminated: "terminated";
|
|
816
|
+
};
|
|
817
|
+
export type ProviderClientAssignmentsControllerFindAll200MessagePagination = {
|
|
818
|
+
page?: number;
|
|
819
|
+
limit?: number;
|
|
820
|
+
total?: number;
|
|
821
|
+
totalPages?: number;
|
|
822
|
+
};
|
|
823
|
+
export type ProviderClientAssignmentsControllerFindAll200Message = {
|
|
824
|
+
data?: ProviderClientAssignment[];
|
|
825
|
+
pagination?: ProviderClientAssignmentsControllerFindAll200MessagePagination;
|
|
826
|
+
};
|
|
827
|
+
export type ProviderClientAssignmentsControllerFindAll200 = {
|
|
828
|
+
success?: boolean;
|
|
829
|
+
message?: ProviderClientAssignmentsControllerFindAll200Message;
|
|
830
|
+
};
|
|
831
|
+
export type ProviderClientAssignmentsControllerFindByProvider200 = {
|
|
832
|
+
success?: boolean;
|
|
833
|
+
message?: ProviderClientAssignment[];
|
|
834
|
+
};
|
|
835
|
+
export type ProviderClientAssignmentsControllerFindByClient200 = {
|
|
836
|
+
success?: boolean;
|
|
837
|
+
message?: ProviderClientAssignment[];
|
|
838
|
+
};
|
|
839
|
+
export type ProviderClientAssignmentsControllerFindOne200 = {
|
|
840
|
+
success?: boolean;
|
|
841
|
+
message?: ProviderClientAssignment;
|
|
842
|
+
};
|
|
843
|
+
export type ProviderClientAssignmentsControllerUpdate200 = {
|
|
844
|
+
success?: boolean;
|
|
845
|
+
message?: ProviderClientAssignment;
|
|
846
|
+
};
|
|
847
|
+
export type AuthControllerLogin200MessageUserProfile = {
|
|
848
|
+
[key: string]: unknown;
|
|
849
|
+
};
|
|
850
|
+
export type AuthControllerLogin200MessageUser = {
|
|
851
|
+
id?: string;
|
|
852
|
+
email?: string;
|
|
853
|
+
role?: string;
|
|
854
|
+
status?: string;
|
|
855
|
+
profile?: AuthControllerLogin200MessageUserProfile;
|
|
856
|
+
};
|
|
857
|
+
export type AuthControllerLogin200Message = {
|
|
858
|
+
accessToken?: string;
|
|
859
|
+
refreshToken?: string;
|
|
860
|
+
expiresIn?: number;
|
|
861
|
+
user?: AuthControllerLogin200MessageUser;
|
|
862
|
+
};
|
|
863
|
+
export type AuthControllerLogin200 = {
|
|
864
|
+
success?: boolean;
|
|
865
|
+
message?: AuthControllerLogin200Message;
|
|
866
|
+
};
|
|
867
|
+
export type AuthControllerCompleteNewPassword200MessageUser = {
|
|
868
|
+
id?: string;
|
|
869
|
+
email?: string;
|
|
870
|
+
role?: string;
|
|
871
|
+
status?: string;
|
|
872
|
+
};
|
|
873
|
+
export type AuthControllerCompleteNewPassword200Message = {
|
|
874
|
+
accessToken?: string;
|
|
875
|
+
refreshToken?: string;
|
|
876
|
+
idToken?: string;
|
|
877
|
+
expiresIn?: number;
|
|
878
|
+
user?: AuthControllerCompleteNewPassword200MessageUser;
|
|
879
|
+
};
|
|
880
|
+
export type AuthControllerCompleteNewPassword200 = {
|
|
881
|
+
success?: boolean;
|
|
882
|
+
message?: AuthControllerCompleteNewPassword200Message;
|
|
883
|
+
};
|
|
884
|
+
export type AuthControllerConfirmRegistration200MessageUser = {
|
|
885
|
+
id?: string;
|
|
886
|
+
email?: string;
|
|
887
|
+
role?: string;
|
|
888
|
+
status?: string;
|
|
889
|
+
};
|
|
890
|
+
export type AuthControllerConfirmRegistration200Message = {
|
|
891
|
+
message?: string;
|
|
892
|
+
user?: AuthControllerConfirmRegistration200MessageUser;
|
|
893
|
+
};
|
|
894
|
+
export type AuthControllerConfirmRegistration200 = {
|
|
895
|
+
success?: boolean;
|
|
896
|
+
message?: AuthControllerConfirmRegistration200Message;
|
|
897
|
+
};
|
|
898
|
+
export type AuthControllerForgotPassword200Message = {
|
|
899
|
+
message?: string;
|
|
900
|
+
};
|
|
901
|
+
export type AuthControllerForgotPassword200 = {
|
|
902
|
+
success?: boolean;
|
|
903
|
+
message?: AuthControllerForgotPassword200Message;
|
|
904
|
+
};
|
|
905
|
+
export type AuthControllerResetPassword200Message = {
|
|
906
|
+
message?: string;
|
|
907
|
+
};
|
|
908
|
+
export type AuthControllerResetPassword200 = {
|
|
909
|
+
success?: boolean;
|
|
910
|
+
message?: AuthControllerResetPassword200Message;
|
|
911
|
+
};
|
|
912
|
+
export type AuthControllerRefreshToken200Message = {
|
|
913
|
+
accessToken?: string;
|
|
914
|
+
refreshToken?: string;
|
|
915
|
+
expiresIn?: number;
|
|
916
|
+
};
|
|
917
|
+
export type AuthControllerRefreshToken200 = {
|
|
918
|
+
success?: boolean;
|
|
919
|
+
message?: AuthControllerRefreshToken200Message;
|
|
920
|
+
};
|
|
921
|
+
export type AuthControllerLogout200Message = {
|
|
922
|
+
message?: string;
|
|
923
|
+
};
|
|
924
|
+
export type AuthControllerLogout200 = {
|
|
925
|
+
success?: boolean;
|
|
926
|
+
message?: AuthControllerLogout200Message;
|
|
927
|
+
};
|
|
928
|
+
export type AuthControllerChangePassword200Message = {
|
|
929
|
+
message?: string;
|
|
930
|
+
};
|
|
931
|
+
export type AuthControllerChangePassword200 = {
|
|
932
|
+
success?: boolean;
|
|
933
|
+
message?: AuthControllerChangePassword200Message;
|
|
934
|
+
};
|
|
935
|
+
export type LocationTrackingControllerGetLocationsParams = {
|
|
936
|
+
page?: number;
|
|
937
|
+
limit?: number;
|
|
938
|
+
userId?: string;
|
|
939
|
+
ticketId?: string;
|
|
940
|
+
date?: string;
|
|
941
|
+
startDate?: string;
|
|
942
|
+
endDate?: string;
|
|
943
|
+
};
|
|
944
|
+
export type LocationTrackingControllerGetUserLocationsParams = {
|
|
945
|
+
startDate?: string;
|
|
946
|
+
endDate?: string;
|
|
947
|
+
};
|
|
948
|
+
export type LocationTrackingControllerGetTechniciansLastLocationParams = {
|
|
949
|
+
hoursAgo?: string;
|
|
950
|
+
};
|
|
951
|
+
export type CredentialsControllerSaveSignatureBody = {
|
|
952
|
+
signatureUrl: string;
|
|
953
|
+
};
|
|
954
|
+
export type CredentialsControllerSavePhotoBody = {
|
|
955
|
+
photoUrl: string;
|
|
956
|
+
};
|
|
957
|
+
export type CredentialsControllerUpdateCredentialStatus200 = {
|
|
958
|
+
message?: string;
|
|
959
|
+
};
|
|
960
|
+
export type CredentialsControllerRegenerateToken200 = {
|
|
961
|
+
credentialToken?: string;
|
|
962
|
+
verificationUrl?: string;
|
|
963
|
+
};
|