@vulog/aima-user 1.2.30 → 1.2.31
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/index.cjs +483 -0
- package/dist/index.d.cts +327 -0
- package/dist/index.d.mts +222 -200
- package/dist/index.mjs +411 -570
- package/package.json +21 -8
- package/{tsup.config.ts → tsdown.config.ts} +1 -1
- package/dist/index.d.ts +0 -305
- package/dist/index.js +0 -668
- /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,101 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { PaginableOptions, PaginableResponse, PatchAction } from "@vulog/aima-core";
|
|
3
|
+
import { Client } from "@vulog/aima-client";
|
|
4
|
+
import { Service } from "@vulog/aima-config";
|
|
5
5
|
|
|
6
|
+
//#region src/acceptTAndC.d.ts
|
|
6
7
|
declare const acceptTAndC: (client: Client, userId: string, cityId: string) => Promise<void>;
|
|
7
|
-
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/assignBillingGroup.d.ts
|
|
8
10
|
declare const assignBillingGroup: (client: Client, entityId: string, billingGroupId: string) => Promise<void>;
|
|
9
|
-
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/unassignBillingGroup.d.ts
|
|
10
13
|
declare const unassignBillingGroup: (client: Client, entityId: string, billingGroupId: string) => Promise<void>;
|
|
11
|
-
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/types.d.ts
|
|
12
16
|
type Address = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
streetName?: string;
|
|
18
|
+
city?: string;
|
|
19
|
+
postalCode?: string;
|
|
20
|
+
region?: string;
|
|
21
|
+
country?: string;
|
|
22
|
+
number?: string;
|
|
23
|
+
addressAdditionalInformation?: string;
|
|
20
24
|
};
|
|
21
25
|
type IndividualBusiness = Address & {
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
companyName: string;
|
|
27
|
+
vat?: string;
|
|
24
28
|
};
|
|
25
29
|
type UserAgreement = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
cityId: string;
|
|
31
|
+
date: string;
|
|
32
|
+
hasAcceptedLatest: boolean;
|
|
29
33
|
};
|
|
30
34
|
type ProfileType = 'Single' | 'Business';
|
|
31
35
|
type ProfileStatus = 'PENDING' | 'APPROVED' | 'REJECTED' | 'SUSPENDED' | 'INACTIVE' | 'ARCHIVED' | 'PENDING_REGISTRATION';
|
|
32
36
|
type ServiceStatus = {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
cityId: string;
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
status: string;
|
|
41
|
+
visibility: string;
|
|
38
42
|
};
|
|
39
43
|
type UserProfile = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
id: string;
|
|
45
|
+
rfid?: string;
|
|
46
|
+
creationDate: string;
|
|
47
|
+
updateDate?: string;
|
|
48
|
+
entityId: string;
|
|
49
|
+
entityName: string;
|
|
50
|
+
status: ProfileStatus;
|
|
51
|
+
type: ProfileType;
|
|
52
|
+
emailConsent: boolean;
|
|
53
|
+
services: ServiceStatus[];
|
|
50
54
|
};
|
|
51
55
|
type ServicesRegistrationList = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
approved: string[];
|
|
57
|
+
incomplete: string[];
|
|
58
|
+
pending: string[];
|
|
59
|
+
rejected: string[];
|
|
60
|
+
suspended: string[];
|
|
61
|
+
unregistered: string[];
|
|
58
62
|
};
|
|
59
63
|
type ServiceRegistrationWithReason = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
serviceId: string;
|
|
65
|
+
reason: string;
|
|
66
|
+
status: string;
|
|
63
67
|
};
|
|
64
68
|
type ProfileServiceRegistration = {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
profileId: string;
|
|
70
|
+
profileType: ProfileType;
|
|
71
|
+
profileStatus: ProfileStatus;
|
|
72
|
+
services: ServicesRegistrationList;
|
|
73
|
+
reasonsForChange: ServiceRegistrationWithReason[];
|
|
70
74
|
};
|
|
71
75
|
type UserServiceRegistration = {
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
catalog: Service[];
|
|
77
|
+
profiles: ProfileServiceRegistration[];
|
|
74
78
|
};
|
|
75
79
|
declare const accountStatus: readonly ["INCOMPLETE", "PENDING", "APPROVED", "REJECTED", "SUSPENDED", "ARCHIVED"];
|
|
76
80
|
type AccountStatus = (typeof accountStatus)[number];
|
|
77
81
|
type User = {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
82
|
+
fleetId: string;
|
|
83
|
+
id: string;
|
|
84
|
+
registrationDate: string;
|
|
85
|
+
accountStatus?: AccountStatus;
|
|
86
|
+
locale: string;
|
|
87
|
+
agreements: UserAgreement[];
|
|
88
|
+
profiles: UserProfile[];
|
|
89
|
+
dataPrivacyConsent: boolean;
|
|
90
|
+
marketingConsent: boolean;
|
|
91
|
+
surveyConsent: boolean;
|
|
92
|
+
shareDataConsent: boolean;
|
|
93
|
+
surveyConsentUpdateDate: string;
|
|
94
|
+
shareDataConsentUpdateDate: string;
|
|
95
|
+
profilingConsent: boolean;
|
|
96
|
+
profilingConsentUpdateDate: string;
|
|
97
|
+
membershipNumber: string;
|
|
98
|
+
updateDate: string;
|
|
99
|
+
dateOfAgreements: string;
|
|
96
100
|
};
|
|
97
101
|
type UserStatus = Exclude<User, 'agreements' | 'profiles'> & {
|
|
98
|
-
|
|
102
|
+
profiles: ProfileServiceRegistration[];
|
|
99
103
|
};
|
|
100
104
|
type UserUpdateBody = Partial<Omit<User, 'id' | 'fleetId' | 'agreements' | 'profiles' | 'surveyConsentUpdateDate' | 'shareDataConsentUpdateDate' | 'profilingConsentUpdateDate'>>;
|
|
101
105
|
declare const personalInformationUserTypes: readonly ["IDENTITY", "USERNAME", "BIRTH", "NATIONALITY", "NOTES", "GENDER", "PERSONAL_COMPANY", "FISCAL", "ADDRESS", "MEMBERSHIP"];
|
|
@@ -106,200 +110,218 @@ declare const personalInformationProfileTypes: readonly ["ID_NUMBER", "PHONE_NUM
|
|
|
106
110
|
type PersonalInformationProfileType = (typeof personalInformationProfileTypes)[number];
|
|
107
111
|
declare const personalInformationProfileTypeSchema: z.ZodEnum<["ID_NUMBER", "PHONE_NUMBER", "EMAIL", "BILLING_ADDRESS"]>;
|
|
108
112
|
type PersonalInformationIdentity = {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
firstName?: string;
|
|
114
|
+
lastName?: string;
|
|
115
|
+
middleName?: string;
|
|
116
|
+
preferredName?: string;
|
|
113
117
|
};
|
|
114
118
|
type PersonalInformationBirth = {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
+
birthDate?: string;
|
|
120
|
+
countryBirth?: string;
|
|
121
|
+
provinceBirth?: string;
|
|
122
|
+
cityBirth?: string;
|
|
119
123
|
};
|
|
120
124
|
type PersonalCompany = {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
125
|
+
companyName?: string;
|
|
126
|
+
companyVat?: string;
|
|
127
|
+
companyAddress?: Address;
|
|
124
128
|
};
|
|
125
129
|
type FiscalInformation = {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
fiscal?: string;
|
|
131
|
+
personalVatNumber?: string;
|
|
132
|
+
sdi?: string;
|
|
133
|
+
pecAddress?: string;
|
|
134
|
+
marketReference?: string;
|
|
131
135
|
};
|
|
132
136
|
type PersonalInformationUser = {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
137
|
+
fleetId: string;
|
|
138
|
+
userId: string;
|
|
139
|
+
userName?: string;
|
|
140
|
+
identity?: PersonalInformationIdentity;
|
|
141
|
+
birth?: PersonalInformationBirth;
|
|
142
|
+
nationality?: string;
|
|
143
|
+
notes?: string;
|
|
144
|
+
gender?: 'MALE' | 'FEMALE' | 'UNDEFINED';
|
|
145
|
+
personalCompany?: PersonalCompany;
|
|
146
|
+
fiscalInformation?: FiscalInformation;
|
|
147
|
+
address?: Address;
|
|
148
|
+
membership?: string;
|
|
145
149
|
};
|
|
146
150
|
type PersonalInformationProfile = {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
fleetId: string;
|
|
152
|
+
userId: string;
|
|
153
|
+
profileId: string;
|
|
154
|
+
idNumber?: string;
|
|
155
|
+
phoneNumber?: string;
|
|
156
|
+
email?: string;
|
|
157
|
+
billingAddress?: Address;
|
|
154
158
|
};
|
|
155
159
|
type Label = {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
id: number;
|
|
161
|
+
name: string;
|
|
162
|
+
createDate: string;
|
|
159
163
|
};
|
|
160
164
|
type Entity = {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
165
|
+
id: string;
|
|
166
|
+
fleetId: string;
|
|
167
|
+
name: string;
|
|
168
|
+
entityName: string;
|
|
169
|
+
type: 'Personal' | 'Business';
|
|
170
|
+
status: 'APPROVED' | 'PENDING' | 'REJECTED' | 'SUSPENDED' | 'INACTIVE' | 'ARCHIVED';
|
|
171
|
+
isMasterEntity: boolean;
|
|
172
|
+
billingGroupId: string | null;
|
|
173
|
+
billingGroup: string | null;
|
|
174
|
+
billingAddress: Address | null;
|
|
175
|
+
fiscalCode: string | null;
|
|
176
|
+
services: Service[];
|
|
173
177
|
};
|
|
174
178
|
type Profile = UserProfile & {
|
|
175
|
-
|
|
179
|
+
entity: Entity;
|
|
176
180
|
};
|
|
177
181
|
type UserFull = User & {
|
|
178
|
-
|
|
182
|
+
profiles: Profile[];
|
|
179
183
|
};
|
|
180
184
|
type BillingGroup = {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
id: string;
|
|
186
|
+
fleetId: string;
|
|
187
|
+
name: string;
|
|
188
|
+
discount: number;
|
|
189
|
+
overMileageCap: number | null;
|
|
190
|
+
overMileageRate: number | null;
|
|
187
191
|
};
|
|
188
|
-
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/createBusinessProfile.d.ts
|
|
189
194
|
type CreateBusinessProfile = {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
195
|
+
emailConsent: boolean;
|
|
196
|
+
email: string;
|
|
197
|
+
requestId: string;
|
|
198
|
+
costCenterId: string;
|
|
194
199
|
};
|
|
195
200
|
declare const createBusinessProfile: (client: Client, userId: string, businessId: string, data: CreateBusinessProfile) => Promise<UserProfile>;
|
|
196
|
-
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/createUser.d.ts
|
|
197
203
|
type CreateUser = {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
userName: string;
|
|
205
|
+
password: string;
|
|
206
|
+
locale: string;
|
|
207
|
+
email: string;
|
|
208
|
+
dataPrivacyConsent?: boolean;
|
|
209
|
+
profilingConsent?: boolean;
|
|
210
|
+
marketingConsent?: boolean;
|
|
211
|
+
phoneNumber?: string;
|
|
206
212
|
};
|
|
207
213
|
type CreateUserOptions = {
|
|
208
|
-
|
|
209
|
-
|
|
214
|
+
tcApproval?: boolean;
|
|
215
|
+
skipUserNotification?: boolean;
|
|
210
216
|
};
|
|
211
217
|
declare const createUser: (client: Client, user: CreateUser, option?: CreateUserOptions) => Promise<User>;
|
|
212
|
-
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region src/findUser.d.ts
|
|
213
220
|
declare const searchTypes: readonly ["email", "username", "phoneNumber"];
|
|
214
221
|
type SearchType = (typeof searchTypes)[number];
|
|
215
222
|
type ResponseFind = {
|
|
216
|
-
|
|
223
|
+
content: PersonalInformationUser[];
|
|
217
224
|
};
|
|
218
225
|
declare const findUser: (client: Client, searchType: SearchType, searchQuery: string, types: PersonalInformationUserType[]) => Promise<ResponseFind>;
|
|
219
|
-
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/getProfilePersonalInfoById.d.ts
|
|
220
228
|
declare const getProfilePersonalInfoById: (client: Client, userId: string, profileId: string, types: PersonalInformationProfileType[]) => Promise<PersonalInformationProfile>;
|
|
221
|
-
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region src/getRegistrationOverview.d.ts
|
|
222
231
|
declare const getRegistrationOverview: (client: Client, userId: string) => Promise<UserServiceRegistration>;
|
|
223
|
-
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/getUserById.d.ts
|
|
224
234
|
declare const getUserById: (client: Client, id: string, addAccountStatus?: boolean) => Promise<User>;
|
|
225
|
-
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region src/getUserPersonalInfoById.d.ts
|
|
226
237
|
declare const getUserPersonalInfoById: (client: Client, id: string, types: PersonalInformationUserType[]) => Promise<PersonalInformationUser>;
|
|
227
|
-
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/getUsersPIByIds.d.ts
|
|
228
240
|
declare const getUsersPIByIds: (client: Client, ids: string[], types: PersonalInformationUserType[]) => Promise<PersonalInformationUser[]>;
|
|
229
|
-
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/label.d.ts
|
|
230
243
|
declare const getLabelsForUser: (client: Client, userId: string) => Promise<Label[]>;
|
|
231
244
|
declare const addLabelForUser: (client: Client, userId: string, labelId: number) => Promise<void>;
|
|
232
245
|
declare const removeLabelForUser: (client: Client, userId: string, labelId: number) => Promise<void>;
|
|
233
|
-
|
|
246
|
+
//#endregion
|
|
247
|
+
//#region src/setServicesStatus.d.ts
|
|
234
248
|
declare const schema: z.ZodObject<{
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
249
|
+
disableEmailNotification: z.ZodBoolean;
|
|
250
|
+
operatorProfileId: z.ZodString;
|
|
251
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
252
|
+
reasonForChange: z.ZodString;
|
|
253
|
+
serviceId: z.ZodString;
|
|
254
|
+
status: z.ZodEnum<["APPROVED", "INCOMPLETE", "PENDING", "REJECTED", "SUSPENDED", "UNREGISTERED"]>;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
status: "PENDING" | "INCOMPLETE" | "SUSPENDED" | "REJECTED" | "APPROVED" | "UNREGISTERED";
|
|
257
|
+
serviceId: string;
|
|
258
|
+
reasonForChange: string;
|
|
259
|
+
}, {
|
|
260
|
+
status: "PENDING" | "INCOMPLETE" | "SUSPENDED" | "REJECTED" | "APPROVED" | "UNREGISTERED";
|
|
261
|
+
serviceId: string;
|
|
262
|
+
reasonForChange: string;
|
|
263
|
+
}>, "many">;
|
|
250
264
|
}, "strip", z.ZodTypeAny, {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
265
|
+
disableEmailNotification: boolean;
|
|
266
|
+
operatorProfileId: string;
|
|
267
|
+
actions: {
|
|
268
|
+
status: "PENDING" | "INCOMPLETE" | "SUSPENDED" | "REJECTED" | "APPROVED" | "UNREGISTERED";
|
|
269
|
+
serviceId: string;
|
|
270
|
+
reasonForChange: string;
|
|
271
|
+
}[];
|
|
258
272
|
}, {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
273
|
+
disableEmailNotification: boolean;
|
|
274
|
+
operatorProfileId: string;
|
|
275
|
+
actions: {
|
|
276
|
+
status: "PENDING" | "INCOMPLETE" | "SUSPENDED" | "REJECTED" | "APPROVED" | "UNREGISTERED";
|
|
277
|
+
serviceId: string;
|
|
278
|
+
reasonForChange: string;
|
|
279
|
+
}[];
|
|
266
280
|
}>;
|
|
267
281
|
type ServicesUpdate = z.infer<typeof schema>;
|
|
268
282
|
declare const setServicesStatus: (client: Client, profileId: string, servicesUpdate: ServicesUpdate) => Promise<void>;
|
|
269
|
-
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region src/registerUserToService.d.ts
|
|
270
285
|
declare const registerUserToService: (client: Client, entityId: string, serviceId: string) => Promise<void>;
|
|
271
|
-
|
|
286
|
+
//#endregion
|
|
287
|
+
//#region src/updateProfilePersonalInfo.d.ts
|
|
272
288
|
declare const paths: readonly ["/phoneNumber", "/email", "/idNumber"];
|
|
273
289
|
type ProfilePaths = (typeof paths)[number];
|
|
274
290
|
declare const updateProfilePersonalInfo: (client: Client, userId: string, profileId: string, actions: PatchAction<ProfilePaths>[]) => Promise<void>;
|
|
275
|
-
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region src/updateUser.d.ts
|
|
276
293
|
declare const updateUser: (client: Client, id: string, user: UserUpdateBody) => Promise<User>;
|
|
277
|
-
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region src/updateUserPersonalInfo.d.ts
|
|
278
296
|
type UserPaths = (typeof personalInformationUserPaths)[number];
|
|
279
297
|
declare const updateUserPersonalInfo: (client: Client, userId: string, actions: PatchAction<UserPaths>[]) => Promise<void>;
|
|
280
|
-
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region src/getEntity.d.ts
|
|
281
300
|
declare const getEntity: (client: Client, entityId: string) => Promise<Entity>;
|
|
282
|
-
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region src/getFleetBillingGroups.d.ts
|
|
283
303
|
declare const getFleetBillingGroups: (client: Client, options?: PaginableOptions) => Promise<PaginableResponse<BillingGroup>>;
|
|
284
|
-
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region src/getUsersByIds.d.ts
|
|
285
306
|
declare const getUsersByIds: (client: Client, ids: string[]) => Promise<User[]>;
|
|
286
|
-
|
|
307
|
+
//#endregion
|
|
308
|
+
//#region src/getUsers.d.ts
|
|
287
309
|
declare const userFiltersSchema: z.ZodObject<{
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
310
|
+
status: z.ZodOptional<z.ZodEnum<["PENDING", "INCOMPLETE", "SUSPENDED", "REJECTED", "APPROVED"]>>;
|
|
311
|
+
profileType: z.ZodOptional<z.ZodEnum<["Single", "Business"]>>;
|
|
312
|
+
serviceId: z.ZodOptional<z.ZodString>;
|
|
291
313
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
314
|
+
status?: "PENDING" | "INCOMPLETE" | "SUSPENDED" | "REJECTED" | "APPROVED" | undefined;
|
|
315
|
+
profileType?: "Single" | "Business" | undefined;
|
|
316
|
+
serviceId?: string | undefined;
|
|
295
317
|
}, {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
318
|
+
status?: "PENDING" | "INCOMPLETE" | "SUSPENDED" | "REJECTED" | "APPROVED" | undefined;
|
|
319
|
+
profileType?: "Single" | "Business" | undefined;
|
|
320
|
+
serviceId?: string | undefined;
|
|
299
321
|
}>;
|
|
300
322
|
declare const sortSchema: z.ZodEnum<["registrationDate", "userName", "firstName", "lastName", "updateDate"]>;
|
|
301
323
|
type UserSort = z.infer<typeof sortSchema>;
|
|
302
324
|
type UserFilters = z.infer<typeof userFiltersSchema>;
|
|
303
325
|
declare const getUsers: (client: Client, options?: PaginableOptions<UserFilters, UserSort>) => Promise<PaginableResponse<UserStatus>>;
|
|
304
|
-
|
|
305
|
-
export {
|
|
326
|
+
//#endregion
|
|
327
|
+
export { AccountStatus, Address, BillingGroup, CreateBusinessProfile, CreateUser, CreateUserOptions, Entity, FiscalInformation, IndividualBusiness, Label, PersonalCompany, PersonalInformationBirth, PersonalInformationIdentity, PersonalInformationProfile, PersonalInformationProfileType, PersonalInformationUser, PersonalInformationUserType, Profile, ProfilePaths, ProfileServiceRegistration, ProfileStatus, ProfileType, ResponseFind, SearchType, ServiceRegistrationWithReason, ServiceStatus, ServicesRegistrationList, ServicesUpdate, User, UserAgreement, UserFilters, UserFull, UserPaths, UserProfile, UserServiceRegistration, UserSort, UserStatus, UserUpdateBody, acceptTAndC, accountStatus, addLabelForUser, assignBillingGroup, createBusinessProfile, createUser, findUser, getEntity, getFleetBillingGroups, getLabelsForUser, getProfilePersonalInfoById, getRegistrationOverview, getUserById, getUserPersonalInfoById, getUsers, getUsersByIds, getUsersPIByIds, personalInformationProfileTypeSchema, personalInformationProfileTypes, personalInformationUserPaths, personalInformationUserTypeSchema, personalInformationUserTypes, registerUserToService, removeLabelForUser, setServicesStatus, unassignBillingGroup, updateProfilePersonalInfo, updateUser, updateUserPersonalInfo };
|