@veruna/api-contracts 1.0.70 → 1.0.71
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/build/controllers/index.d.ts +4 -0
- package/build/controllers/index.js +9 -1
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/vk-auth.controllers.d.ts +1 -0
- package/build/controllers/vk-auth.controllers.js +5 -0
- package/build/controllers/vk-auth.controllers.js.map +1 -0
- package/build/controllers/vk-profile.controllers.d.ts +1 -0
- package/build/controllers/vk-profile.controllers.js +5 -0
- package/build/controllers/vk-profile.controllers.js.map +1 -0
- package/build/controllers/yandex-auth.controllers.d.ts +1 -0
- package/build/controllers/yandex-auth.controllers.js +5 -0
- package/build/controllers/yandex-auth.controllers.js.map +1 -0
- package/build/controllers/yandex-profile.controllers.d.ts +1 -0
- package/build/controllers/yandex-profile.controllers.js +5 -0
- package/build/controllers/yandex-profile.controllers.js.map +1 -0
- package/build/locales/validation.d.ts +98 -0
- package/build/locales/validation.js +98 -0
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +24 -0
- package/build/rest-api.js +24 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +4 -0
- package/build/routes/index.js +9 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/vk-auth.routes.d.ts +6 -0
- package/build/routes/vk-auth.routes.js +10 -0
- package/build/routes/vk-auth.routes.js.map +1 -0
- package/build/routes/vk-profile.routes.d.ts +6 -0
- package/build/routes/vk-profile.routes.js +10 -0
- package/build/routes/vk-profile.routes.js.map +1 -0
- package/build/routes/yandex-auth.routes.d.ts +6 -0
- package/build/routes/yandex-auth.routes.js +10 -0
- package/build/routes/yandex-auth.routes.js.map +1 -0
- package/build/routes/yandex-profile.routes.d.ts +6 -0
- package/build/routes/yandex-profile.routes.js +10 -0
- package/build/routes/yandex-profile.routes.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/auth/commands/signin.command.d.ts +1 -1
- package/build/v1/auth/commands/signup.command.d.ts +1 -1
- package/build/v1/auth/schemas/auth-response.schema.d.ts +1 -1
- package/build/v1/index.d.ts +5 -0
- package/build/v1/index.js +5 -0
- package/build/v1/index.js.map +1 -1
- package/build/v1/oauth-common/index.d.ts +1 -0
- package/build/v1/oauth-common/index.js +18 -0
- package/build/v1/oauth-common/index.js.map +1 -0
- package/build/v1/oauth-common/schemas/index.d.ts +1 -0
- package/build/v1/oauth-common/schemas/index.js +18 -0
- package/build/v1/oauth-common/schemas/index.js.map +1 -0
- package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.d.ts +4 -0
- package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.js +9 -0
- package/build/v1/oauth-common/schemas/oauth-auth-request-type.enum.js.map +1 -0
- package/build/v1/telegram-auth/commands/exchange-telegram-auth.command.d.ts +1 -0
- package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.d.ts +1 -0
- package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.js +4 -0
- package/build/v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.js.map +1 -1
- package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.d.ts +1 -4
- package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js +2 -5
- package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js.map +1 -1
- package/build/v1/telegram-profile/commands/unlink-telegram.command.d.ts +1 -3
- package/build/v1/telegram-profile/commands/unlink-telegram.command.js +2 -2
- package/build/v1/telegram-profile/commands/unlink-telegram.command.js.map +1 -1
- package/build/v1/telegram-profile/schemas/index.d.ts +0 -1
- package/build/v1/telegram-profile/schemas/index.js +0 -1
- package/build/v1/telegram-profile/schemas/index.js.map +1 -1
- package/build/v1/telegram-profile/telegram-profile.errors.d.ts +2 -1
- package/build/v1/telegram-profile/telegram-profile.errors.js +5 -0
- package/build/v1/telegram-profile/telegram-profile.errors.js.map +1 -1
- package/build/v1/users/commands/toggle-marketing-consent.command.d.ts +1 -1
- package/build/v1/users/commands/update-profile.command.d.ts +1 -1
- package/build/v1/users/queries/get-current-user.query.d.ts +1 -1
- package/build/v1/users/schemas/register-type.enum.d.ts +3 -1
- package/build/v1/users/schemas/register-type.enum.js +2 -0
- package/build/v1/users/schemas/register-type.enum.js.map +1 -1
- package/build/v1/users/schemas/response-unions.schema.d.ts +3 -3
- package/build/v1/users/schemas/user-response.schema.d.ts +1 -1
- package/build/v1/users/schemas/user-response.schema.js +1 -1
- package/build/v1/users/schemas/user-response.schema.js.map +1 -1
- package/build/v1/vk-auth/commands/exchange-vk-auth.command.d.ts +15 -0
- package/build/v1/vk-auth/commands/exchange-vk-auth.command.js +14 -0
- package/build/v1/vk-auth/commands/exchange-vk-auth.command.js.map +1 -0
- package/build/v1/vk-auth/commands/index.d.ts +2 -0
- package/build/v1/vk-auth/commands/index.js +19 -0
- package/build/v1/vk-auth/commands/index.js.map +1 -0
- package/build/v1/vk-auth/commands/init-vk-auth.command.d.ts +14 -0
- package/build/v1/vk-auth/commands/init-vk-auth.command.js +15 -0
- package/build/v1/vk-auth/commands/init-vk-auth.command.js.map +1 -0
- package/build/v1/vk-auth/index.d.ts +6 -0
- package/build/v1/vk-auth/index.js +26 -0
- package/build/v1/vk-auth/index.js.map +1 -0
- package/build/v1/vk-auth/queries/get-vk-auth-status.query.d.ts +13 -0
- package/build/v1/vk-auth/queries/get-vk-auth-status.query.js +15 -0
- package/build/v1/vk-auth/queries/get-vk-auth-status.query.js.map +1 -0
- package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.d.ts +14 -0
- package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js +15 -0
- package/build/v1/vk-auth/queries/handle-vk-auth-callback.query.js.map +1 -0
- package/build/v1/vk-auth/queries/index.d.ts +2 -0
- package/build/v1/vk-auth/queries/index.js +19 -0
- package/build/v1/vk-auth/queries/index.js.map +1 -0
- package/build/v1/vk-auth/schemas/index.d.ts +7 -0
- package/build/v1/vk-auth/schemas/index.js +24 -0
- package/build/v1/vk-auth/schemas/index.js.map +1 -0
- package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.d.ts +7 -0
- package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.js +10 -0
- package/build/v1/vk-auth/schemas/vk-auth-callback-query.schema.js.map +1 -0
- package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.d.ts +6 -0
- package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.js +14 -0
- package/build/v1/vk-auth/schemas/vk-auth-exchange-request.schema.js.map +1 -0
- package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.d.ts +6 -0
- package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.js +9 -0
- package/build/v1/vk-auth/schemas/vk-auth-exchange-response.schema.js.map +1 -0
- package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.d.ts +7 -0
- package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.js +10 -0
- package/build/v1/vk-auth/schemas/vk-auth-init-response.schema.js.map +1 -0
- package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.d.ts +1 -0
- package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.js +6 -0
- package/build/v1/vk-auth/schemas/vk-auth-request-type.enum.js.map +1 -0
- package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.d.ts +7 -0
- package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.js +10 -0
- package/build/v1/vk-auth/schemas/vk-auth-status-response.schema.js.map +1 -0
- package/build/v1/vk-auth/schemas/vk-auth-status.enum.d.ts +7 -0
- package/build/v1/vk-auth/schemas/vk-auth-status.enum.js +12 -0
- package/build/v1/vk-auth/schemas/vk-auth-status.enum.js.map +1 -0
- package/build/v1/vk-auth/vk-auth.errors.d.ts +14 -0
- package/build/v1/vk-auth/vk-auth.errors.js +29 -0
- package/build/v1/vk-auth/vk-auth.errors.js.map +1 -0
- package/build/v1/vk-profile/commands/index.d.ts +2 -0
- package/build/v1/vk-profile/commands/index.js +19 -0
- package/build/v1/vk-profile/commands/index.js.map +1 -0
- package/build/v1/vk-profile/commands/link-vk.command.d.ts +14 -0
- package/build/v1/vk-profile/commands/link-vk.command.js +15 -0
- package/build/v1/vk-profile/commands/link-vk.command.js.map +1 -0
- package/build/v1/vk-profile/commands/unlink-vk.command.d.ts +8 -0
- package/build/v1/vk-profile/commands/unlink-vk.command.js +13 -0
- package/build/v1/vk-profile/commands/unlink-vk.command.js.map +1 -0
- package/build/v1/vk-profile/index.d.ts +6 -0
- package/build/v1/vk-profile/index.js +26 -0
- package/build/v1/vk-profile/index.js.map +1 -0
- package/build/v1/vk-profile/queries/get-vk-link-status.query.d.ts +12 -0
- package/build/v1/vk-profile/queries/get-vk-link-status.query.js +13 -0
- package/build/v1/vk-profile/queries/get-vk-link-status.query.js.map +1 -0
- package/build/v1/vk-profile/queries/get-vk-profile.query.d.ts +20 -0
- package/build/v1/vk-profile/queries/get-vk-profile.query.js +13 -0
- package/build/v1/vk-profile/queries/get-vk-profile.query.js.map +1 -0
- package/build/v1/vk-profile/queries/index.d.ts +2 -0
- package/build/v1/vk-profile/queries/index.js +19 -0
- package/build/v1/vk-profile/queries/index.js.map +1 -0
- package/build/v1/vk-profile/schemas/index.d.ts +3 -0
- package/build/v1/vk-profile/schemas/index.js +20 -0
- package/build/v1/vk-profile/schemas/index.js.map +1 -0
- package/build/v1/vk-profile/schemas/vk-link-response.schema.d.ts +7 -0
- package/build/v1/vk-profile/schemas/vk-link-response.schema.js +10 -0
- package/build/v1/vk-profile/schemas/vk-link-response.schema.js.map +1 -0
- package/build/v1/vk-profile/schemas/vk-link-status-response.schema.d.ts +8 -0
- package/build/v1/vk-profile/schemas/vk-link-status-response.schema.js +11 -0
- package/build/v1/vk-profile/schemas/vk-link-status-response.schema.js.map +1 -0
- package/build/v1/vk-profile/schemas/vk-profile-response.schema.d.ts +15 -0
- package/build/v1/vk-profile/schemas/vk-profile-response.schema.js +18 -0
- package/build/v1/vk-profile/schemas/vk-profile-response.schema.js.map +1 -0
- package/build/v1/vk-profile/vk-profile.errors.d.ts +11 -0
- package/build/v1/vk-profile/vk-profile.errors.js +23 -0
- package/build/v1/vk-profile/vk-profile.errors.js.map +1 -0
- package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.d.ts +16 -0
- package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js +14 -0
- package/build/v1/yandex-auth/commands/exchange-yandex-auth.command.js.map +1 -0
- package/build/v1/yandex-auth/commands/index.d.ts +2 -0
- package/build/v1/yandex-auth/commands/index.js +19 -0
- package/build/v1/yandex-auth/commands/index.js.map +1 -0
- package/build/v1/yandex-auth/commands/init-yandex-auth.command.d.ts +14 -0
- package/build/v1/yandex-auth/commands/init-yandex-auth.command.js +15 -0
- package/build/v1/yandex-auth/commands/init-yandex-auth.command.js.map +1 -0
- package/build/v1/yandex-auth/index.d.ts +6 -0
- package/build/v1/yandex-auth/index.js +26 -0
- package/build/v1/yandex-auth/index.js.map +1 -0
- package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.d.ts +13 -0
- package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js +15 -0
- package/build/v1/yandex-auth/queries/get-yandex-auth-status.query.js.map +1 -0
- package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.d.ts +13 -0
- package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js +15 -0
- package/build/v1/yandex-auth/queries/handle-yandex-auth-callback.query.js.map +1 -0
- package/build/v1/yandex-auth/queries/index.d.ts +2 -0
- package/build/v1/yandex-auth/queries/index.js +19 -0
- package/build/v1/yandex-auth/queries/index.js.map +1 -0
- package/build/v1/yandex-auth/schemas/index.d.ts +7 -0
- package/build/v1/yandex-auth/schemas/index.js +24 -0
- package/build/v1/yandex-auth/schemas/index.js.map +1 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.d.ts +6 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.js +9 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-callback-query.schema.js.map +1 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.d.ts +6 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.js +14 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-exchange-request.schema.js.map +1 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.d.ts +6 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.js +9 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-exchange-response.schema.js.map +1 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.d.ts +7 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.js +10 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-init-response.schema.js.map +1 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.d.ts +1 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.js +6 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-request-type.enum.js.map +1 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.d.ts +7 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.js +10 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-status-response.schema.js.map +1 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.d.ts +7 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.js +12 -0
- package/build/v1/yandex-auth/schemas/yandex-auth-status.enum.js.map +1 -0
- package/build/v1/yandex-auth/yandex-auth.errors.d.ts +14 -0
- package/build/v1/yandex-auth/yandex-auth.errors.js +59 -0
- package/build/v1/yandex-auth/yandex-auth.errors.js.map +1 -0
- package/build/v1/yandex-profile/commands/index.d.ts +2 -0
- package/build/v1/yandex-profile/commands/index.js +19 -0
- package/build/v1/yandex-profile/commands/index.js.map +1 -0
- package/build/v1/yandex-profile/commands/link-yandex.command.d.ts +14 -0
- package/build/v1/yandex-profile/commands/link-yandex.command.js +15 -0
- package/build/v1/yandex-profile/commands/link-yandex.command.js.map +1 -0
- package/build/v1/yandex-profile/commands/unlink-yandex.command.d.ts +8 -0
- package/build/v1/yandex-profile/commands/unlink-yandex.command.js +13 -0
- package/build/v1/yandex-profile/commands/unlink-yandex.command.js.map +1 -0
- package/build/v1/yandex-profile/index.d.ts +6 -0
- package/build/v1/yandex-profile/index.js +26 -0
- package/build/v1/yandex-profile/index.js.map +1 -0
- package/build/v1/yandex-profile/queries/get-yandex-link-status.query.d.ts +12 -0
- package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js +13 -0
- package/build/v1/yandex-profile/queries/get-yandex-link-status.query.js.map +1 -0
- package/build/v1/yandex-profile/queries/get-yandex-profile.query.d.ts +29 -0
- package/build/v1/yandex-profile/queries/get-yandex-profile.query.js +13 -0
- package/build/v1/yandex-profile/queries/get-yandex-profile.query.js.map +1 -0
- package/build/v1/yandex-profile/queries/index.d.ts +2 -0
- package/build/v1/yandex-profile/queries/index.js +19 -0
- package/build/v1/yandex-profile/queries/index.js.map +1 -0
- package/build/v1/yandex-profile/schemas/index.d.ts +3 -0
- package/build/v1/yandex-profile/schemas/index.js +20 -0
- package/build/v1/yandex-profile/schemas/index.js.map +1 -0
- package/build/v1/yandex-profile/schemas/yandex-link-response.schema.d.ts +7 -0
- package/build/v1/yandex-profile/schemas/yandex-link-response.schema.js +10 -0
- package/build/v1/yandex-profile/schemas/yandex-link-response.schema.js.map +1 -0
- package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.d.ts +8 -0
- package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.js +11 -0
- package/build/v1/yandex-profile/schemas/yandex-link-status-response.schema.js.map +1 -0
- package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.d.ts +24 -0
- package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.js +27 -0
- package/build/v1/yandex-profile/schemas/yandex-profile-response.schema.js.map +1 -0
- package/build/v1/yandex-profile/yandex-profile.errors.d.ts +11 -0
- package/build/v1/yandex-profile/yandex-profile.errors.js +44 -0
- package/build/v1/yandex-profile/yandex-profile.errors.js.map +1 -0
- package/package.json +1 -1
- package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.d.ts +0 -5
- package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js +0 -8
- package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js.map +0 -1
|
@@ -8,7 +8,7 @@ export declare namespace AuthSignInCommand {
|
|
|
8
8
|
const Response: z.ZodObject<{
|
|
9
9
|
user: z.ZodObject<{
|
|
10
10
|
uuid: z.ZodString;
|
|
11
|
-
email: z.ZodString
|
|
11
|
+
email: z.ZodNullable<z.ZodString>;
|
|
12
12
|
name: z.ZodString;
|
|
13
13
|
role: z.ZodString;
|
|
14
14
|
registerType: z.ZodEnum<typeof import("../..").RegisterType>;
|
|
@@ -10,7 +10,7 @@ export declare namespace AuthSignupCommand {
|
|
|
10
10
|
const Response: z.ZodObject<{
|
|
11
11
|
user: z.ZodObject<{
|
|
12
12
|
uuid: z.ZodString;
|
|
13
|
-
email: z.ZodString
|
|
13
|
+
email: z.ZodNullable<z.ZodString>;
|
|
14
14
|
name: z.ZodString;
|
|
15
15
|
role: z.ZodString;
|
|
16
16
|
registerType: z.ZodEnum<typeof import("../..").RegisterType>;
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const AuthResponseSchema: z.ZodObject<{
|
|
3
3
|
user: z.ZodObject<{
|
|
4
4
|
uuid: z.ZodString;
|
|
5
|
-
email: z.ZodString
|
|
5
|
+
email: z.ZodNullable<z.ZodString>;
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
role: z.ZodString;
|
|
8
8
|
registerType: z.ZodEnum<typeof import("../..").RegisterType>;
|
package/build/v1/index.d.ts
CHANGED
|
@@ -21,6 +21,11 @@ export * from './s3';
|
|
|
21
21
|
export * from './s2s';
|
|
22
22
|
export * from './telegram-auth';
|
|
23
23
|
export * from './telegram-profile';
|
|
24
|
+
export * from './oauth-common';
|
|
25
|
+
export * from './vk-auth';
|
|
26
|
+
export * from './vk-profile';
|
|
27
|
+
export * from './yandex-auth';
|
|
28
|
+
export * from './yandex-profile';
|
|
24
29
|
export * from './admin-file';
|
|
25
30
|
export * from './client-file';
|
|
26
31
|
export * from './file';
|
package/build/v1/index.js
CHANGED
|
@@ -37,6 +37,11 @@ __exportStar(require("./s3"), exports);
|
|
|
37
37
|
__exportStar(require("./s2s"), exports);
|
|
38
38
|
__exportStar(require("./telegram-auth"), exports);
|
|
39
39
|
__exportStar(require("./telegram-profile"), exports);
|
|
40
|
+
__exportStar(require("./oauth-common"), exports);
|
|
41
|
+
__exportStar(require("./vk-auth"), exports);
|
|
42
|
+
__exportStar(require("./vk-profile"), exports);
|
|
43
|
+
__exportStar(require("./yandex-auth"), exports);
|
|
44
|
+
__exportStar(require("./yandex-profile"), exports);
|
|
40
45
|
__exportStar(require("./admin-file"), exports);
|
|
41
46
|
__exportStar(require("./client-file"), exports);
|
|
42
47
|
__exportStar(require("./file"), exports);
|
package/build/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,2DAAyC;AACzC,+CAA6B;AAC7B,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B;AAC9B,6CAA2B;AAC3B,iDAA+B;AAC/B,yCAAuB;AACvB,4CAA0B;AAC1B,uCAAqB;AACrB,iDAA+B;AAC/B,4CAA0B;AAC1B,2CAAyB;AACzB,qDAAmC;AACnC,2DAAyC;AACzC,+CAA6B;AAC7B,uCAAqB;AACrB,wCAAsB;AACtB,kDAAgC;AAChC,qDAAmC;AACnC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,yCAAuB;AACvB,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './schemas';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./schemas"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/oauth-common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './oauth-auth-request-type.enum';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./oauth-auth-request-type.enum"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/oauth-common/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OAuthAuthRequestType = void 0;
|
|
4
|
+
var OAuthAuthRequestType;
|
|
5
|
+
(function (OAuthAuthRequestType) {
|
|
6
|
+
OAuthAuthRequestType["AUTH"] = "auth";
|
|
7
|
+
OAuthAuthRequestType["LINK"] = "link";
|
|
8
|
+
})(OAuthAuthRequestType || (exports.OAuthAuthRequestType = OAuthAuthRequestType = {}));
|
|
9
|
+
//# sourceMappingURL=oauth-auth-request-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-auth-request-type.enum.js","sourceRoot":"","sources":["../../../../v1/oauth-common/schemas/oauth-auth-request-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,qCAAa,CAAA;IACb,qCAAa,CAAA;AACjB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
|
|
@@ -3,6 +3,7 @@ import { HttpMethod } from '../../../shared/http-method';
|
|
|
3
3
|
export declare namespace ExchangeTelegramAuthCommand {
|
|
4
4
|
const Request: z.ZodObject<{
|
|
5
5
|
uuid: z.ZodString;
|
|
6
|
+
exchangeToken: z.ZodString;
|
|
6
7
|
}, z.core.$strip>;
|
|
7
8
|
const Response: z.ZodObject<{
|
|
8
9
|
accessToken: z.ZodString;
|
|
@@ -6,5 +6,9 @@ exports.TelegramAuthExchangeRequestSchema = zod_1.z.object({
|
|
|
6
6
|
uuid: zod_1.z
|
|
7
7
|
.string({ error: 'TelegramAuthExchangeRequest.uuid.required' })
|
|
8
8
|
.uuid({ message: 'TelegramAuthExchangeRequest.uuid.invalid' }),
|
|
9
|
+
exchangeToken: zod_1.z
|
|
10
|
+
.string({ error: 'TelegramAuthExchangeRequest.exchangeToken.required' })
|
|
11
|
+
.min(1, { message: 'TelegramAuthExchangeRequest.exchangeToken.required' })
|
|
12
|
+
.max(255, { message: 'TelegramAuthExchangeRequest.exchangeToken.invalid' }),
|
|
9
13
|
});
|
|
10
14
|
//# sourceMappingURL=telegram-auth-exchange-request.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telegram-auth-exchange-request.schema.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,OAAC;SACF,MAAM,CAAC,EAAE,KAAK,EAAE,2CAA2C,EAAE,CAAC;SAC9D,IAAI,CAAC,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"telegram-auth-exchange-request.schema.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/schemas/telegram-auth-exchange-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,OAAC;SACF,MAAM,CAAC,EAAE,KAAK,EAAE,2CAA2C,EAAE,CAAC;SAC9D,IAAI,CAAC,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;IAClE,aAAa,EAAE,OAAC;SACX,MAAM,CAAC,EAAE,KAAK,EAAE,oDAAoD,EAAE,CAAC;SACvE,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,oDAAoD,EAAE,CAAC;SACzE,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,mDAAmD,EAAE,CAAC;CAClF,CAAC,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TelegramAuthRequestType = void 0;
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
TelegramAuthRequestType["AUTH"] = "auth";
|
|
7
|
-
TelegramAuthRequestType["LINK"] = "link";
|
|
8
|
-
})(TelegramAuthRequestType || (exports.TelegramAuthRequestType = TelegramAuthRequestType = {}));
|
|
4
|
+
var oauth_auth_request_type_enum_1 = require("../../oauth-common/schemas/oauth-auth-request-type.enum");
|
|
5
|
+
Object.defineProperty(exports, "TelegramAuthRequestType", { enumerable: true, get: function () { return oauth_auth_request_type_enum_1.OAuthAuthRequestType; } });
|
|
9
6
|
//# sourceMappingURL=telegram-auth-request-type.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telegram-auth-request-type.enum.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/schemas/telegram-auth-request-type.enum.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"telegram-auth-request-type.enum.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/schemas/telegram-auth-request-type.enum.ts"],"names":[],"mappings":";;;AAAA,wGAA0H;AAAjH,uIAAA,oBAAoB,OAA2B"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { HttpMethod } from '../../../shared/http-method';
|
|
3
3
|
export declare namespace UnlinkTelegramCommand {
|
|
4
|
-
const Response: z.
|
|
5
|
-
success: z.ZodLiteral<true>;
|
|
6
|
-
}, z.core.$strip>;
|
|
4
|
+
const Response: z.ZodVoid;
|
|
7
5
|
const URL: "/api/v1/profiles/telegram/unlink";
|
|
8
6
|
const METHOD = HttpMethod.DELETE;
|
|
9
7
|
type ResponseType = z.infer<typeof Response>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UnlinkTelegramCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const http_method_1 = require("../../../shared/http-method");
|
|
6
6
|
const rest_api_1 = require("../../../rest-api");
|
|
7
7
|
var UnlinkTelegramCommand;
|
|
8
8
|
(function (UnlinkTelegramCommand) {
|
|
9
|
-
UnlinkTelegramCommand.Response =
|
|
9
|
+
UnlinkTelegramCommand.Response = zod_1.z.void();
|
|
10
10
|
UnlinkTelegramCommand.URL = rest_api_1.REST_API.V1.TELEGRAM_PROFILE.UNLINK;
|
|
11
11
|
UnlinkTelegramCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
12
12
|
})(UnlinkTelegramCommand || (exports.UnlinkTelegramCommand = UnlinkTelegramCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unlink-telegram.command.js","sourceRoot":"","sources":["../../../../v1/telegram-profile/commands/unlink-telegram.command.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"unlink-telegram.command.js","sourceRoot":"","sources":["../../../../v1/telegram-profile/commands/unlink-telegram.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACrB,8BAAQ,GAAG,OAAC,CAAC,IAAI,EAAE,CAAC;IAEpB,yBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC;IAC1C,4BAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAG5C,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC"}
|
|
@@ -17,5 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./telegram-profile-response.schema"), exports);
|
|
18
18
|
__exportStar(require("./telegram-link-response.schema"), exports);
|
|
19
19
|
__exportStar(require("./telegram-link-status-response.schema"), exports);
|
|
20
|
-
__exportStar(require("./telegram-unlink-response.schema"), exports);
|
|
21
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/telegram-profile/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,kEAAgD;AAChD,yEAAuD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/telegram-profile/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAmD;AACnD,kEAAgD;AAChD,yEAAuD"}
|
|
@@ -5,6 +5,7 @@ export declare enum TelegramProfileErrorCode {
|
|
|
5
5
|
TELEGRAM_ALREADY_LINKED = "TELEGRAM_ALREADY_LINKED_TO_OTHER_USER",
|
|
6
6
|
USER_HAS_NO_TELEGRAM = "TELEGRAM_USER_HAS_NO_TELEGRAM",
|
|
7
7
|
LINK_REQUEST_NOT_FOUND = "TELEGRAM_LINK_REQUEST_NOT_FOUND",
|
|
8
|
-
LINK_REQUEST_ACCESS_DENIED = "TELEGRAM_LINK_REQUEST_ACCESS_DENIED"
|
|
8
|
+
LINK_REQUEST_ACCESS_DENIED = "TELEGRAM_LINK_REQUEST_ACCESS_DENIED",
|
|
9
|
+
LAST_AUTH_METHOD = "TELEGRAM_LAST_AUTH_METHOD"
|
|
9
10
|
}
|
|
10
11
|
export declare const TELEGRAM_PROFILE_ERRORS: Record<TelegramProfileErrorCode, ErrorMetadata>;
|
|
@@ -9,6 +9,7 @@ var TelegramProfileErrorCode;
|
|
|
9
9
|
TelegramProfileErrorCode["USER_HAS_NO_TELEGRAM"] = "TELEGRAM_USER_HAS_NO_TELEGRAM";
|
|
10
10
|
TelegramProfileErrorCode["LINK_REQUEST_NOT_FOUND"] = "TELEGRAM_LINK_REQUEST_NOT_FOUND";
|
|
11
11
|
TelegramProfileErrorCode["LINK_REQUEST_ACCESS_DENIED"] = "TELEGRAM_LINK_REQUEST_ACCESS_DENIED";
|
|
12
|
+
TelegramProfileErrorCode["LAST_AUTH_METHOD"] = "TELEGRAM_LAST_AUTH_METHOD";
|
|
12
13
|
})(TelegramProfileErrorCode || (exports.TelegramProfileErrorCode = TelegramProfileErrorCode = {}));
|
|
13
14
|
exports.TELEGRAM_PROFILE_ERRORS = {
|
|
14
15
|
[TelegramProfileErrorCode.PROFILE_NOT_FOUND]: {
|
|
@@ -35,5 +36,9 @@ exports.TELEGRAM_PROFILE_ERRORS = {
|
|
|
35
36
|
code: TelegramProfileErrorCode.LINK_REQUEST_ACCESS_DENIED,
|
|
36
37
|
statusCode: 403,
|
|
37
38
|
},
|
|
39
|
+
[TelegramProfileErrorCode.LAST_AUTH_METHOD]: {
|
|
40
|
+
code: TelegramProfileErrorCode.LAST_AUTH_METHOD,
|
|
41
|
+
statusCode: 409,
|
|
42
|
+
},
|
|
38
43
|
};
|
|
39
44
|
//# sourceMappingURL=telegram-profile.errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telegram-profile.errors.js","sourceRoot":"","sources":["../../../v1/telegram-profile/telegram-profile.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"telegram-profile.errors.js","sourceRoot":"","sources":["../../../v1/telegram-profile/telegram-profile.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,wBAQX;AARD,WAAY,wBAAwB;IAChC,4EAAgD,CAAA;IAChD,4FAAgE,CAAA;IAChE,6FAAiE,CAAA;IACjE,kFAAsD,CAAA;IACtD,sFAA0D,CAAA;IAC1D,8FAAkE,CAAA;IAClE,0EAA8C,CAAA;AAClD,CAAC,EARW,wBAAwB,wCAAxB,wBAAwB,QAQnC;AAEY,QAAA,uBAAuB,GAAoD;IACpF,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,EAAE;QAC1C,IAAI,EAAE,wBAAwB,CAAC,iBAAiB;QAChD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,wBAAwB,CAAC,yBAAyB,CAAC,EAAE;QAClD,IAAI,EAAE,wBAAwB,CAAC,yBAAyB;QACxD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,wBAAwB,CAAC,uBAAuB,CAAC,EAAE;QAChD,IAAI,EAAE,wBAAwB,CAAC,uBAAuB;QACtD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,wBAAwB,CAAC,oBAAoB,CAAC,EAAE;QAC7C,IAAI,EAAE,wBAAwB,CAAC,oBAAoB;QACnD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,EAAE;QAC/C,IAAI,EAAE,wBAAwB,CAAC,sBAAsB;QACrD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,wBAAwB,CAAC,0BAA0B,CAAC,EAAE;QACnD,IAAI,EAAE,wBAAwB,CAAC,0BAA0B;QACzD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,EAAE;QACzC,IAAI,EAAE,wBAAwB,CAAC,gBAAgB;QAC/C,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
|
|
@@ -6,7 +6,7 @@ export declare namespace UserToggleMarketingConsentCommand {
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
const Response: z.ZodObject<{
|
|
8
8
|
uuid: z.ZodString;
|
|
9
|
-
email: z.ZodString
|
|
9
|
+
email: z.ZodNullable<z.ZodString>;
|
|
10
10
|
name: z.ZodString;
|
|
11
11
|
role: z.ZodString;
|
|
12
12
|
registerType: z.ZodEnum<typeof import("..").RegisterType>;
|
|
@@ -6,7 +6,7 @@ export declare namespace UserUpdateProfileCommand {
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
const Response: z.ZodObject<{
|
|
8
8
|
uuid: z.ZodString;
|
|
9
|
-
email: z.ZodString
|
|
9
|
+
email: z.ZodNullable<z.ZodString>;
|
|
10
10
|
name: z.ZodString;
|
|
11
11
|
role: z.ZodString;
|
|
12
12
|
registerType: z.ZodEnum<typeof import("..").RegisterType>;
|
|
@@ -4,7 +4,7 @@ export declare namespace UserGetCurrentUserQuery {
|
|
|
4
4
|
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
const Response: z.ZodObject<{
|
|
6
6
|
uuid: z.ZodString;
|
|
7
|
-
email: z.ZodString
|
|
7
|
+
email: z.ZodNullable<z.ZodString>;
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
role: z.ZodString;
|
|
10
10
|
registerType: z.ZodEnum<typeof import("..").RegisterType>;
|
|
@@ -5,5 +5,7 @@ var RegisterType;
|
|
|
5
5
|
(function (RegisterType) {
|
|
6
6
|
RegisterType["EMAIL"] = "email";
|
|
7
7
|
RegisterType["TELEGRAM"] = "telegram";
|
|
8
|
+
RegisterType["VK"] = "vk";
|
|
9
|
+
RegisterType["YANDEX"] = "yandex";
|
|
8
10
|
})(RegisterType || (exports.RegisterType = RegisterType = {}));
|
|
9
11
|
//# sourceMappingURL=register-type.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-type.enum.js","sourceRoot":"","sources":["../../../../v1/users/schemas/register-type.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,
|
|
1
|
+
{"version":3,"file":"register-type.enum.js","sourceRoot":"","sources":["../../../../v1/users/schemas/register-type.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,+BAAe,CAAA;IACf,qCAAqB,CAAA;IACrB,yBAAS,CAAA;IACT,iCAAiB,CAAA;AACrB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const UpdateProfileResponseSchema: z.ZodObject<{
|
|
3
3
|
uuid: z.ZodString;
|
|
4
|
-
email: z.ZodString
|
|
4
|
+
email: z.ZodNullable<z.ZodString>;
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
role: z.ZodString;
|
|
7
7
|
registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
|
|
@@ -13,7 +13,7 @@ export declare const DeleteAccountResponseSchema: z.ZodObject<{
|
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
export declare const ToggleMarketingConsentResponseSchema: z.ZodObject<{
|
|
15
15
|
uuid: z.ZodString;
|
|
16
|
-
email: z.ZodString
|
|
16
|
+
email: z.ZodNullable<z.ZodString>;
|
|
17
17
|
name: z.ZodString;
|
|
18
18
|
role: z.ZodString;
|
|
19
19
|
registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
|
|
@@ -25,7 +25,7 @@ export declare const ChangePasswordResponseSchema: z.ZodObject<{
|
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
export declare const GetCurrentUserResponseSchema: z.ZodObject<{
|
|
27
27
|
uuid: z.ZodString;
|
|
28
|
-
email: z.ZodString
|
|
28
|
+
email: z.ZodNullable<z.ZodString>;
|
|
29
29
|
name: z.ZodString;
|
|
30
30
|
role: z.ZodString;
|
|
31
31
|
registerType: z.ZodEnum<typeof import("./register-type.enum").RegisterType>;
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { RegisterType } from './register-type.enum';
|
|
3
3
|
export declare const UserResponseSchema: z.ZodObject<{
|
|
4
4
|
uuid: z.ZodString;
|
|
5
|
-
email: z.ZodString
|
|
5
|
+
email: z.ZodNullable<z.ZodString>;
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
role: z.ZodString;
|
|
8
8
|
registerType: z.ZodEnum<typeof RegisterType>;
|
|
@@ -6,7 +6,7 @@ const regex_1 = require("../../../shared/regex");
|
|
|
6
6
|
const register_type_enum_1 = require("./register-type.enum");
|
|
7
7
|
exports.UserResponseSchema = zod_1.z.object({
|
|
8
8
|
uuid: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
9
|
-
email: zod_1.z.string().regex(regex_1.EMAIL_REGEX),
|
|
9
|
+
email: zod_1.z.string().regex(regex_1.EMAIL_REGEX).nullable(),
|
|
10
10
|
name: zod_1.z.string(),
|
|
11
11
|
role: zod_1.z.string(),
|
|
12
12
|
registerType: zod_1.z.nativeEnum(register_type_enum_1.RegisterType),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-response.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/user-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgF;AAChF,6DAAoD;AAKvC,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"user-response.schema.js","sourceRoot":"","sources":["../../../../v1/users/schemas/user-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAgF;AAChF,6DAAoD;AAKvC,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAW,CAAC,CAAC,QAAQ,EAAE;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,iCAAY,CAAC;IACxC,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC;CAC9C,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
2
|
+
export declare namespace ExchangeVkAuthCommand {
|
|
3
|
+
const Request: import("zod").ZodObject<{
|
|
4
|
+
uuid: import("zod").ZodString;
|
|
5
|
+
exchangeToken: import("zod").ZodString;
|
|
6
|
+
}, import("zod/v4/core").$strip>;
|
|
7
|
+
const Response: import("zod").ZodObject<{
|
|
8
|
+
accessToken: import("zod").ZodString;
|
|
9
|
+
userId: import("zod").ZodString;
|
|
10
|
+
}, import("zod/v4/core").$strip>;
|
|
11
|
+
const URL: "/api/v1/auth/vk/exchange";
|
|
12
|
+
const METHOD = HttpMethod.POST;
|
|
13
|
+
type RequestType = import('zod').infer<typeof Request>;
|
|
14
|
+
type ResponseType = import('zod').infer<typeof Response>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExchangeVkAuthCommand = void 0;
|
|
4
|
+
const schemas_1 = require("../schemas");
|
|
5
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
var ExchangeVkAuthCommand;
|
|
8
|
+
(function (ExchangeVkAuthCommand) {
|
|
9
|
+
ExchangeVkAuthCommand.Request = schemas_1.VkAuthExchangeRequestSchema;
|
|
10
|
+
ExchangeVkAuthCommand.Response = schemas_1.VkAuthExchangeResponseSchema;
|
|
11
|
+
ExchangeVkAuthCommand.URL = rest_api_1.REST_API.V1.VK_AUTH.EXCHANGE;
|
|
12
|
+
ExchangeVkAuthCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
13
|
+
})(ExchangeVkAuthCommand || (exports.ExchangeVkAuthCommand = ExchangeVkAuthCommand = {}));
|
|
14
|
+
//# sourceMappingURL=exchange-vk-auth.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exchange-vk-auth.command.js","sourceRoot":"","sources":["../../../../v1/vk-auth/commands/exchange-vk-auth.command.ts"],"names":[],"mappings":";;;AAAA,wCAAuF;AACvF,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,qBAAqB,CASrC;AATD,WAAiB,qBAAqB;IACrB,6BAAO,GAAG,qCAA2B,CAAC;IACtC,8BAAQ,GAAG,sCAA4B,CAAC;IAExC,yBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;IACnC,4BAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,qBAAqB,qCAArB,qBAAqB,QASrC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./init-vk-auth.command"), exports);
|
|
18
|
+
__exportStar(require("./exchange-vk-auth.command"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/vk-auth/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,6DAA2C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace InitVkAuthCommand {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
link: z.ZodString;
|
|
8
|
+
expiresAt: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
const URL: "/api/v1/auth/vk/init";
|
|
11
|
+
const METHOD = HttpMethod.POST;
|
|
12
|
+
type RequestType = z.infer<typeof Request>;
|
|
13
|
+
type ResponseType = z.infer<typeof Response>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InitVkAuthCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
+
const rest_api_1 = require("../../../rest-api");
|
|
8
|
+
var InitVkAuthCommand;
|
|
9
|
+
(function (InitVkAuthCommand) {
|
|
10
|
+
InitVkAuthCommand.Request = zod_1.z.object({});
|
|
11
|
+
InitVkAuthCommand.Response = schemas_1.VkAuthInitResponseSchema;
|
|
12
|
+
InitVkAuthCommand.URL = rest_api_1.REST_API.V1.VK_AUTH.INIT;
|
|
13
|
+
InitVkAuthCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
14
|
+
})(InitVkAuthCommand || (exports.InitVkAuthCommand = InitVkAuthCommand = {}));
|
|
15
|
+
//# sourceMappingURL=init-vk-auth.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-vk-auth.command.js","sourceRoot":"","sources":["../../../../v1/vk-auth/commands/init-vk-auth.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAsD;AACtD,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,iBAAiB,CASjC;AATD,WAAiB,iBAAiB;IACjB,yBAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,0BAAQ,GAAG,kCAAwB,CAAC;IAEpC,qBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC/B,wBAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,iBAAiB,iCAAjB,iBAAiB,QASjC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.VK_AUTH_ROUTES = exports.VK_AUTH_CONTROLLER = void 0;
|
|
18
|
+
__exportStar(require("./vk-auth.errors"), exports);
|
|
19
|
+
__exportStar(require("./schemas"), exports);
|
|
20
|
+
__exportStar(require("./commands"), exports);
|
|
21
|
+
__exportStar(require("./queries"), exports);
|
|
22
|
+
var controllers_1 = require("../../controllers");
|
|
23
|
+
Object.defineProperty(exports, "VK_AUTH_CONTROLLER", { enumerable: true, get: function () { return controllers_1.VK_AUTH_CONTROLLER; } });
|
|
24
|
+
var routes_1 = require("../../routes");
|
|
25
|
+
Object.defineProperty(exports, "VK_AUTH_ROUTES", { enumerable: true, get: function () { return routes_1.VK_AUTH_ROUTES; } });
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/vk-auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAAuD;AAA9C,iHAAA,kBAAkB,OAAA;AAC3B,uCAA8C;AAArC,wGAAA,cAAc,OAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace GetVkAuthStatusQuery {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
status: z.ZodEnum<typeof import("../schemas").VkAuthStatus>;
|
|
7
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const URL: (uuid: string) => string;
|
|
10
|
+
const METHOD = HttpMethod.GET;
|
|
11
|
+
type RequestType = z.infer<typeof Request>;
|
|
12
|
+
type ResponseType = z.infer<typeof Response>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetVkAuthStatusQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
+
const rest_api_1 = require("../../../rest-api");
|
|
8
|
+
var GetVkAuthStatusQuery;
|
|
9
|
+
(function (GetVkAuthStatusQuery) {
|
|
10
|
+
GetVkAuthStatusQuery.Request = zod_1.z.object({});
|
|
11
|
+
GetVkAuthStatusQuery.Response = schemas_1.VkAuthStatusResponseSchema;
|
|
12
|
+
GetVkAuthStatusQuery.URL = rest_api_1.REST_API.V1.VK_AUTH.STATUS;
|
|
13
|
+
GetVkAuthStatusQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(GetVkAuthStatusQuery || (exports.GetVkAuthStatusQuery = GetVkAuthStatusQuery = {}));
|
|
15
|
+
//# sourceMappingURL=get-vk-auth-status.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-vk-auth-status.query.js","sourceRoot":"","sources":["../../../../v1/vk-auth/queries/get-vk-auth-status.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAwD;AACxD,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,oBAAoB,CASpC;AATD,WAAiB,oBAAoB;IACpB,4BAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,6BAAQ,GAAG,oCAA0B,CAAC;IAEtC,wBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;IACjC,2BAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,oBAAoB,oCAApB,oBAAoB,QASpC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace HandleVkAuthCallbackQuery {
|
|
4
|
+
const Request: z.ZodObject<{
|
|
5
|
+
code: z.ZodOptional<z.ZodString>;
|
|
6
|
+
state: z.ZodOptional<z.ZodString>;
|
|
7
|
+
device_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
const Response: z.ZodObject<{}, z.core.$strip>;
|
|
10
|
+
const URL: "/api/v1/auth/vk/callback";
|
|
11
|
+
const METHOD = HttpMethod.GET;
|
|
12
|
+
type RequestType = z.infer<typeof Request>;
|
|
13
|
+
type ResponseType = z.infer<typeof Response>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HandleVkAuthCallbackQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
+
const rest_api_1 = require("../../../rest-api");
|
|
8
|
+
var HandleVkAuthCallbackQuery;
|
|
9
|
+
(function (HandleVkAuthCallbackQuery) {
|
|
10
|
+
HandleVkAuthCallbackQuery.Request = schemas_1.VkAuthCallbackQuerySchema;
|
|
11
|
+
HandleVkAuthCallbackQuery.Response = zod_1.z.object({});
|
|
12
|
+
HandleVkAuthCallbackQuery.URL = rest_api_1.REST_API.V1.VK_AUTH.CALLBACK;
|
|
13
|
+
HandleVkAuthCallbackQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
14
|
+
})(HandleVkAuthCallbackQuery || (exports.HandleVkAuthCallbackQuery = HandleVkAuthCallbackQuery = {}));
|
|
15
|
+
//# sourceMappingURL=handle-vk-auth-callback.query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle-vk-auth-callback.query.js","sourceRoot":"","sources":["../../../../v1/vk-auth/queries/handle-vk-auth-callback.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAuD;AACvD,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,yBAAyB,CASzC;AATD,WAAiB,yBAAyB;IACzB,iCAAO,GAAG,mCAAyB,CAAC;IACpC,kCAAQ,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAExB,6BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;IACnC,gCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,yBAAyB,yCAAzB,yBAAyB,QASzC"}
|