@deliverart/sdk-js-user 2.23.17 → 2.23.19
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 +9 -1
- package/dist/index.d.cts +75 -1
- package/dist/index.d.ts +75 -1
- package/dist/index.js +7 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -52,6 +52,8 @@ __export(index_exports, {
|
|
|
52
52
|
updateUserResponseSchema: () => updateUserResponseSchema,
|
|
53
53
|
userIriSchema: () => userIriSchema,
|
|
54
54
|
userNullableIriSchema: () => userNullableIriSchema,
|
|
55
|
+
userPreferredLocaleSchema: () => userPreferredLocaleSchema,
|
|
56
|
+
userPreferredLocales: () => userPreferredLocales,
|
|
55
57
|
userSchema: () => userSchema,
|
|
56
58
|
userStepSchema: () => userStepSchema,
|
|
57
59
|
userSteps: () => userSteps,
|
|
@@ -13888,6 +13890,8 @@ var userSteps = [
|
|
|
13888
13890
|
"create_point_of_sale"
|
|
13889
13891
|
];
|
|
13890
13892
|
var userStepSchema = external_exports.enum(userSteps);
|
|
13893
|
+
var userPreferredLocales = ["it", "en"];
|
|
13894
|
+
var userPreferredLocaleSchema = external_exports.enum(userPreferredLocales);
|
|
13891
13895
|
var userIriSchema = (0, import_sdk_js_global_types.iriSchema)("/users/:id");
|
|
13892
13896
|
var userNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/users/:id");
|
|
13893
13897
|
|
|
@@ -13897,6 +13901,7 @@ var userSchema = external_exports.object({
|
|
|
13897
13901
|
firstName: external_exports.string(),
|
|
13898
13902
|
lastName: external_exports.string(),
|
|
13899
13903
|
email: external_exports.email(),
|
|
13904
|
+
preferredLocale: userPreferredLocaleSchema,
|
|
13900
13905
|
roles: securityRoleSchema.array(),
|
|
13901
13906
|
completedSteps: userStepSchema.array(),
|
|
13902
13907
|
emailVerified: external_exports.boolean(),
|
|
@@ -13908,7 +13913,8 @@ var writableUserSchema = userSchema.pick({
|
|
|
13908
13913
|
firstName: true,
|
|
13909
13914
|
lastName: true,
|
|
13910
13915
|
roles: true,
|
|
13911
|
-
email: true
|
|
13916
|
+
email: true,
|
|
13917
|
+
preferredLocale: true
|
|
13912
13918
|
}).extend({
|
|
13913
13919
|
plainPassword: external_exports.string().optional()
|
|
13914
13920
|
}).partial();
|
|
@@ -14179,6 +14185,8 @@ var VerifyEmailVerificationCodeByEmail = class extends import_sdk_js_core10.Abst
|
|
|
14179
14185
|
updateUserResponseSchema,
|
|
14180
14186
|
userIriSchema,
|
|
14181
14187
|
userNullableIriSchema,
|
|
14188
|
+
userPreferredLocaleSchema,
|
|
14189
|
+
userPreferredLocales,
|
|
14182
14190
|
userSchema,
|
|
14183
14191
|
userStepSchema,
|
|
14184
14192
|
userSteps,
|
package/dist/index.d.cts
CHANGED
|
@@ -7,6 +7,10 @@ declare const userSchema: z.ZodObject<{
|
|
|
7
7
|
firstName: z.ZodString;
|
|
8
8
|
lastName: z.ZodString;
|
|
9
9
|
email: z.ZodEmail;
|
|
10
|
+
preferredLocale: z.ZodEnum<{
|
|
11
|
+
it: "it";
|
|
12
|
+
en: "en";
|
|
13
|
+
}>;
|
|
10
14
|
roles: z.ZodArray<z.ZodEnum<{
|
|
11
15
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
12
16
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -59,6 +63,10 @@ declare const userSchema: z.ZodObject<{
|
|
|
59
63
|
}, z.core.$strip>;
|
|
60
64
|
type User = z.infer<typeof userSchema>;
|
|
61
65
|
declare const writableUserSchema: z.ZodObject<{
|
|
66
|
+
preferredLocale: z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
it: "it";
|
|
68
|
+
en: "en";
|
|
69
|
+
}>>;
|
|
62
70
|
firstName: z.ZodOptional<z.ZodString>;
|
|
63
71
|
lastName: z.ZodOptional<z.ZodString>;
|
|
64
72
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -165,6 +173,10 @@ declare const usersQuerySchema: z.ZodObject<{
|
|
|
165
173
|
type UsersQueryParams = z.infer<typeof usersQuerySchema>;
|
|
166
174
|
|
|
167
175
|
declare const createUserInputSchema: z.ZodObject<{
|
|
176
|
+
preferredLocale: z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
it: "it";
|
|
178
|
+
en: "en";
|
|
179
|
+
}>>>;
|
|
168
180
|
firstName: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
169
181
|
lastName: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
170
182
|
email: z.ZodNonOptional<z.ZodOptional<z.ZodEmail>>;
|
|
@@ -215,6 +227,10 @@ declare const createUserResponseSchema: z.ZodObject<{
|
|
|
215
227
|
firstName: z.ZodString;
|
|
216
228
|
lastName: z.ZodString;
|
|
217
229
|
email: z.ZodEmail;
|
|
230
|
+
preferredLocale: z.ZodEnum<{
|
|
231
|
+
it: "it";
|
|
232
|
+
en: "en";
|
|
233
|
+
}>;
|
|
218
234
|
roles: z.ZodArray<z.ZodEnum<{
|
|
219
235
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
220
236
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -271,6 +287,10 @@ declare class CreateUser extends AbstractApiRequest<typeof createUserInputSchema
|
|
|
271
287
|
readonly contentType = "application/json";
|
|
272
288
|
readonly accept = "application/json";
|
|
273
289
|
readonly inputSchema: z.ZodObject<{
|
|
290
|
+
preferredLocale: z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
|
|
291
|
+
it: "it";
|
|
292
|
+
en: "en";
|
|
293
|
+
}>>>;
|
|
274
294
|
firstName: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
275
295
|
lastName: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
276
296
|
email: z.ZodNonOptional<z.ZodOptional<z.ZodEmail>>;
|
|
@@ -320,6 +340,10 @@ declare class CreateUser extends AbstractApiRequest<typeof createUserInputSchema
|
|
|
320
340
|
firstName: z.ZodString;
|
|
321
341
|
lastName: z.ZodString;
|
|
322
342
|
email: z.ZodEmail;
|
|
343
|
+
preferredLocale: z.ZodEnum<{
|
|
344
|
+
it: "it";
|
|
345
|
+
en: "en";
|
|
346
|
+
}>;
|
|
323
347
|
roles: z.ZodArray<z.ZodEnum<{
|
|
324
348
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
325
349
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -398,6 +422,10 @@ declare const getMeResponseSchema: z.ZodObject<{
|
|
|
398
422
|
firstName: z.ZodString;
|
|
399
423
|
lastName: z.ZodString;
|
|
400
424
|
email: z.ZodEmail;
|
|
425
|
+
preferredLocale: z.ZodEnum<{
|
|
426
|
+
it: "it";
|
|
427
|
+
en: "en";
|
|
428
|
+
}>;
|
|
401
429
|
roles: z.ZodArray<z.ZodEnum<{
|
|
402
430
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
403
431
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -459,6 +487,10 @@ declare class GetMe extends AbstractApiRequest<typeof getMeInputSchema, typeof g
|
|
|
459
487
|
firstName: z.ZodString;
|
|
460
488
|
lastName: z.ZodString;
|
|
461
489
|
email: z.ZodEmail;
|
|
490
|
+
preferredLocale: z.ZodEnum<{
|
|
491
|
+
it: "it";
|
|
492
|
+
en: "en";
|
|
493
|
+
}>;
|
|
462
494
|
roles: z.ZodArray<z.ZodEnum<{
|
|
463
495
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
464
496
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -522,6 +554,10 @@ declare const getUserDetailsResponseSchema: z.ZodObject<{
|
|
|
522
554
|
firstName: z.ZodString;
|
|
523
555
|
lastName: z.ZodString;
|
|
524
556
|
email: z.ZodEmail;
|
|
557
|
+
preferredLocale: z.ZodEnum<{
|
|
558
|
+
it: "it";
|
|
559
|
+
en: "en";
|
|
560
|
+
}>;
|
|
525
561
|
roles: z.ZodArray<z.ZodEnum<{
|
|
526
562
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
527
563
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -583,6 +619,10 @@ declare class GetUserDetails extends AbstractApiRequest<typeof getUserDetailsInp
|
|
|
583
619
|
firstName: z.ZodString;
|
|
584
620
|
lastName: z.ZodString;
|
|
585
621
|
email: z.ZodEmail;
|
|
622
|
+
preferredLocale: z.ZodEnum<{
|
|
623
|
+
it: "it";
|
|
624
|
+
en: "en";
|
|
625
|
+
}>;
|
|
586
626
|
roles: z.ZodArray<z.ZodEnum<{
|
|
587
627
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
588
628
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -699,6 +739,10 @@ declare const getUsersResponseSchema: z.ZodObject<{
|
|
|
699
739
|
firstName: z.ZodString;
|
|
700
740
|
lastName: z.ZodString;
|
|
701
741
|
email: z.ZodEmail;
|
|
742
|
+
preferredLocale: z.ZodEnum<{
|
|
743
|
+
it: "it";
|
|
744
|
+
en: "en";
|
|
745
|
+
}>;
|
|
702
746
|
roles: z.ZodArray<z.ZodEnum<{
|
|
703
747
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
704
748
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -770,6 +814,10 @@ declare class GetUsers extends AbstractApiRequest<typeof getUsersInputSchema, ty
|
|
|
770
814
|
firstName: z.ZodString;
|
|
771
815
|
lastName: z.ZodString;
|
|
772
816
|
email: z.ZodEmail;
|
|
817
|
+
preferredLocale: z.ZodEnum<{
|
|
818
|
+
it: "it";
|
|
819
|
+
en: "en";
|
|
820
|
+
}>;
|
|
773
821
|
roles: z.ZodArray<z.ZodEnum<{
|
|
774
822
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
775
823
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -885,6 +933,10 @@ declare class GetUsers extends AbstractApiRequest<typeof getUsersInputSchema, ty
|
|
|
885
933
|
firstName: z.ZodString;
|
|
886
934
|
lastName: z.ZodString;
|
|
887
935
|
email: z.ZodEmail;
|
|
936
|
+
preferredLocale: z.ZodEnum<{
|
|
937
|
+
it: "it";
|
|
938
|
+
en: "en";
|
|
939
|
+
}>;
|
|
888
940
|
roles: z.ZodArray<z.ZodEnum<{
|
|
889
941
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
890
942
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -1005,6 +1057,10 @@ declare class SendEmailVerificationCodeByEmail extends AbstractApiRequest<typeof
|
|
|
1005
1057
|
}
|
|
1006
1058
|
|
|
1007
1059
|
declare const updateUserInputSchema: z.ZodObject<{
|
|
1060
|
+
preferredLocale: z.ZodOptional<z.ZodEnum<{
|
|
1061
|
+
it: "it";
|
|
1062
|
+
en: "en";
|
|
1063
|
+
}>>;
|
|
1008
1064
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1009
1065
|
lastName: z.ZodOptional<z.ZodString>;
|
|
1010
1066
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -1055,6 +1111,10 @@ declare const updateUserResponseSchema: z.ZodObject<{
|
|
|
1055
1111
|
firstName: z.ZodString;
|
|
1056
1112
|
lastName: z.ZodString;
|
|
1057
1113
|
email: z.ZodEmail;
|
|
1114
|
+
preferredLocale: z.ZodEnum<{
|
|
1115
|
+
it: "it";
|
|
1116
|
+
en: "en";
|
|
1117
|
+
}>;
|
|
1058
1118
|
roles: z.ZodArray<z.ZodEnum<{
|
|
1059
1119
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1060
1120
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -1111,6 +1171,10 @@ declare class UpdateUser extends AbstractApiRequest<typeof updateUserInputSchema
|
|
|
1111
1171
|
readonly contentType = "application/merge-patch+json";
|
|
1112
1172
|
readonly accept = "application/json";
|
|
1113
1173
|
readonly inputSchema: z.ZodObject<{
|
|
1174
|
+
preferredLocale: z.ZodOptional<z.ZodEnum<{
|
|
1175
|
+
it: "it";
|
|
1176
|
+
en: "en";
|
|
1177
|
+
}>>;
|
|
1114
1178
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1115
1179
|
lastName: z.ZodOptional<z.ZodString>;
|
|
1116
1180
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -1160,6 +1224,10 @@ declare class UpdateUser extends AbstractApiRequest<typeof updateUserInputSchema
|
|
|
1160
1224
|
firstName: z.ZodString;
|
|
1161
1225
|
lastName: z.ZodString;
|
|
1162
1226
|
email: z.ZodEmail;
|
|
1227
|
+
preferredLocale: z.ZodEnum<{
|
|
1228
|
+
it: "it";
|
|
1229
|
+
en: "en";
|
|
1230
|
+
}>;
|
|
1163
1231
|
roles: z.ZodArray<z.ZodEnum<{
|
|
1164
1232
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1165
1233
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -1332,9 +1400,15 @@ declare const userStepSchema: z.ZodEnum<{
|
|
|
1332
1400
|
create_point_of_sale: "create_point_of_sale";
|
|
1333
1401
|
}>;
|
|
1334
1402
|
type UserStep = z.infer<typeof userStepSchema>;
|
|
1403
|
+
declare const userPreferredLocales: readonly ["it", "en"];
|
|
1404
|
+
declare const userPreferredLocaleSchema: z.ZodEnum<{
|
|
1405
|
+
it: "it";
|
|
1406
|
+
en: "en";
|
|
1407
|
+
}>;
|
|
1408
|
+
type UserPreferredLocale = z.infer<typeof userPreferredLocaleSchema>;
|
|
1335
1409
|
declare const userIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id">, unknown>>;
|
|
1336
1410
|
type UserIri = z.infer<typeof userIriSchema>;
|
|
1337
1411
|
declare const userNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
1338
1412
|
type UserNullableIri = z.infer<typeof userNullableIriSchema>;
|
|
1339
1413
|
|
|
1340
|
-
export { CreateUser, type CreateUserInput, type CreateUserResponse, DeleteUser, type EmailVerificationCodeStatus, GetMe, type GetMeInput, type GetMeResponse, GetUserDetails, type GetUserDetailsInput, type GetUserDetailsResponse, GetUsers, type GetUsersInput, type GetUsersQueryParams, type GetUsersResponse, type SecurityRole, SendCurrentUserEmailVerificationCode, type SendCurrentUserEmailVerificationCodeInput, type SendCurrentUserEmailVerificationCodeResponse, SendEmailVerificationCodeByEmail, type SendEmailVerificationCodeByEmailInput, type SendEmailVerificationCodeByEmailResponse, UpdateUser, type UpdateUserInput, type UpdateUserResponse, type User, type UserIri, type UserNullableIri, type UserStep, type UsersQueryParams, VerifyCurrentUserEmailVerificationCode, type VerifyCurrentUserEmailVerificationCodeInput, type VerifyCurrentUserEmailVerificationCodeResponse, VerifyEmailVerificationCodeByEmail, type VerifyEmailVerificationCodeByEmailInput, type VerifyEmailVerificationCodeByEmailResponse, type WritableUser, createUserInputSchema, createUserResponseSchema, deleteUserInputSchema, deleteUserResponseSchema, emailVerificationCodeStatusSchema, getMeInputSchema, getMeResponseSchema, getUserDetailsInputSchema, getUserDetailsResponseSchema, getUsersInputSchema, getUsersQuerySchema, getUsersResponseSchema, securityRoleSchema, securityRoles, sendCurrentUserEmailVerificationCodeInputSchema, sendCurrentUserEmailVerificationCodeResponseSchema, sendEmailVerificationCodeByEmailInputSchema, sendEmailVerificationCodeByEmailResponseSchema, updateUserInputSchema, updateUserResponseSchema, userIriSchema, userNullableIriSchema, userSchema, userStepSchema, userSteps, usersQuerySchema, verifyCurrentUserEmailVerificationCodeInputSchema, verifyCurrentUserEmailVerificationCodeResponseSchema, verifyEmailVerificationCodeByEmailInputSchema, verifyEmailVerificationCodeByEmailResponseSchema, writableUserSchema };
|
|
1414
|
+
export { CreateUser, type CreateUserInput, type CreateUserResponse, DeleteUser, type EmailVerificationCodeStatus, GetMe, type GetMeInput, type GetMeResponse, GetUserDetails, type GetUserDetailsInput, type GetUserDetailsResponse, GetUsers, type GetUsersInput, type GetUsersQueryParams, type GetUsersResponse, type SecurityRole, SendCurrentUserEmailVerificationCode, type SendCurrentUserEmailVerificationCodeInput, type SendCurrentUserEmailVerificationCodeResponse, SendEmailVerificationCodeByEmail, type SendEmailVerificationCodeByEmailInput, type SendEmailVerificationCodeByEmailResponse, UpdateUser, type UpdateUserInput, type UpdateUserResponse, type User, type UserIri, type UserNullableIri, type UserPreferredLocale, type UserStep, type UsersQueryParams, VerifyCurrentUserEmailVerificationCode, type VerifyCurrentUserEmailVerificationCodeInput, type VerifyCurrentUserEmailVerificationCodeResponse, VerifyEmailVerificationCodeByEmail, type VerifyEmailVerificationCodeByEmailInput, type VerifyEmailVerificationCodeByEmailResponse, type WritableUser, createUserInputSchema, createUserResponseSchema, deleteUserInputSchema, deleteUserResponseSchema, emailVerificationCodeStatusSchema, getMeInputSchema, getMeResponseSchema, getUserDetailsInputSchema, getUserDetailsResponseSchema, getUsersInputSchema, getUsersQuerySchema, getUsersResponseSchema, securityRoleSchema, securityRoles, sendCurrentUserEmailVerificationCodeInputSchema, sendCurrentUserEmailVerificationCodeResponseSchema, sendEmailVerificationCodeByEmailInputSchema, sendEmailVerificationCodeByEmailResponseSchema, updateUserInputSchema, updateUserResponseSchema, userIriSchema, userNullableIriSchema, userPreferredLocaleSchema, userPreferredLocales, userSchema, userStepSchema, userSteps, usersQuerySchema, verifyCurrentUserEmailVerificationCodeInputSchema, verifyCurrentUserEmailVerificationCodeResponseSchema, verifyEmailVerificationCodeByEmailInputSchema, verifyEmailVerificationCodeByEmailResponseSchema, writableUserSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ declare const userSchema: z.ZodObject<{
|
|
|
7
7
|
firstName: z.ZodString;
|
|
8
8
|
lastName: z.ZodString;
|
|
9
9
|
email: z.ZodEmail;
|
|
10
|
+
preferredLocale: z.ZodEnum<{
|
|
11
|
+
it: "it";
|
|
12
|
+
en: "en";
|
|
13
|
+
}>;
|
|
10
14
|
roles: z.ZodArray<z.ZodEnum<{
|
|
11
15
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
12
16
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -59,6 +63,10 @@ declare const userSchema: z.ZodObject<{
|
|
|
59
63
|
}, z.core.$strip>;
|
|
60
64
|
type User = z.infer<typeof userSchema>;
|
|
61
65
|
declare const writableUserSchema: z.ZodObject<{
|
|
66
|
+
preferredLocale: z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
it: "it";
|
|
68
|
+
en: "en";
|
|
69
|
+
}>>;
|
|
62
70
|
firstName: z.ZodOptional<z.ZodString>;
|
|
63
71
|
lastName: z.ZodOptional<z.ZodString>;
|
|
64
72
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -165,6 +173,10 @@ declare const usersQuerySchema: z.ZodObject<{
|
|
|
165
173
|
type UsersQueryParams = z.infer<typeof usersQuerySchema>;
|
|
166
174
|
|
|
167
175
|
declare const createUserInputSchema: z.ZodObject<{
|
|
176
|
+
preferredLocale: z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
it: "it";
|
|
178
|
+
en: "en";
|
|
179
|
+
}>>>;
|
|
168
180
|
firstName: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
169
181
|
lastName: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
170
182
|
email: z.ZodNonOptional<z.ZodOptional<z.ZodEmail>>;
|
|
@@ -215,6 +227,10 @@ declare const createUserResponseSchema: z.ZodObject<{
|
|
|
215
227
|
firstName: z.ZodString;
|
|
216
228
|
lastName: z.ZodString;
|
|
217
229
|
email: z.ZodEmail;
|
|
230
|
+
preferredLocale: z.ZodEnum<{
|
|
231
|
+
it: "it";
|
|
232
|
+
en: "en";
|
|
233
|
+
}>;
|
|
218
234
|
roles: z.ZodArray<z.ZodEnum<{
|
|
219
235
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
220
236
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -271,6 +287,10 @@ declare class CreateUser extends AbstractApiRequest<typeof createUserInputSchema
|
|
|
271
287
|
readonly contentType = "application/json";
|
|
272
288
|
readonly accept = "application/json";
|
|
273
289
|
readonly inputSchema: z.ZodObject<{
|
|
290
|
+
preferredLocale: z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
|
|
291
|
+
it: "it";
|
|
292
|
+
en: "en";
|
|
293
|
+
}>>>;
|
|
274
294
|
firstName: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
275
295
|
lastName: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
276
296
|
email: z.ZodNonOptional<z.ZodOptional<z.ZodEmail>>;
|
|
@@ -320,6 +340,10 @@ declare class CreateUser extends AbstractApiRequest<typeof createUserInputSchema
|
|
|
320
340
|
firstName: z.ZodString;
|
|
321
341
|
lastName: z.ZodString;
|
|
322
342
|
email: z.ZodEmail;
|
|
343
|
+
preferredLocale: z.ZodEnum<{
|
|
344
|
+
it: "it";
|
|
345
|
+
en: "en";
|
|
346
|
+
}>;
|
|
323
347
|
roles: z.ZodArray<z.ZodEnum<{
|
|
324
348
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
325
349
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -398,6 +422,10 @@ declare const getMeResponseSchema: z.ZodObject<{
|
|
|
398
422
|
firstName: z.ZodString;
|
|
399
423
|
lastName: z.ZodString;
|
|
400
424
|
email: z.ZodEmail;
|
|
425
|
+
preferredLocale: z.ZodEnum<{
|
|
426
|
+
it: "it";
|
|
427
|
+
en: "en";
|
|
428
|
+
}>;
|
|
401
429
|
roles: z.ZodArray<z.ZodEnum<{
|
|
402
430
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
403
431
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -459,6 +487,10 @@ declare class GetMe extends AbstractApiRequest<typeof getMeInputSchema, typeof g
|
|
|
459
487
|
firstName: z.ZodString;
|
|
460
488
|
lastName: z.ZodString;
|
|
461
489
|
email: z.ZodEmail;
|
|
490
|
+
preferredLocale: z.ZodEnum<{
|
|
491
|
+
it: "it";
|
|
492
|
+
en: "en";
|
|
493
|
+
}>;
|
|
462
494
|
roles: z.ZodArray<z.ZodEnum<{
|
|
463
495
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
464
496
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -522,6 +554,10 @@ declare const getUserDetailsResponseSchema: z.ZodObject<{
|
|
|
522
554
|
firstName: z.ZodString;
|
|
523
555
|
lastName: z.ZodString;
|
|
524
556
|
email: z.ZodEmail;
|
|
557
|
+
preferredLocale: z.ZodEnum<{
|
|
558
|
+
it: "it";
|
|
559
|
+
en: "en";
|
|
560
|
+
}>;
|
|
525
561
|
roles: z.ZodArray<z.ZodEnum<{
|
|
526
562
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
527
563
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -583,6 +619,10 @@ declare class GetUserDetails extends AbstractApiRequest<typeof getUserDetailsInp
|
|
|
583
619
|
firstName: z.ZodString;
|
|
584
620
|
lastName: z.ZodString;
|
|
585
621
|
email: z.ZodEmail;
|
|
622
|
+
preferredLocale: z.ZodEnum<{
|
|
623
|
+
it: "it";
|
|
624
|
+
en: "en";
|
|
625
|
+
}>;
|
|
586
626
|
roles: z.ZodArray<z.ZodEnum<{
|
|
587
627
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
588
628
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -699,6 +739,10 @@ declare const getUsersResponseSchema: z.ZodObject<{
|
|
|
699
739
|
firstName: z.ZodString;
|
|
700
740
|
lastName: z.ZodString;
|
|
701
741
|
email: z.ZodEmail;
|
|
742
|
+
preferredLocale: z.ZodEnum<{
|
|
743
|
+
it: "it";
|
|
744
|
+
en: "en";
|
|
745
|
+
}>;
|
|
702
746
|
roles: z.ZodArray<z.ZodEnum<{
|
|
703
747
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
704
748
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -770,6 +814,10 @@ declare class GetUsers extends AbstractApiRequest<typeof getUsersInputSchema, ty
|
|
|
770
814
|
firstName: z.ZodString;
|
|
771
815
|
lastName: z.ZodString;
|
|
772
816
|
email: z.ZodEmail;
|
|
817
|
+
preferredLocale: z.ZodEnum<{
|
|
818
|
+
it: "it";
|
|
819
|
+
en: "en";
|
|
820
|
+
}>;
|
|
773
821
|
roles: z.ZodArray<z.ZodEnum<{
|
|
774
822
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
775
823
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -885,6 +933,10 @@ declare class GetUsers extends AbstractApiRequest<typeof getUsersInputSchema, ty
|
|
|
885
933
|
firstName: z.ZodString;
|
|
886
934
|
lastName: z.ZodString;
|
|
887
935
|
email: z.ZodEmail;
|
|
936
|
+
preferredLocale: z.ZodEnum<{
|
|
937
|
+
it: "it";
|
|
938
|
+
en: "en";
|
|
939
|
+
}>;
|
|
888
940
|
roles: z.ZodArray<z.ZodEnum<{
|
|
889
941
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
890
942
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -1005,6 +1057,10 @@ declare class SendEmailVerificationCodeByEmail extends AbstractApiRequest<typeof
|
|
|
1005
1057
|
}
|
|
1006
1058
|
|
|
1007
1059
|
declare const updateUserInputSchema: z.ZodObject<{
|
|
1060
|
+
preferredLocale: z.ZodOptional<z.ZodEnum<{
|
|
1061
|
+
it: "it";
|
|
1062
|
+
en: "en";
|
|
1063
|
+
}>>;
|
|
1008
1064
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1009
1065
|
lastName: z.ZodOptional<z.ZodString>;
|
|
1010
1066
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -1055,6 +1111,10 @@ declare const updateUserResponseSchema: z.ZodObject<{
|
|
|
1055
1111
|
firstName: z.ZodString;
|
|
1056
1112
|
lastName: z.ZodString;
|
|
1057
1113
|
email: z.ZodEmail;
|
|
1114
|
+
preferredLocale: z.ZodEnum<{
|
|
1115
|
+
it: "it";
|
|
1116
|
+
en: "en";
|
|
1117
|
+
}>;
|
|
1058
1118
|
roles: z.ZodArray<z.ZodEnum<{
|
|
1059
1119
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1060
1120
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -1111,6 +1171,10 @@ declare class UpdateUser extends AbstractApiRequest<typeof updateUserInputSchema
|
|
|
1111
1171
|
readonly contentType = "application/merge-patch+json";
|
|
1112
1172
|
readonly accept = "application/json";
|
|
1113
1173
|
readonly inputSchema: z.ZodObject<{
|
|
1174
|
+
preferredLocale: z.ZodOptional<z.ZodEnum<{
|
|
1175
|
+
it: "it";
|
|
1176
|
+
en: "en";
|
|
1177
|
+
}>>;
|
|
1114
1178
|
firstName: z.ZodOptional<z.ZodString>;
|
|
1115
1179
|
lastName: z.ZodOptional<z.ZodString>;
|
|
1116
1180
|
email: z.ZodOptional<z.ZodEmail>;
|
|
@@ -1160,6 +1224,10 @@ declare class UpdateUser extends AbstractApiRequest<typeof updateUserInputSchema
|
|
|
1160
1224
|
firstName: z.ZodString;
|
|
1161
1225
|
lastName: z.ZodString;
|
|
1162
1226
|
email: z.ZodEmail;
|
|
1227
|
+
preferredLocale: z.ZodEnum<{
|
|
1228
|
+
it: "it";
|
|
1229
|
+
en: "en";
|
|
1230
|
+
}>;
|
|
1163
1231
|
roles: z.ZodArray<z.ZodEnum<{
|
|
1164
1232
|
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1165
1233
|
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
@@ -1332,9 +1400,15 @@ declare const userStepSchema: z.ZodEnum<{
|
|
|
1332
1400
|
create_point_of_sale: "create_point_of_sale";
|
|
1333
1401
|
}>;
|
|
1334
1402
|
type UserStep = z.infer<typeof userStepSchema>;
|
|
1403
|
+
declare const userPreferredLocales: readonly ["it", "en"];
|
|
1404
|
+
declare const userPreferredLocaleSchema: z.ZodEnum<{
|
|
1405
|
+
it: "it";
|
|
1406
|
+
en: "en";
|
|
1407
|
+
}>;
|
|
1408
|
+
type UserPreferredLocale = z.infer<typeof userPreferredLocaleSchema>;
|
|
1335
1409
|
declare const userIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id">, unknown>>;
|
|
1336
1410
|
type UserIri = z.infer<typeof userIriSchema>;
|
|
1337
1411
|
declare const userNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/users/:id"> | null, unknown>>;
|
|
1338
1412
|
type UserNullableIri = z.infer<typeof userNullableIriSchema>;
|
|
1339
1413
|
|
|
1340
|
-
export { CreateUser, type CreateUserInput, type CreateUserResponse, DeleteUser, type EmailVerificationCodeStatus, GetMe, type GetMeInput, type GetMeResponse, GetUserDetails, type GetUserDetailsInput, type GetUserDetailsResponse, GetUsers, type GetUsersInput, type GetUsersQueryParams, type GetUsersResponse, type SecurityRole, SendCurrentUserEmailVerificationCode, type SendCurrentUserEmailVerificationCodeInput, type SendCurrentUserEmailVerificationCodeResponse, SendEmailVerificationCodeByEmail, type SendEmailVerificationCodeByEmailInput, type SendEmailVerificationCodeByEmailResponse, UpdateUser, type UpdateUserInput, type UpdateUserResponse, type User, type UserIri, type UserNullableIri, type UserStep, type UsersQueryParams, VerifyCurrentUserEmailVerificationCode, type VerifyCurrentUserEmailVerificationCodeInput, type VerifyCurrentUserEmailVerificationCodeResponse, VerifyEmailVerificationCodeByEmail, type VerifyEmailVerificationCodeByEmailInput, type VerifyEmailVerificationCodeByEmailResponse, type WritableUser, createUserInputSchema, createUserResponseSchema, deleteUserInputSchema, deleteUserResponseSchema, emailVerificationCodeStatusSchema, getMeInputSchema, getMeResponseSchema, getUserDetailsInputSchema, getUserDetailsResponseSchema, getUsersInputSchema, getUsersQuerySchema, getUsersResponseSchema, securityRoleSchema, securityRoles, sendCurrentUserEmailVerificationCodeInputSchema, sendCurrentUserEmailVerificationCodeResponseSchema, sendEmailVerificationCodeByEmailInputSchema, sendEmailVerificationCodeByEmailResponseSchema, updateUserInputSchema, updateUserResponseSchema, userIriSchema, userNullableIriSchema, userSchema, userStepSchema, userSteps, usersQuerySchema, verifyCurrentUserEmailVerificationCodeInputSchema, verifyCurrentUserEmailVerificationCodeResponseSchema, verifyEmailVerificationCodeByEmailInputSchema, verifyEmailVerificationCodeByEmailResponseSchema, writableUserSchema };
|
|
1414
|
+
export { CreateUser, type CreateUserInput, type CreateUserResponse, DeleteUser, type EmailVerificationCodeStatus, GetMe, type GetMeInput, type GetMeResponse, GetUserDetails, type GetUserDetailsInput, type GetUserDetailsResponse, GetUsers, type GetUsersInput, type GetUsersQueryParams, type GetUsersResponse, type SecurityRole, SendCurrentUserEmailVerificationCode, type SendCurrentUserEmailVerificationCodeInput, type SendCurrentUserEmailVerificationCodeResponse, SendEmailVerificationCodeByEmail, type SendEmailVerificationCodeByEmailInput, type SendEmailVerificationCodeByEmailResponse, UpdateUser, type UpdateUserInput, type UpdateUserResponse, type User, type UserIri, type UserNullableIri, type UserPreferredLocale, type UserStep, type UsersQueryParams, VerifyCurrentUserEmailVerificationCode, type VerifyCurrentUserEmailVerificationCodeInput, type VerifyCurrentUserEmailVerificationCodeResponse, VerifyEmailVerificationCodeByEmail, type VerifyEmailVerificationCodeByEmailInput, type VerifyEmailVerificationCodeByEmailResponse, type WritableUser, createUserInputSchema, createUserResponseSchema, deleteUserInputSchema, deleteUserResponseSchema, emailVerificationCodeStatusSchema, getMeInputSchema, getMeResponseSchema, getUserDetailsInputSchema, getUserDetailsResponseSchema, getUsersInputSchema, getUsersQuerySchema, getUsersResponseSchema, securityRoleSchema, securityRoles, sendCurrentUserEmailVerificationCodeInputSchema, sendCurrentUserEmailVerificationCodeResponseSchema, sendEmailVerificationCodeByEmailInputSchema, sendEmailVerificationCodeByEmailResponseSchema, updateUserInputSchema, updateUserResponseSchema, userIriSchema, userNullableIriSchema, userPreferredLocaleSchema, userPreferredLocales, userSchema, userStepSchema, userSteps, usersQuerySchema, verifyCurrentUserEmailVerificationCodeInputSchema, verifyCurrentUserEmailVerificationCodeResponseSchema, verifyEmailVerificationCodeByEmailInputSchema, verifyEmailVerificationCodeByEmailResponseSchema, writableUserSchema };
|
package/dist/index.js
CHANGED
|
@@ -13828,6 +13828,8 @@ var userSteps = [
|
|
|
13828
13828
|
"create_point_of_sale"
|
|
13829
13829
|
];
|
|
13830
13830
|
var userStepSchema = external_exports.enum(userSteps);
|
|
13831
|
+
var userPreferredLocales = ["it", "en"];
|
|
13832
|
+
var userPreferredLocaleSchema = external_exports.enum(userPreferredLocales);
|
|
13831
13833
|
var userIriSchema = iriSchema("/users/:id");
|
|
13832
13834
|
var userNullableIriSchema = iriNullableSchema("/users/:id");
|
|
13833
13835
|
|
|
@@ -13837,6 +13839,7 @@ var userSchema = external_exports.object({
|
|
|
13837
13839
|
firstName: external_exports.string(),
|
|
13838
13840
|
lastName: external_exports.string(),
|
|
13839
13841
|
email: external_exports.email(),
|
|
13842
|
+
preferredLocale: userPreferredLocaleSchema,
|
|
13840
13843
|
roles: securityRoleSchema.array(),
|
|
13841
13844
|
completedSteps: userStepSchema.array(),
|
|
13842
13845
|
emailVerified: external_exports.boolean(),
|
|
@@ -13848,7 +13851,8 @@ var writableUserSchema = userSchema.pick({
|
|
|
13848
13851
|
firstName: true,
|
|
13849
13852
|
lastName: true,
|
|
13850
13853
|
roles: true,
|
|
13851
|
-
email: true
|
|
13854
|
+
email: true,
|
|
13855
|
+
preferredLocale: true
|
|
13852
13856
|
}).extend({
|
|
13853
13857
|
plainPassword: external_exports.string().optional()
|
|
13854
13858
|
}).partial();
|
|
@@ -14118,6 +14122,8 @@ export {
|
|
|
14118
14122
|
updateUserResponseSchema,
|
|
14119
14123
|
userIriSchema,
|
|
14120
14124
|
userNullableIriSchema,
|
|
14125
|
+
userPreferredLocaleSchema,
|
|
14126
|
+
userPreferredLocales,
|
|
14121
14127
|
userSchema,
|
|
14122
14128
|
userStepSchema,
|
|
14123
14129
|
userSteps,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-user",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for User Management",
|
|
4
|
-
"version": "2.23.
|
|
4
|
+
"version": "2.23.19",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.23.
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.23.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.23.19",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.23.19"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|