@deliverart/sdk-js-user 2.35.4 → 2.36.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/index.cjs +41 -13
- package/dist/index.d.cts +137 -1
- package/dist/index.d.ts +137 -1
- package/dist/index.js +38 -13
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -180,3 +180,7 @@ async function userManagement() {
|
|
|
180
180
|
## License
|
|
181
181
|
|
|
182
182
|
MIT
|
|
183
|
+
|
|
184
|
+
## Administrative email verification
|
|
185
|
+
|
|
186
|
+
Super admins can call `sdk.call(new SetUserEmailVerification(userId, true))` to verify an existing account (or pass `false` to revoke verification) without an email link. The idempotent operation returns the updated user, synchronizes verification steps, clears pending email codes, and preserves roles and suspension. Generic CreateUser/UpdateUser payloads do not accept `emailVerified`.
|
package/dist/index.cjs
CHANGED
|
@@ -27,6 +27,7 @@ __export(index_exports, {
|
|
|
27
27
|
GetUsers: () => GetUsers,
|
|
28
28
|
SendCurrentUserEmailVerificationCode: () => SendCurrentUserEmailVerificationCode,
|
|
29
29
|
SendEmailVerificationCodeByEmail: () => SendEmailVerificationCodeByEmail,
|
|
30
|
+
SetUserEmailVerification: () => SetUserEmailVerification,
|
|
30
31
|
UpdateUser: () => UpdateUser,
|
|
31
32
|
VerifyCurrentUserEmailVerificationCode: () => VerifyCurrentUserEmailVerificationCode,
|
|
32
33
|
VerifyEmailVerificationCodeByEmail: () => VerifyEmailVerificationCodeByEmail,
|
|
@@ -48,6 +49,8 @@ __export(index_exports, {
|
|
|
48
49
|
sendCurrentUserEmailVerificationCodeResponseSchema: () => sendCurrentUserEmailVerificationCodeResponseSchema,
|
|
49
50
|
sendEmailVerificationCodeByEmailInputSchema: () => sendEmailVerificationCodeByEmailInputSchema,
|
|
50
51
|
sendEmailVerificationCodeByEmailResponseSchema: () => sendEmailVerificationCodeByEmailResponseSchema,
|
|
52
|
+
setUserEmailVerificationInputSchema: () => setUserEmailVerificationInputSchema,
|
|
53
|
+
setUserEmailVerificationResponseSchema: () => setUserEmailVerificationResponseSchema,
|
|
51
54
|
updateUserInputSchema: () => updateUserInputSchema,
|
|
52
55
|
updateUserResponseSchema: () => updateUserResponseSchema,
|
|
53
56
|
userIriSchema: () => userIriSchema,
|
|
@@ -326,11 +329,33 @@ var SendEmailVerificationCodeByEmail = class extends import_sdk_js_core7.Abstrac
|
|
|
326
329
|
}
|
|
327
330
|
};
|
|
328
331
|
|
|
329
|
-
// src/requests/
|
|
332
|
+
// src/requests/SetUserEmailVerification.ts
|
|
330
333
|
var import_sdk_js_core8 = require("@deliverart/sdk-js-core");
|
|
334
|
+
var import_zod9 = require("zod");
|
|
335
|
+
var setUserEmailVerificationInputSchema = import_zod9.z.object({ emailVerified: import_zod9.z.boolean() });
|
|
336
|
+
var setUserEmailVerificationResponseSchema = userSchema;
|
|
337
|
+
var SetUserEmailVerification = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
338
|
+
constructor(userId, emailVerified) {
|
|
339
|
+
super({ emailVerified });
|
|
340
|
+
this.method = "POST";
|
|
341
|
+
this.contentType = "application/json";
|
|
342
|
+
this.accept = "application/json";
|
|
343
|
+
this.inputSchema = setUserEmailVerificationInputSchema;
|
|
344
|
+
this.outputSchema = setUserEmailVerificationResponseSchema;
|
|
345
|
+
this.querySchema = void 0;
|
|
346
|
+
this.headersSchema = void 0;
|
|
347
|
+
this.userId = userId;
|
|
348
|
+
}
|
|
349
|
+
getPath() {
|
|
350
|
+
return `/users/${this.userId}/email-verification`;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
// src/requests/UpdateUser.ts
|
|
355
|
+
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
331
356
|
var updateUserInputSchema = writableUserSchema;
|
|
332
357
|
var updateUserResponseSchema = userSchema;
|
|
333
|
-
var UpdateUser = class extends
|
|
358
|
+
var UpdateUser = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
334
359
|
constructor(userId, input) {
|
|
335
360
|
super(input);
|
|
336
361
|
this.method = "PATCH";
|
|
@@ -348,13 +373,13 @@ var UpdateUser = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
|
348
373
|
};
|
|
349
374
|
|
|
350
375
|
// src/requests/VerifyCurrentUserEmailVerificationCode.ts
|
|
351
|
-
var
|
|
352
|
-
var
|
|
353
|
-
var verifyCurrentUserEmailVerificationCodeInputSchema =
|
|
354
|
-
code:
|
|
376
|
+
var import_sdk_js_core10 = require("@deliverart/sdk-js-core");
|
|
377
|
+
var import_zod10 = require("zod");
|
|
378
|
+
var verifyCurrentUserEmailVerificationCodeInputSchema = import_zod10.z.object({
|
|
379
|
+
code: import_zod10.z.string().regex(/^\d{6}$/)
|
|
355
380
|
});
|
|
356
381
|
var verifyCurrentUserEmailVerificationCodeResponseSchema = emailVerificationCodeStatusSchema;
|
|
357
|
-
var VerifyCurrentUserEmailVerificationCode = class extends
|
|
382
|
+
var VerifyCurrentUserEmailVerificationCode = class extends import_sdk_js_core10.AbstractApiRequest {
|
|
358
383
|
constructor(input) {
|
|
359
384
|
super(input);
|
|
360
385
|
this.method = "POST";
|
|
@@ -371,14 +396,14 @@ var VerifyCurrentUserEmailVerificationCode = class extends import_sdk_js_core9.A
|
|
|
371
396
|
};
|
|
372
397
|
|
|
373
398
|
// src/requests/VerifyEmailVerificationCodeByEmail.ts
|
|
374
|
-
var
|
|
375
|
-
var
|
|
376
|
-
var verifyEmailVerificationCodeByEmailInputSchema =
|
|
377
|
-
email:
|
|
378
|
-
code:
|
|
399
|
+
var import_sdk_js_core11 = require("@deliverart/sdk-js-core");
|
|
400
|
+
var import_zod11 = require("zod");
|
|
401
|
+
var verifyEmailVerificationCodeByEmailInputSchema = import_zod11.z.object({
|
|
402
|
+
email: import_zod11.z.email(),
|
|
403
|
+
code: import_zod11.z.string().regex(/^\d{6}$/)
|
|
379
404
|
});
|
|
380
405
|
var verifyEmailVerificationCodeByEmailResponseSchema = emailVerificationCodeStatusSchema;
|
|
381
|
-
var VerifyEmailVerificationCodeByEmail = class extends
|
|
406
|
+
var VerifyEmailVerificationCodeByEmail = class extends import_sdk_js_core11.AbstractApiRequest {
|
|
382
407
|
constructor(input) {
|
|
383
408
|
super(input);
|
|
384
409
|
this.method = "POST";
|
|
@@ -402,6 +427,7 @@ var VerifyEmailVerificationCodeByEmail = class extends import_sdk_js_core10.Abst
|
|
|
402
427
|
GetUsers,
|
|
403
428
|
SendCurrentUserEmailVerificationCode,
|
|
404
429
|
SendEmailVerificationCodeByEmail,
|
|
430
|
+
SetUserEmailVerification,
|
|
405
431
|
UpdateUser,
|
|
406
432
|
VerifyCurrentUserEmailVerificationCode,
|
|
407
433
|
VerifyEmailVerificationCodeByEmail,
|
|
@@ -423,6 +449,8 @@ var VerifyEmailVerificationCodeByEmail = class extends import_sdk_js_core10.Abst
|
|
|
423
449
|
sendCurrentUserEmailVerificationCodeResponseSchema,
|
|
424
450
|
sendEmailVerificationCodeByEmailInputSchema,
|
|
425
451
|
sendEmailVerificationCodeByEmailResponseSchema,
|
|
452
|
+
setUserEmailVerificationInputSchema,
|
|
453
|
+
setUserEmailVerificationResponseSchema,
|
|
426
454
|
updateUserInputSchema,
|
|
427
455
|
updateUserResponseSchema,
|
|
428
456
|
userIriSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -1056,6 +1056,142 @@ declare class SendEmailVerificationCodeByEmail extends AbstractApiRequest<typeof
|
|
|
1056
1056
|
getPath(): string;
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
|
+
declare const setUserEmailVerificationInputSchema: z.ZodObject<{
|
|
1060
|
+
emailVerified: z.ZodBoolean;
|
|
1061
|
+
}, z.core.$strip>;
|
|
1062
|
+
declare const setUserEmailVerificationResponseSchema: z.ZodObject<{
|
|
1063
|
+
id: z.ZodString;
|
|
1064
|
+
firstName: z.ZodString;
|
|
1065
|
+
lastName: z.ZodString;
|
|
1066
|
+
email: z.ZodEmail;
|
|
1067
|
+
preferredLocale: z.ZodEnum<{
|
|
1068
|
+
it: "it";
|
|
1069
|
+
en: "en";
|
|
1070
|
+
}>;
|
|
1071
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1072
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1073
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1074
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1075
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1076
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1077
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1078
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1079
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1080
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1081
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1082
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1083
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1084
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1085
|
+
ROLE_STATS_ACCESS: "ROLE_STATS_ACCESS";
|
|
1086
|
+
ROLE_DEV_ACCESS: "ROLE_DEV_ACCESS";
|
|
1087
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1088
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1089
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1090
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1091
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1092
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1093
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1094
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1095
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1096
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1097
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1098
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1099
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1100
|
+
ROLE_STATS_ADMIN: "ROLE_STATS_ADMIN";
|
|
1101
|
+
ROLE_DEV_ADMIN: "ROLE_DEV_ADMIN";
|
|
1102
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1103
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1104
|
+
ROLE_ECOMMERCE_CUSTOMER: "ROLE_ECOMMERCE_CUSTOMER";
|
|
1105
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1106
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1107
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1108
|
+
ROLE_USER: "ROLE_USER";
|
|
1109
|
+
}>>;
|
|
1110
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1111
|
+
registration: "registration";
|
|
1112
|
+
verify_email: "verify_email";
|
|
1113
|
+
create_company: "create_company";
|
|
1114
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1115
|
+
}>>;
|
|
1116
|
+
emailVerified: z.ZodBoolean;
|
|
1117
|
+
suspended: z.ZodBoolean;
|
|
1118
|
+
createdAt: z.ZodString;
|
|
1119
|
+
updatedAt: z.ZodString;
|
|
1120
|
+
}, z.core.$strip>;
|
|
1121
|
+
type SetUserEmailVerificationResponse = z.output<typeof setUserEmailVerificationResponseSchema>;
|
|
1122
|
+
declare class SetUserEmailVerification extends AbstractApiRequest<typeof setUserEmailVerificationInputSchema, typeof setUserEmailVerificationResponseSchema> {
|
|
1123
|
+
readonly method = "POST";
|
|
1124
|
+
readonly contentType = "application/json";
|
|
1125
|
+
readonly accept = "application/json";
|
|
1126
|
+
readonly inputSchema: z.ZodObject<{
|
|
1127
|
+
emailVerified: z.ZodBoolean;
|
|
1128
|
+
}, z.core.$strip>;
|
|
1129
|
+
readonly outputSchema: z.ZodObject<{
|
|
1130
|
+
id: z.ZodString;
|
|
1131
|
+
firstName: z.ZodString;
|
|
1132
|
+
lastName: z.ZodString;
|
|
1133
|
+
email: z.ZodEmail;
|
|
1134
|
+
preferredLocale: z.ZodEnum<{
|
|
1135
|
+
it: "it";
|
|
1136
|
+
en: "en";
|
|
1137
|
+
}>;
|
|
1138
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1139
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1140
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1141
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1142
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1143
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1144
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1145
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1146
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1147
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1148
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1149
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1150
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1151
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1152
|
+
ROLE_STATS_ACCESS: "ROLE_STATS_ACCESS";
|
|
1153
|
+
ROLE_DEV_ACCESS: "ROLE_DEV_ACCESS";
|
|
1154
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1155
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1156
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1157
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1158
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1159
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1160
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1161
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1162
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1163
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1164
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1165
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1166
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1167
|
+
ROLE_STATS_ADMIN: "ROLE_STATS_ADMIN";
|
|
1168
|
+
ROLE_DEV_ADMIN: "ROLE_DEV_ADMIN";
|
|
1169
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1170
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1171
|
+
ROLE_ECOMMERCE_CUSTOMER: "ROLE_ECOMMERCE_CUSTOMER";
|
|
1172
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1173
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1174
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1175
|
+
ROLE_USER: "ROLE_USER";
|
|
1176
|
+
}>>;
|
|
1177
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1178
|
+
registration: "registration";
|
|
1179
|
+
verify_email: "verify_email";
|
|
1180
|
+
create_company: "create_company";
|
|
1181
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1182
|
+
}>>;
|
|
1183
|
+
emailVerified: z.ZodBoolean;
|
|
1184
|
+
suspended: z.ZodBoolean;
|
|
1185
|
+
createdAt: z.ZodString;
|
|
1186
|
+
updatedAt: z.ZodString;
|
|
1187
|
+
}, z.core.$strip>;
|
|
1188
|
+
readonly querySchema: undefined;
|
|
1189
|
+
readonly headersSchema: undefined;
|
|
1190
|
+
private readonly userId;
|
|
1191
|
+
constructor(userId: string, emailVerified: boolean);
|
|
1192
|
+
getPath(): string;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1059
1195
|
declare const updateUserInputSchema: z.ZodObject<{
|
|
1060
1196
|
preferredLocale: z.ZodOptional<z.ZodEnum<{
|
|
1061
1197
|
it: "it";
|
|
@@ -1411,4 +1547,4 @@ type UserIri = z.infer<typeof userIriSchema>;
|
|
|
1411
1547
|
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>>;
|
|
1412
1548
|
type UserNullableIri = z.infer<typeof userNullableIriSchema>;
|
|
1413
1549
|
|
|
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 };
|
|
1550
|
+
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, SetUserEmailVerification, type SetUserEmailVerificationResponse, 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, setUserEmailVerificationInputSchema, setUserEmailVerificationResponseSchema, updateUserInputSchema, updateUserResponseSchema, userIriSchema, userNullableIriSchema, userPreferredLocaleSchema, userPreferredLocales, userSchema, userStepSchema, userSteps, usersQuerySchema, verifyCurrentUserEmailVerificationCodeInputSchema, verifyCurrentUserEmailVerificationCodeResponseSchema, verifyEmailVerificationCodeByEmailInputSchema, verifyEmailVerificationCodeByEmailResponseSchema, writableUserSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -1056,6 +1056,142 @@ declare class SendEmailVerificationCodeByEmail extends AbstractApiRequest<typeof
|
|
|
1056
1056
|
getPath(): string;
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
|
+
declare const setUserEmailVerificationInputSchema: z.ZodObject<{
|
|
1060
|
+
emailVerified: z.ZodBoolean;
|
|
1061
|
+
}, z.core.$strip>;
|
|
1062
|
+
declare const setUserEmailVerificationResponseSchema: z.ZodObject<{
|
|
1063
|
+
id: z.ZodString;
|
|
1064
|
+
firstName: z.ZodString;
|
|
1065
|
+
lastName: z.ZodString;
|
|
1066
|
+
email: z.ZodEmail;
|
|
1067
|
+
preferredLocale: z.ZodEnum<{
|
|
1068
|
+
it: "it";
|
|
1069
|
+
en: "en";
|
|
1070
|
+
}>;
|
|
1071
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1072
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1073
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1074
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1075
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1076
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1077
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1078
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1079
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1080
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1081
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1082
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1083
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1084
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1085
|
+
ROLE_STATS_ACCESS: "ROLE_STATS_ACCESS";
|
|
1086
|
+
ROLE_DEV_ACCESS: "ROLE_DEV_ACCESS";
|
|
1087
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1088
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1089
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1090
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1091
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1092
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1093
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1094
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1095
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1096
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1097
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1098
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1099
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1100
|
+
ROLE_STATS_ADMIN: "ROLE_STATS_ADMIN";
|
|
1101
|
+
ROLE_DEV_ADMIN: "ROLE_DEV_ADMIN";
|
|
1102
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1103
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1104
|
+
ROLE_ECOMMERCE_CUSTOMER: "ROLE_ECOMMERCE_CUSTOMER";
|
|
1105
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1106
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1107
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1108
|
+
ROLE_USER: "ROLE_USER";
|
|
1109
|
+
}>>;
|
|
1110
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1111
|
+
registration: "registration";
|
|
1112
|
+
verify_email: "verify_email";
|
|
1113
|
+
create_company: "create_company";
|
|
1114
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1115
|
+
}>>;
|
|
1116
|
+
emailVerified: z.ZodBoolean;
|
|
1117
|
+
suspended: z.ZodBoolean;
|
|
1118
|
+
createdAt: z.ZodString;
|
|
1119
|
+
updatedAt: z.ZodString;
|
|
1120
|
+
}, z.core.$strip>;
|
|
1121
|
+
type SetUserEmailVerificationResponse = z.output<typeof setUserEmailVerificationResponseSchema>;
|
|
1122
|
+
declare class SetUserEmailVerification extends AbstractApiRequest<typeof setUserEmailVerificationInputSchema, typeof setUserEmailVerificationResponseSchema> {
|
|
1123
|
+
readonly method = "POST";
|
|
1124
|
+
readonly contentType = "application/json";
|
|
1125
|
+
readonly accept = "application/json";
|
|
1126
|
+
readonly inputSchema: z.ZodObject<{
|
|
1127
|
+
emailVerified: z.ZodBoolean;
|
|
1128
|
+
}, z.core.$strip>;
|
|
1129
|
+
readonly outputSchema: z.ZodObject<{
|
|
1130
|
+
id: z.ZodString;
|
|
1131
|
+
firstName: z.ZodString;
|
|
1132
|
+
lastName: z.ZodString;
|
|
1133
|
+
email: z.ZodEmail;
|
|
1134
|
+
preferredLocale: z.ZodEnum<{
|
|
1135
|
+
it: "it";
|
|
1136
|
+
en: "en";
|
|
1137
|
+
}>;
|
|
1138
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1139
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1140
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1141
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1142
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1143
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1144
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1145
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1146
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1147
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1148
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1149
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1150
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1151
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1152
|
+
ROLE_STATS_ACCESS: "ROLE_STATS_ACCESS";
|
|
1153
|
+
ROLE_DEV_ACCESS: "ROLE_DEV_ACCESS";
|
|
1154
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1155
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1156
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1157
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1158
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1159
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1160
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1161
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1162
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1163
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1164
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1165
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1166
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1167
|
+
ROLE_STATS_ADMIN: "ROLE_STATS_ADMIN";
|
|
1168
|
+
ROLE_DEV_ADMIN: "ROLE_DEV_ADMIN";
|
|
1169
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1170
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1171
|
+
ROLE_ECOMMERCE_CUSTOMER: "ROLE_ECOMMERCE_CUSTOMER";
|
|
1172
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1173
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1174
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1175
|
+
ROLE_USER: "ROLE_USER";
|
|
1176
|
+
}>>;
|
|
1177
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1178
|
+
registration: "registration";
|
|
1179
|
+
verify_email: "verify_email";
|
|
1180
|
+
create_company: "create_company";
|
|
1181
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1182
|
+
}>>;
|
|
1183
|
+
emailVerified: z.ZodBoolean;
|
|
1184
|
+
suspended: z.ZodBoolean;
|
|
1185
|
+
createdAt: z.ZodString;
|
|
1186
|
+
updatedAt: z.ZodString;
|
|
1187
|
+
}, z.core.$strip>;
|
|
1188
|
+
readonly querySchema: undefined;
|
|
1189
|
+
readonly headersSchema: undefined;
|
|
1190
|
+
private readonly userId;
|
|
1191
|
+
constructor(userId: string, emailVerified: boolean);
|
|
1192
|
+
getPath(): string;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1059
1195
|
declare const updateUserInputSchema: z.ZodObject<{
|
|
1060
1196
|
preferredLocale: z.ZodOptional<z.ZodEnum<{
|
|
1061
1197
|
it: "it";
|
|
@@ -1411,4 +1547,4 @@ type UserIri = z.infer<typeof userIriSchema>;
|
|
|
1411
1547
|
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>>;
|
|
1412
1548
|
type UserNullableIri = z.infer<typeof userNullableIriSchema>;
|
|
1413
1549
|
|
|
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 };
|
|
1550
|
+
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, SetUserEmailVerification, type SetUserEmailVerificationResponse, 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, setUserEmailVerificationInputSchema, setUserEmailVerificationResponseSchema, updateUserInputSchema, updateUserResponseSchema, userIriSchema, userNullableIriSchema, userPreferredLocaleSchema, userPreferredLocales, userSchema, userStepSchema, userSteps, usersQuerySchema, verifyCurrentUserEmailVerificationCodeInputSchema, verifyCurrentUserEmailVerificationCodeResponseSchema, verifyEmailVerificationCodeByEmailInputSchema, verifyEmailVerificationCodeByEmailResponseSchema, writableUserSchema };
|
package/dist/index.js
CHANGED
|
@@ -258,11 +258,33 @@ var SendEmailVerificationCodeByEmail = class extends AbstractApiRequest7 {
|
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
// src/requests/
|
|
261
|
+
// src/requests/SetUserEmailVerification.ts
|
|
262
262
|
import { AbstractApiRequest as AbstractApiRequest8 } from "@deliverart/sdk-js-core";
|
|
263
|
+
import { z as z9 } from "zod";
|
|
264
|
+
var setUserEmailVerificationInputSchema = z9.object({ emailVerified: z9.boolean() });
|
|
265
|
+
var setUserEmailVerificationResponseSchema = userSchema;
|
|
266
|
+
var SetUserEmailVerification = class extends AbstractApiRequest8 {
|
|
267
|
+
constructor(userId, emailVerified) {
|
|
268
|
+
super({ emailVerified });
|
|
269
|
+
this.method = "POST";
|
|
270
|
+
this.contentType = "application/json";
|
|
271
|
+
this.accept = "application/json";
|
|
272
|
+
this.inputSchema = setUserEmailVerificationInputSchema;
|
|
273
|
+
this.outputSchema = setUserEmailVerificationResponseSchema;
|
|
274
|
+
this.querySchema = void 0;
|
|
275
|
+
this.headersSchema = void 0;
|
|
276
|
+
this.userId = userId;
|
|
277
|
+
}
|
|
278
|
+
getPath() {
|
|
279
|
+
return `/users/${this.userId}/email-verification`;
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
// src/requests/UpdateUser.ts
|
|
284
|
+
import { AbstractApiRequest as AbstractApiRequest9 } from "@deliverart/sdk-js-core";
|
|
263
285
|
var updateUserInputSchema = writableUserSchema;
|
|
264
286
|
var updateUserResponseSchema = userSchema;
|
|
265
|
-
var UpdateUser = class extends
|
|
287
|
+
var UpdateUser = class extends AbstractApiRequest9 {
|
|
266
288
|
constructor(userId, input) {
|
|
267
289
|
super(input);
|
|
268
290
|
this.method = "PATCH";
|
|
@@ -280,13 +302,13 @@ var UpdateUser = class extends AbstractApiRequest8 {
|
|
|
280
302
|
};
|
|
281
303
|
|
|
282
304
|
// src/requests/VerifyCurrentUserEmailVerificationCode.ts
|
|
283
|
-
import { AbstractApiRequest as
|
|
284
|
-
import { z as
|
|
285
|
-
var verifyCurrentUserEmailVerificationCodeInputSchema =
|
|
286
|
-
code:
|
|
305
|
+
import { AbstractApiRequest as AbstractApiRequest10 } from "@deliverart/sdk-js-core";
|
|
306
|
+
import { z as z10 } from "zod";
|
|
307
|
+
var verifyCurrentUserEmailVerificationCodeInputSchema = z10.object({
|
|
308
|
+
code: z10.string().regex(/^\d{6}$/)
|
|
287
309
|
});
|
|
288
310
|
var verifyCurrentUserEmailVerificationCodeResponseSchema = emailVerificationCodeStatusSchema;
|
|
289
|
-
var VerifyCurrentUserEmailVerificationCode = class extends
|
|
311
|
+
var VerifyCurrentUserEmailVerificationCode = class extends AbstractApiRequest10 {
|
|
290
312
|
constructor(input) {
|
|
291
313
|
super(input);
|
|
292
314
|
this.method = "POST";
|
|
@@ -303,14 +325,14 @@ var VerifyCurrentUserEmailVerificationCode = class extends AbstractApiRequest9 {
|
|
|
303
325
|
};
|
|
304
326
|
|
|
305
327
|
// src/requests/VerifyEmailVerificationCodeByEmail.ts
|
|
306
|
-
import { AbstractApiRequest as
|
|
307
|
-
import { z as
|
|
308
|
-
var verifyEmailVerificationCodeByEmailInputSchema =
|
|
309
|
-
email:
|
|
310
|
-
code:
|
|
328
|
+
import { AbstractApiRequest as AbstractApiRequest11 } from "@deliverart/sdk-js-core";
|
|
329
|
+
import { z as z11 } from "zod";
|
|
330
|
+
var verifyEmailVerificationCodeByEmailInputSchema = z11.object({
|
|
331
|
+
email: z11.email(),
|
|
332
|
+
code: z11.string().regex(/^\d{6}$/)
|
|
311
333
|
});
|
|
312
334
|
var verifyEmailVerificationCodeByEmailResponseSchema = emailVerificationCodeStatusSchema;
|
|
313
|
-
var VerifyEmailVerificationCodeByEmail = class extends
|
|
335
|
+
var VerifyEmailVerificationCodeByEmail = class extends AbstractApiRequest11 {
|
|
314
336
|
constructor(input) {
|
|
315
337
|
super(input);
|
|
316
338
|
this.method = "POST";
|
|
@@ -333,6 +355,7 @@ export {
|
|
|
333
355
|
GetUsers,
|
|
334
356
|
SendCurrentUserEmailVerificationCode,
|
|
335
357
|
SendEmailVerificationCodeByEmail,
|
|
358
|
+
SetUserEmailVerification,
|
|
336
359
|
UpdateUser,
|
|
337
360
|
VerifyCurrentUserEmailVerificationCode,
|
|
338
361
|
VerifyEmailVerificationCodeByEmail,
|
|
@@ -354,6 +377,8 @@ export {
|
|
|
354
377
|
sendCurrentUserEmailVerificationCodeResponseSchema,
|
|
355
378
|
sendEmailVerificationCodeByEmailInputSchema,
|
|
356
379
|
sendEmailVerificationCodeByEmailResponseSchema,
|
|
380
|
+
setUserEmailVerificationInputSchema,
|
|
381
|
+
setUserEmailVerificationResponseSchema,
|
|
357
382
|
updateUserInputSchema,
|
|
358
383
|
updateUserResponseSchema,
|
|
359
384
|
userIriSchema,
|
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.
|
|
4
|
+
"version": "2.36.0-dev.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -19,14 +19,15 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"zod": "4.3.5",
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
22
|
+
"@deliverart/sdk-js-core": "2.36.0-dev.0",
|
|
23
|
+
"@deliverart/sdk-js-global-types": "2.36.0-dev.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsup src/index.ts --dts --format esm,cjs",
|
|
30
|
-
"dev": "tsup src/index.ts --dts --watch"
|
|
30
|
+
"dev": "tsup src/index.ts --dts --watch",
|
|
31
|
+
"test": "node --test src/*.test.mjs"
|
|
31
32
|
}
|
|
32
33
|
}
|