@veruna/api-contracts 1.0.9 → 1.0.11
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 +7 -0
- package/build/controllers/index.js +17 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/rest-api.js +12 -18
- package/build/routes/index.d.ts +9 -0
- package/build/routes/index.js +19 -0
- package/build/v1/auth/commands/delete-session.command.d.ts +0 -1
- package/build/v1/auth/commands/delete-session.command.js +1 -3
- package/build/v1/auth/commands/logout-all.command.d.ts +0 -1
- package/build/v1/auth/commands/logout-all.command.js +1 -3
- package/build/v1/auth/commands/logout.command.d.ts +0 -1
- package/build/v1/auth/commands/logout.command.js +1 -3
- package/build/v1/auth/commands/signin.command.d.ts +0 -1
- package/build/v1/auth/commands/signin.command.js +1 -3
- package/build/v1/auth/commands/signup.command.d.ts +0 -1
- package/build/v1/auth/commands/signup.command.js +1 -3
- package/build/v1/auth/index.d.ts +2 -2
- package/build/v1/auth/index.js +6 -2
- package/build/v1/auth/queries/get-sessions.query.d.ts +0 -1
- package/build/v1/auth/queries/get-sessions.query.js +1 -3
- package/build/v1/blog/admin/commands/create-category.command.d.ts +0 -1
- package/build/v1/blog/admin/commands/create-category.command.js +0 -2
- package/build/v1/blog/admin/commands/create-post.command.d.ts +0 -1
- package/build/v1/blog/admin/commands/create-post.command.js +0 -2
- package/build/v1/blog/admin/commands/delete-category.command.d.ts +0 -1
- package/build/v1/blog/admin/commands/delete-category.command.js +0 -2
- package/build/v1/blog/admin/commands/delete-post.command.d.ts +0 -1
- package/build/v1/blog/admin/commands/delete-post.command.js +0 -2
- package/build/v1/blog/admin/commands/update-category.command.d.ts +0 -1
- package/build/v1/blog/admin/commands/update-category.command.js +0 -2
- package/build/v1/blog/admin/commands/update-post.command.d.ts +0 -1
- package/build/v1/blog/admin/commands/update-post.command.js +0 -2
- package/build/v1/blog/admin/queries/get-categories.query.d.ts +0 -1
- package/build/v1/blog/admin/queries/get-categories.query.js +0 -2
- package/build/v1/blog/admin/queries/get-category.query.d.ts +0 -1
- package/build/v1/blog/admin/queries/get-category.query.js +0 -2
- package/build/v1/blog/admin/queries/get-post.query.d.ts +0 -1
- package/build/v1/blog/admin/queries/get-post.query.js +0 -2
- package/build/v1/blog/admin/queries/get-posts.query.d.ts +0 -1
- package/build/v1/blog/admin/queries/get-posts.query.js +0 -2
- package/build/v1/blog/index.d.ts +2 -2
- package/build/v1/blog/index.js +12 -2
- package/build/v1/blog/public/queries/get-categories.query.d.ts +0 -1
- package/build/v1/blog/public/queries/get-categories.query.js +0 -2
- package/build/v1/blog/public/queries/get-post-by-alias.query.d.ts +0 -1
- package/build/v1/blog/public/queries/get-post-by-alias.query.js +0 -2
- package/build/v1/blog/public/queries/get-posts.query.d.ts +0 -1
- package/build/v1/blog/public/queries/get-posts.query.js +0 -2
- package/build/v1/index.d.ts +2 -0
- package/build/v1/index.js +2 -0
- package/build/v1/unregistered-users/commands/authenticate.command.d.ts +0 -1
- package/build/v1/unregistered-users/commands/authenticate.command.js +0 -2
- package/build/v1/unregistered-users/index.d.ts +2 -0
- package/build/v1/unregistered-users/index.js +6 -0
- package/build/v1/users/commands/change-password.command.d.ts +0 -1
- package/build/v1/users/commands/change-password.command.js +0 -2
- package/build/v1/users/commands/delete-account.command.d.ts +0 -1
- package/build/v1/users/commands/delete-account.command.js +0 -2
- package/build/v1/users/commands/toggle-marketing-consent.command.d.ts +0 -1
- package/build/v1/users/commands/toggle-marketing-consent.command.js +0 -2
- package/build/v1/users/commands/update-profile.command.d.ts +0 -1
- package/build/v1/users/commands/update-profile.command.js +0 -2
- package/build/v1/users/index.d.ts +2 -2
- package/build/v1/users/index.js +6 -2
- package/build/v1/users/queries/get-current-user.query.d.ts +0 -1
- package/build/v1/users/queries/get-current-user.query.js +0 -2
- package/package.json +1 -1
- package/build/v1/blog/routes/index.d.ts +0 -3
- package/build/v1/blog/routes/index.js +0 -19
- /package/build/{v1/auth/controllers.d.ts → controllers/auth.controllers.d.ts} +0 -0
- /package/build/{v1/auth/controllers.js → controllers/auth.controllers.js} +0 -0
- /package/build/{v1/blog/controllers.d.ts → controllers/blog.controllers.d.ts} +0 -0
- /package/build/{v1/blog/controllers.js → controllers/blog.controllers.js} +0 -0
- /package/build/{v1/unregistered-users/controllers.d.ts → controllers/unreg-users.controllers.d.ts} +0 -0
- /package/build/{v1/unregistered-users/controllers.js → controllers/unreg-users.controllers.js} +0 -0
- /package/build/{v1/users/controllers.d.ts → controllers/users.controllers.d.ts} +0 -0
- /package/build/{v1/users/controllers.js → controllers/users.controllers.js} +0 -0
- /package/build/{v1/auth/routes → routes}/auth.routes.d.ts +0 -0
- /package/build/{v1/auth/routes → routes}/auth.routes.js +0 -0
- /package/build/{v1/blog/routes → routes}/blog-admin-categories.routes.d.ts +0 -0
- /package/build/{v1/blog/routes → routes}/blog-admin-categories.routes.js +0 -0
- /package/build/{v1/blog/routes → routes}/blog-admin-posts.routes.d.ts +0 -0
- /package/build/{v1/blog/routes → routes}/blog-admin-posts.routes.js +0 -0
- /package/build/{v1/blog/routes → routes}/blog-public.routes.d.ts +0 -0
- /package/build/{v1/blog/routes → routes}/blog-public.routes.js +0 -0
- /package/build/{v1/unregistered-users/routes → routes}/unreg-users.routes.d.ts +0 -0
- /package/build/{v1/unregistered-users/routes → routes}/unreg-users.routes.js +0 -0
- /package/build/{v1/users/routes → routes}/users.routes.d.ts +0 -0
- /package/build/{v1/users/routes → routes}/users.routes.js +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized exports for all controllers
|
|
3
|
+
*/
|
|
4
|
+
export { AUTH_CONTROLLER } from './auth.controllers';
|
|
5
|
+
export { USERS_CONTROLLER } from './users.controllers';
|
|
6
|
+
export { UNREG_USERS_CONTROLLER } from './unreg-users.controllers';
|
|
7
|
+
export { BLOG_ADMIN_CATEGORIES_CONTROLLER, BLOG_ADMIN_POSTS_CONTROLLER, BLOG_PUBLIC_CATEGORIES_CONTROLLER, BLOG_PUBLIC_POSTS_CONTROLLER, } from './blog.controllers';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BLOG_PUBLIC_POSTS_CONTROLLER = exports.BLOG_PUBLIC_CATEGORIES_CONTROLLER = exports.BLOG_ADMIN_POSTS_CONTROLLER = exports.BLOG_ADMIN_CATEGORIES_CONTROLLER = exports.UNREG_USERS_CONTROLLER = exports.USERS_CONTROLLER = exports.AUTH_CONTROLLER = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Centralized exports for all controllers
|
|
6
|
+
*/
|
|
7
|
+
var auth_controllers_1 = require("./auth.controllers");
|
|
8
|
+
Object.defineProperty(exports, "AUTH_CONTROLLER", { enumerable: true, get: function () { return auth_controllers_1.AUTH_CONTROLLER; } });
|
|
9
|
+
var users_controllers_1 = require("./users.controllers");
|
|
10
|
+
Object.defineProperty(exports, "USERS_CONTROLLER", { enumerable: true, get: function () { return users_controllers_1.USERS_CONTROLLER; } });
|
|
11
|
+
var unreg_users_controllers_1 = require("./unreg-users.controllers");
|
|
12
|
+
Object.defineProperty(exports, "UNREG_USERS_CONTROLLER", { enumerable: true, get: function () { return unreg_users_controllers_1.UNREG_USERS_CONTROLLER; } });
|
|
13
|
+
var blog_controllers_1 = require("./blog.controllers");
|
|
14
|
+
Object.defineProperty(exports, "BLOG_ADMIN_CATEGORIES_CONTROLLER", { enumerable: true, get: function () { return blog_controllers_1.BLOG_ADMIN_CATEGORIES_CONTROLLER; } });
|
|
15
|
+
Object.defineProperty(exports, "BLOG_ADMIN_POSTS_CONTROLLER", { enumerable: true, get: function () { return blog_controllers_1.BLOG_ADMIN_POSTS_CONTROLLER; } });
|
|
16
|
+
Object.defineProperty(exports, "BLOG_PUBLIC_CATEGORIES_CONTROLLER", { enumerable: true, get: function () { return blog_controllers_1.BLOG_PUBLIC_CATEGORIES_CONTROLLER; } });
|
|
17
|
+
Object.defineProperty(exports, "BLOG_PUBLIC_POSTS_CONTROLLER", { enumerable: true, get: function () { return blog_controllers_1.BLOG_PUBLIC_POSTS_CONTROLLER; } });
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
package/build/rest-api.js
CHANGED
|
@@ -5,35 +5,29 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.REST_API = exports.ROOT = void 0;
|
|
8
|
-
const controllers_1 = require("./
|
|
9
|
-
const routes_1 = require("./
|
|
10
|
-
const v1_1 = require("./v1");
|
|
11
|
-
const v1_2 = require("./v1");
|
|
12
|
-
const users_1 = require("./v1/users");
|
|
13
|
-
const users_2 = require("./v1/users");
|
|
14
|
-
const controllers_2 = require("./v1/unregistered-users/controllers");
|
|
15
|
-
const unreg_users_routes_1 = require("./v1/unregistered-users/routes/unreg-users.routes");
|
|
8
|
+
const controllers_1 = require("./controllers");
|
|
9
|
+
const routes_1 = require("./routes");
|
|
16
10
|
exports.ROOT = '/api';
|
|
17
11
|
exports.REST_API = {
|
|
18
12
|
V1: {
|
|
19
13
|
// Auth module
|
|
20
14
|
AUTH: {
|
|
21
|
-
SIGNUP: `${exports.ROOT}/${
|
|
22
|
-
SIGNIN: `${exports.ROOT}/${
|
|
23
|
-
LOGOUT: `${exports.ROOT}/${
|
|
24
|
-
LOGOUT_ALL: `${exports.ROOT}/${
|
|
25
|
-
SESSIONS: `${exports.ROOT}/${
|
|
26
|
-
SESSION_BY_ID: (id) => `${exports.ROOT}/${
|
|
15
|
+
SIGNUP: `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/${routes_1.AUTH_ROUTES.SIGNUP}`,
|
|
16
|
+
SIGNIN: `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/${routes_1.AUTH_ROUTES.SIGNIN}`,
|
|
17
|
+
LOGOUT: `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/${routes_1.AUTH_ROUTES.LOGOUT}`,
|
|
18
|
+
LOGOUT_ALL: `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/${routes_1.AUTH_ROUTES.LOGOUT_ALL}`,
|
|
19
|
+
SESSIONS: `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/${routes_1.AUTH_ROUTES.SESSIONS}`,
|
|
20
|
+
SESSION_BY_ID: (id) => `${exports.ROOT}/${controllers_1.AUTH_CONTROLLER}/sessions/${id}`,
|
|
27
21
|
},
|
|
28
22
|
// Users module
|
|
29
23
|
USERS: {
|
|
30
|
-
ME: `${exports.ROOT}/${
|
|
31
|
-
ME_MARKETING_CONSENT: `${exports.ROOT}/${
|
|
32
|
-
ME_PASSWORD: `${exports.ROOT}/${
|
|
24
|
+
ME: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.ME}`,
|
|
25
|
+
ME_MARKETING_CONSENT: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.ME_MARKETING_CONSENT}`,
|
|
26
|
+
ME_PASSWORD: `${exports.ROOT}/${controllers_1.USERS_CONTROLLER}/${routes_1.USERS_ROUTES.ME_PASSWORD}`,
|
|
33
27
|
},
|
|
34
28
|
// Unregistered Users
|
|
35
29
|
UNREG: {
|
|
36
|
-
AUTHENTICATE: `${exports.ROOT}/${
|
|
30
|
+
AUTHENTICATE: `${exports.ROOT}/${controllers_1.UNREG_USERS_CONTROLLER}/${routes_1.UNREG_USERS_ROUTES.AUTHENTICATE}`,
|
|
37
31
|
},
|
|
38
32
|
// Blog module
|
|
39
33
|
BLOG: {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized exports for all routes
|
|
3
|
+
*/
|
|
4
|
+
export { AUTH_ROUTES } from './auth.routes';
|
|
5
|
+
export { USERS_ROUTES } from './users.routes';
|
|
6
|
+
export { UNREG_USERS_ROUTES } from './unreg-users.routes';
|
|
7
|
+
export { BLOG_ADMIN_CATEGORIES_ROUTES } from './blog-admin-categories.routes';
|
|
8
|
+
export { BLOG_ADMIN_POSTS_ROUTES } from './blog-admin-posts.routes';
|
|
9
|
+
export { BLOG_PUBLIC_CATEGORIES_ROUTES, BLOG_PUBLIC_POSTS_ROUTES } from './blog-public.routes';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BLOG_PUBLIC_POSTS_ROUTES = exports.BLOG_PUBLIC_CATEGORIES_ROUTES = exports.BLOG_ADMIN_POSTS_ROUTES = exports.BLOG_ADMIN_CATEGORIES_ROUTES = exports.UNREG_USERS_ROUTES = exports.USERS_ROUTES = exports.AUTH_ROUTES = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Centralized exports for all routes
|
|
6
|
+
*/
|
|
7
|
+
var auth_routes_1 = require("./auth.routes");
|
|
8
|
+
Object.defineProperty(exports, "AUTH_ROUTES", { enumerable: true, get: function () { return auth_routes_1.AUTH_ROUTES; } });
|
|
9
|
+
var users_routes_1 = require("./users.routes");
|
|
10
|
+
Object.defineProperty(exports, "USERS_ROUTES", { enumerable: true, get: function () { return users_routes_1.USERS_ROUTES; } });
|
|
11
|
+
var unreg_users_routes_1 = require("./unreg-users.routes");
|
|
12
|
+
Object.defineProperty(exports, "UNREG_USERS_ROUTES", { enumerable: true, get: function () { return unreg_users_routes_1.UNREG_USERS_ROUTES; } });
|
|
13
|
+
var blog_admin_categories_routes_1 = require("./blog-admin-categories.routes");
|
|
14
|
+
Object.defineProperty(exports, "BLOG_ADMIN_CATEGORIES_ROUTES", { enumerable: true, get: function () { return blog_admin_categories_routes_1.BLOG_ADMIN_CATEGORIES_ROUTES; } });
|
|
15
|
+
var blog_admin_posts_routes_1 = require("./blog-admin-posts.routes");
|
|
16
|
+
Object.defineProperty(exports, "BLOG_ADMIN_POSTS_ROUTES", { enumerable: true, get: function () { return blog_admin_posts_routes_1.BLOG_ADMIN_POSTS_ROUTES; } });
|
|
17
|
+
var blog_public_routes_1 = require("./blog-public.routes");
|
|
18
|
+
Object.defineProperty(exports, "BLOG_PUBLIC_CATEGORIES_ROUTES", { enumerable: true, get: function () { return blog_public_routes_1.BLOG_PUBLIC_CATEGORIES_ROUTES; } });
|
|
19
|
+
Object.defineProperty(exports, "BLOG_PUBLIC_POSTS_ROUTES", { enumerable: true, get: function () { return blog_public_routes_1.BLOG_PUBLIC_POSTS_ROUTES; } });
|
|
@@ -5,7 +5,6 @@ export declare namespace AuthDeleteSessionCommand {
|
|
|
5
5
|
const Response: z.ZodObject<{
|
|
6
6
|
sessionId: z.ZodString;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
const PATH: "sessions/:id";
|
|
9
8
|
const URL: (id: string) => string;
|
|
10
9
|
const METHOD = HttpMethod.DELETE;
|
|
11
10
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AuthDeleteSessionCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const auth_routes_1 = require("../routes/auth.routes");
|
|
6
5
|
const rest_api_1 = require("../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../shared/http-method");
|
|
8
7
|
var AuthDeleteSessionCommand;
|
|
@@ -12,8 +11,7 @@ var AuthDeleteSessionCommand;
|
|
|
12
11
|
AuthDeleteSessionCommand.Response = zod_1.z.object({
|
|
13
12
|
sessionId: zod_1.z.string().uuid(),
|
|
14
13
|
});
|
|
15
|
-
//
|
|
16
|
-
AuthDeleteSessionCommand.PATH = auth_routes_1.AUTH_ROUTES.SESSION_BY_ID;
|
|
14
|
+
// URL/Method
|
|
17
15
|
AuthDeleteSessionCommand.URL = (id) => rest_api_1.REST_API.V1.AUTH.SESSION_BY_ID(id);
|
|
18
16
|
AuthDeleteSessionCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
19
17
|
})(AuthDeleteSessionCommand || (exports.AuthDeleteSessionCommand = AuthDeleteSessionCommand = {}));
|
|
@@ -5,7 +5,6 @@ export declare namespace AuthLogoutAllCommand {
|
|
|
5
5
|
const Response: z.ZodObject<{
|
|
6
6
|
sessionIds: z.ZodArray<z.ZodString>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
const PATH: "logout-all";
|
|
9
8
|
const URL: "/api/v1/auth/logout-all";
|
|
10
9
|
const METHOD = HttpMethod.POST;
|
|
11
10
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AuthLogoutAllCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const auth_routes_1 = require("../routes/auth.routes");
|
|
6
5
|
const rest_api_1 = require("../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../shared/http-method");
|
|
8
7
|
var AuthLogoutAllCommand;
|
|
@@ -12,8 +11,7 @@ var AuthLogoutAllCommand;
|
|
|
12
11
|
AuthLogoutAllCommand.Response = zod_1.z.object({
|
|
13
12
|
sessionIds: zod_1.z.array(zod_1.z.string().uuid()),
|
|
14
13
|
});
|
|
15
|
-
//
|
|
16
|
-
AuthLogoutAllCommand.PATH = auth_routes_1.AUTH_ROUTES.LOGOUT_ALL;
|
|
14
|
+
// URL/Method
|
|
17
15
|
AuthLogoutAllCommand.URL = rest_api_1.REST_API.V1.AUTH.LOGOUT_ALL;
|
|
18
16
|
AuthLogoutAllCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
19
17
|
})(AuthLogoutAllCommand || (exports.AuthLogoutAllCommand = AuthLogoutAllCommand = {}));
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AuthLogoutCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const auth_routes_1 = require("../routes/auth.routes");
|
|
6
5
|
const rest_api_1 = require("../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../shared/http-method");
|
|
8
7
|
var AuthLogoutCommand;
|
|
@@ -12,8 +11,7 @@ var AuthLogoutCommand;
|
|
|
12
11
|
AuthLogoutCommand.Response = zod_1.z.object({
|
|
13
12
|
sessionId: zod_1.z.string().uuid(),
|
|
14
13
|
});
|
|
15
|
-
//
|
|
16
|
-
AuthLogoutCommand.PATH = auth_routes_1.AUTH_ROUTES.LOGOUT;
|
|
14
|
+
// URL/Method
|
|
17
15
|
AuthLogoutCommand.URL = rest_api_1.REST_API.V1.AUTH.LOGOUT;
|
|
18
16
|
AuthLogoutCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
19
17
|
})(AuthLogoutCommand || (exports.AuthLogoutCommand = AuthLogoutCommand = {}));
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AuthSignInCommand = void 0;
|
|
4
4
|
const signin_request_schema_1 = require("../schemas/signin-request.schema");
|
|
5
5
|
const auth_response_schema_1 = require("../schemas/auth-response.schema");
|
|
6
|
-
const auth_routes_1 = require("../routes/auth.routes");
|
|
7
6
|
const rest_api_1 = require("../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../shared/http-method");
|
|
9
8
|
var AuthSignInCommand;
|
|
@@ -11,8 +10,7 @@ var AuthSignInCommand;
|
|
|
11
10
|
// Request/Response
|
|
12
11
|
AuthSignInCommand.Request = signin_request_schema_1.SignInRequestSchema;
|
|
13
12
|
AuthSignInCommand.Response = auth_response_schema_1.AuthResponseSchema;
|
|
14
|
-
//
|
|
15
|
-
AuthSignInCommand.PATH = auth_routes_1.AUTH_ROUTES.SIGNIN;
|
|
13
|
+
// URL/Method
|
|
16
14
|
AuthSignInCommand.URL = rest_api_1.REST_API.V1.AUTH.SIGNIN;
|
|
17
15
|
AuthSignInCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
18
16
|
})(AuthSignInCommand || (exports.AuthSignInCommand = AuthSignInCommand = {}));
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AuthSignupCommand = void 0;
|
|
4
4
|
const signup_request_schema_1 = require("../schemas/signup-request.schema");
|
|
5
5
|
const auth_response_schema_1 = require("../schemas/auth-response.schema");
|
|
6
|
-
const auth_routes_1 = require("../routes/auth.routes");
|
|
7
6
|
const rest_api_1 = require("../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../shared/http-method");
|
|
9
8
|
var AuthSignupCommand;
|
|
@@ -11,8 +10,7 @@ var AuthSignupCommand;
|
|
|
11
10
|
// Request/Response
|
|
12
11
|
AuthSignupCommand.Request = signup_request_schema_1.SignUpRequestSchema;
|
|
13
12
|
AuthSignupCommand.Response = auth_response_schema_1.AuthResponseSchema;
|
|
14
|
-
//
|
|
15
|
-
AuthSignupCommand.PATH = auth_routes_1.AUTH_ROUTES.SIGNUP;
|
|
13
|
+
// URL/Method
|
|
16
14
|
AuthSignupCommand.URL = rest_api_1.REST_API.V1.AUTH.SIGNUP;
|
|
17
15
|
AuthSignupCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
18
16
|
})(AuthSignupCommand || (exports.AuthSignupCommand = AuthSignupCommand = {}));
|
package/build/v1/auth/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export * from './schemas';
|
|
|
2
2
|
export * from './auth.types';
|
|
3
3
|
export * from './auth.paths';
|
|
4
4
|
export * from './auth.errors';
|
|
5
|
-
export * from './controllers';
|
|
6
|
-
export * from './routes/auth.routes';
|
|
7
5
|
export * from './commands';
|
|
8
6
|
export * from './queries';
|
|
7
|
+
export { AUTH_CONTROLLER } from '../../controllers';
|
|
8
|
+
export { AUTH_ROUTES } from '../../routes';
|
package/build/v1/auth/index.js
CHANGED
|
@@ -14,11 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.AUTH_ROUTES = exports.AUTH_CONTROLLER = void 0;
|
|
17
18
|
__exportStar(require("./schemas"), exports);
|
|
18
19
|
__exportStar(require("./auth.types"), exports);
|
|
19
20
|
__exportStar(require("./auth.paths"), exports);
|
|
20
21
|
__exportStar(require("./auth.errors"), exports);
|
|
21
|
-
__exportStar(require("./controllers"), exports);
|
|
22
|
-
__exportStar(require("./routes/auth.routes"), exports);
|
|
23
22
|
__exportStar(require("./commands"), exports);
|
|
24
23
|
__exportStar(require("./queries"), exports);
|
|
24
|
+
// Re-export from centralized locations
|
|
25
|
+
var controllers_1 = require("../../controllers");
|
|
26
|
+
Object.defineProperty(exports, "AUTH_CONTROLLER", { enumerable: true, get: function () { return controllers_1.AUTH_CONTROLLER; } });
|
|
27
|
+
var routes_1 = require("../../routes");
|
|
28
|
+
Object.defineProperty(exports, "AUTH_ROUTES", { enumerable: true, get: function () { return routes_1.AUTH_ROUTES; } });
|
|
@@ -12,7 +12,6 @@ export declare namespace AuthGetSessionsQuery {
|
|
|
12
12
|
lastUsedAt: z.ZodString;
|
|
13
13
|
}, z.core.$strip>>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
|
-
const PATH: "sessions";
|
|
16
15
|
const URL: "/api/v1/auth/sessions";
|
|
17
16
|
const METHOD = HttpMethod.GET;
|
|
18
17
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AuthGetSessionsQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const auth_response_schema_1 = require("../schemas/auth-response.schema");
|
|
6
|
-
const auth_routes_1 = require("../routes/auth.routes");
|
|
7
6
|
const rest_api_1 = require("../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../shared/http-method");
|
|
9
8
|
var AuthGetSessionsQuery;
|
|
@@ -11,8 +10,7 @@ var AuthGetSessionsQuery;
|
|
|
11
10
|
// Request/Response
|
|
12
11
|
AuthGetSessionsQuery.Request = zod_1.z.object({});
|
|
13
12
|
AuthGetSessionsQuery.Response = auth_response_schema_1.SessionsListResponseSchema;
|
|
14
|
-
//
|
|
15
|
-
AuthGetSessionsQuery.PATH = auth_routes_1.AUTH_ROUTES.SESSIONS;
|
|
13
|
+
// URL/Method
|
|
16
14
|
AuthGetSessionsQuery.URL = rest_api_1.REST_API.V1.AUTH.SESSIONS;
|
|
17
15
|
AuthGetSessionsQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
18
16
|
})(AuthGetSessionsQuery || (exports.AuthGetSessionsQuery = AuthGetSessionsQuery = {}));
|
|
@@ -16,7 +16,6 @@ export declare namespace AdminBlogCreateCategoryCommand {
|
|
|
16
16
|
createdAt: z.ZodString;
|
|
17
17
|
updatedAt: z.ZodString;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
|
-
const PATH: "";
|
|
20
19
|
const URL: "/api/v1/admin/blog/categories/";
|
|
21
20
|
const METHOD = HttpMethod.POST;
|
|
22
21
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminBlogCreateCategoryCommand = void 0;
|
|
4
4
|
const schemas_1 = require("../../schemas");
|
|
5
|
-
const blog_admin_categories_routes_1 = require("../../routes/blog-admin-categories.routes");
|
|
6
5
|
const rest_api_1 = require("../../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../../shared/http-method");
|
|
8
7
|
var AdminBlogCreateCategoryCommand;
|
|
9
8
|
(function (AdminBlogCreateCategoryCommand) {
|
|
10
9
|
AdminBlogCreateCategoryCommand.Request = schemas_1.CreateCategoryRequestSchema;
|
|
11
10
|
AdminBlogCreateCategoryCommand.Response = schemas_1.CategoryResponseSchema;
|
|
12
|
-
AdminBlogCreateCategoryCommand.PATH = blog_admin_categories_routes_1.BLOG_ADMIN_CATEGORIES_ROUTES.CREATE;
|
|
13
11
|
AdminBlogCreateCategoryCommand.URL = rest_api_1.REST_API.V1.BLOG.ADMIN.CATEGORIES.CREATE;
|
|
14
12
|
AdminBlogCreateCategoryCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
15
13
|
})(AdminBlogCreateCategoryCommand || (exports.AdminBlogCreateCategoryCommand = AdminBlogCreateCategoryCommand = {}));
|
|
@@ -35,7 +35,6 @@ export declare namespace AdminBlogCreatePostCommand {
|
|
|
35
35
|
createdAt: z.ZodString;
|
|
36
36
|
updatedAt: z.ZodString;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
|
-
const PATH: "";
|
|
39
38
|
const URL: "/api/v1/admin/blog/posts/";
|
|
40
39
|
const METHOD = HttpMethod.POST;
|
|
41
40
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminBlogCreatePostCommand = void 0;
|
|
4
4
|
const schemas_1 = require("../../schemas");
|
|
5
|
-
const blog_admin_posts_routes_1 = require("../../routes/blog-admin-posts.routes");
|
|
6
5
|
const rest_api_1 = require("../../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../../shared/http-method");
|
|
8
7
|
var AdminBlogCreatePostCommand;
|
|
9
8
|
(function (AdminBlogCreatePostCommand) {
|
|
10
9
|
AdminBlogCreatePostCommand.Request = schemas_1.CreatePostRequestSchema;
|
|
11
10
|
AdminBlogCreatePostCommand.Response = schemas_1.PostResponseSchema;
|
|
12
|
-
AdminBlogCreatePostCommand.PATH = blog_admin_posts_routes_1.BLOG_ADMIN_POSTS_ROUTES.CREATE;
|
|
13
11
|
AdminBlogCreatePostCommand.URL = rest_api_1.REST_API.V1.BLOG.ADMIN.POSTS.CREATE;
|
|
14
12
|
AdminBlogCreatePostCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
15
13
|
})(AdminBlogCreatePostCommand || (exports.AdminBlogCreatePostCommand = AdminBlogCreatePostCommand = {}));
|
|
@@ -3,7 +3,6 @@ import { HttpMethod } from '../../../../shared/http-method';
|
|
|
3
3
|
export declare namespace AdminBlogDeleteCategoryCommand {
|
|
4
4
|
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
const Response: z.ZodObject<{}, z.core.$strip>;
|
|
6
|
-
const PATH: ":uuid";
|
|
7
6
|
const URL: (uuid: string) => string;
|
|
8
7
|
const METHOD = HttpMethod.DELETE;
|
|
9
8
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminBlogDeleteCategoryCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const blog_admin_categories_routes_1 = require("../../routes/blog-admin-categories.routes");
|
|
6
5
|
const rest_api_1 = require("../../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../../shared/http-method");
|
|
8
7
|
const common_schemas_1 = require("../../../../shared/common-schemas");
|
|
@@ -10,7 +9,6 @@ var AdminBlogDeleteCategoryCommand;
|
|
|
10
9
|
(function (AdminBlogDeleteCategoryCommand) {
|
|
11
10
|
AdminBlogDeleteCategoryCommand.Request = zod_1.z.object({});
|
|
12
11
|
AdminBlogDeleteCategoryCommand.Response = common_schemas_1.EmptyResponseSchema;
|
|
13
|
-
AdminBlogDeleteCategoryCommand.PATH = blog_admin_categories_routes_1.BLOG_ADMIN_CATEGORIES_ROUTES.DELETE;
|
|
14
12
|
AdminBlogDeleteCategoryCommand.URL = (uuid) => rest_api_1.REST_API.V1.BLOG.ADMIN.CATEGORIES.DELETE(uuid);
|
|
15
13
|
AdminBlogDeleteCategoryCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
16
14
|
})(AdminBlogDeleteCategoryCommand || (exports.AdminBlogDeleteCategoryCommand = AdminBlogDeleteCategoryCommand = {}));
|
|
@@ -3,7 +3,6 @@ import { HttpMethod } from '../../../../shared/http-method';
|
|
|
3
3
|
export declare namespace AdminBlogDeletePostCommand {
|
|
4
4
|
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
const Response: z.ZodObject<{}, z.core.$strip>;
|
|
6
|
-
const PATH: ":uuid";
|
|
7
6
|
const URL: (uuid: string) => string;
|
|
8
7
|
const METHOD = HttpMethod.DELETE;
|
|
9
8
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminBlogDeletePostCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const blog_admin_posts_routes_1 = require("../../routes/blog-admin-posts.routes");
|
|
6
5
|
const rest_api_1 = require("../../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../../shared/http-method");
|
|
8
7
|
const common_schemas_1 = require("../../../../shared/common-schemas");
|
|
@@ -10,7 +9,6 @@ var AdminBlogDeletePostCommand;
|
|
|
10
9
|
(function (AdminBlogDeletePostCommand) {
|
|
11
10
|
AdminBlogDeletePostCommand.Request = zod_1.z.object({});
|
|
12
11
|
AdminBlogDeletePostCommand.Response = common_schemas_1.EmptyResponseSchema;
|
|
13
|
-
AdminBlogDeletePostCommand.PATH = blog_admin_posts_routes_1.BLOG_ADMIN_POSTS_ROUTES.DELETE;
|
|
14
12
|
AdminBlogDeletePostCommand.URL = (uuid) => rest_api_1.REST_API.V1.BLOG.ADMIN.POSTS.DELETE(uuid);
|
|
15
13
|
AdminBlogDeletePostCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
16
14
|
})(AdminBlogDeletePostCommand || (exports.AdminBlogDeletePostCommand = AdminBlogDeletePostCommand = {}));
|
|
@@ -16,7 +16,6 @@ export declare namespace AdminBlogUpdateCategoryCommand {
|
|
|
16
16
|
createdAt: z.ZodString;
|
|
17
17
|
updatedAt: z.ZodString;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
|
-
const PATH: ":uuid";
|
|
20
19
|
const URL: (uuid: string) => string;
|
|
21
20
|
const METHOD = HttpMethod.PATCH;
|
|
22
21
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminBlogUpdateCategoryCommand = void 0;
|
|
4
4
|
const schemas_1 = require("../../schemas");
|
|
5
|
-
const blog_admin_categories_routes_1 = require("../../routes/blog-admin-categories.routes");
|
|
6
5
|
const rest_api_1 = require("../../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../../shared/http-method");
|
|
8
7
|
var AdminBlogUpdateCategoryCommand;
|
|
9
8
|
(function (AdminBlogUpdateCategoryCommand) {
|
|
10
9
|
AdminBlogUpdateCategoryCommand.Request = schemas_1.UpdateCategoryRequestSchema;
|
|
11
10
|
AdminBlogUpdateCategoryCommand.Response = schemas_1.CategoryResponseSchema;
|
|
12
|
-
AdminBlogUpdateCategoryCommand.PATH = blog_admin_categories_routes_1.BLOG_ADMIN_CATEGORIES_ROUTES.UPDATE;
|
|
13
11
|
AdminBlogUpdateCategoryCommand.URL = (uuid) => rest_api_1.REST_API.V1.BLOG.ADMIN.CATEGORIES.UPDATE(uuid);
|
|
14
12
|
AdminBlogUpdateCategoryCommand.METHOD = http_method_1.HttpMethod.PATCH;
|
|
15
13
|
})(AdminBlogUpdateCategoryCommand || (exports.AdminBlogUpdateCategoryCommand = AdminBlogUpdateCategoryCommand = {}));
|
|
@@ -35,7 +35,6 @@ export declare namespace AdminBlogUpdatePostCommand {
|
|
|
35
35
|
createdAt: z.ZodString;
|
|
36
36
|
updatedAt: z.ZodString;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
|
-
const PATH: ":uuid";
|
|
39
38
|
const URL: (uuid: string) => string;
|
|
40
39
|
const METHOD = HttpMethod.PATCH;
|
|
41
40
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminBlogUpdatePostCommand = void 0;
|
|
4
4
|
const schemas_1 = require("../../schemas");
|
|
5
|
-
const blog_admin_posts_routes_1 = require("../../routes/blog-admin-posts.routes");
|
|
6
5
|
const rest_api_1 = require("../../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../../shared/http-method");
|
|
8
7
|
var AdminBlogUpdatePostCommand;
|
|
9
8
|
(function (AdminBlogUpdatePostCommand) {
|
|
10
9
|
AdminBlogUpdatePostCommand.Request = schemas_1.UpdatePostRequestSchema;
|
|
11
10
|
AdminBlogUpdatePostCommand.Response = schemas_1.PostResponseSchema;
|
|
12
|
-
AdminBlogUpdatePostCommand.PATH = blog_admin_posts_routes_1.BLOG_ADMIN_POSTS_ROUTES.UPDATE;
|
|
13
11
|
AdminBlogUpdatePostCommand.URL = (uuid) => rest_api_1.REST_API.V1.BLOG.ADMIN.POSTS.UPDATE(uuid);
|
|
14
12
|
AdminBlogUpdatePostCommand.METHOD = http_method_1.HttpMethod.PATCH;
|
|
15
13
|
})(AdminBlogUpdatePostCommand || (exports.AdminBlogUpdatePostCommand = AdminBlogUpdatePostCommand = {}));
|
|
@@ -16,7 +16,6 @@ export declare namespace AdminBlogGetCategoriesQuery {
|
|
|
16
16
|
updatedAt: z.ZodString;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
|
-
const PATH: "";
|
|
20
19
|
const URL: "/api/v1/admin/blog/categories/";
|
|
21
20
|
const METHOD = HttpMethod.GET;
|
|
22
21
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AdminBlogGetCategoriesQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const schemas_1 = require("../../schemas");
|
|
6
|
-
const blog_admin_categories_routes_1 = require("../../routes/blog-admin-categories.routes");
|
|
7
6
|
const rest_api_1 = require("../../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../../shared/http-method");
|
|
9
8
|
const CategoriesListAdminResponseSchema = zod_1.z.object({
|
|
@@ -16,7 +15,6 @@ var AdminBlogGetCategoriesQuery;
|
|
|
16
15
|
(function (AdminBlogGetCategoriesQuery) {
|
|
17
16
|
AdminBlogGetCategoriesQuery.Request = GetCategoriesQueryAdminSchema;
|
|
18
17
|
AdminBlogGetCategoriesQuery.Response = CategoriesListAdminResponseSchema;
|
|
19
|
-
AdminBlogGetCategoriesQuery.PATH = blog_admin_categories_routes_1.BLOG_ADMIN_CATEGORIES_ROUTES.GET_ALL;
|
|
20
18
|
AdminBlogGetCategoriesQuery.URL = rest_api_1.REST_API.V1.BLOG.ADMIN.CATEGORIES.GET_ALL;
|
|
21
19
|
AdminBlogGetCategoriesQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
22
20
|
})(AdminBlogGetCategoriesQuery || (exports.AdminBlogGetCategoriesQuery = AdminBlogGetCategoriesQuery = {}));
|
|
@@ -11,7 +11,6 @@ export declare namespace AdminBlogGetCategoryQuery {
|
|
|
11
11
|
createdAt: z.ZodString;
|
|
12
12
|
updatedAt: z.ZodString;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
const PATH: ":uuid";
|
|
15
14
|
const URL: (uuid: string) => string;
|
|
16
15
|
const METHOD = HttpMethod.GET;
|
|
17
16
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -3,14 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AdminBlogGetCategoryQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const schemas_1 = require("../../schemas");
|
|
6
|
-
const blog_admin_categories_routes_1 = require("../../routes/blog-admin-categories.routes");
|
|
7
6
|
const rest_api_1 = require("../../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../../shared/http-method");
|
|
9
8
|
var AdminBlogGetCategoryQuery;
|
|
10
9
|
(function (AdminBlogGetCategoryQuery) {
|
|
11
10
|
AdminBlogGetCategoryQuery.Request = zod_1.z.object({});
|
|
12
11
|
AdminBlogGetCategoryQuery.Response = schemas_1.CategoryResponseSchema;
|
|
13
|
-
AdminBlogGetCategoryQuery.PATH = blog_admin_categories_routes_1.BLOG_ADMIN_CATEGORIES_ROUTES.GET_BY_UUID;
|
|
14
12
|
AdminBlogGetCategoryQuery.URL = (uuid) => rest_api_1.REST_API.V1.BLOG.ADMIN.CATEGORIES.GET_BY_UUID(uuid);
|
|
15
13
|
AdminBlogGetCategoryQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
16
14
|
})(AdminBlogGetCategoryQuery || (exports.AdminBlogGetCategoryQuery = AdminBlogGetCategoryQuery = {}));
|
|
@@ -25,7 +25,6 @@ export declare namespace AdminBlogGetPostQuery {
|
|
|
25
25
|
createdAt: z.ZodString;
|
|
26
26
|
updatedAt: z.ZodString;
|
|
27
27
|
}, z.core.$strip>;
|
|
28
|
-
const PATH: ":uuid";
|
|
29
28
|
const URL: (uuid: string) => string;
|
|
30
29
|
const METHOD = HttpMethod.GET;
|
|
31
30
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -3,14 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AdminBlogGetPostQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const schemas_1 = require("../../schemas");
|
|
6
|
-
const blog_admin_posts_routes_1 = require("../../routes/blog-admin-posts.routes");
|
|
7
6
|
const rest_api_1 = require("../../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../../shared/http-method");
|
|
9
8
|
var AdminBlogGetPostQuery;
|
|
10
9
|
(function (AdminBlogGetPostQuery) {
|
|
11
10
|
AdminBlogGetPostQuery.Request = zod_1.z.object({});
|
|
12
11
|
AdminBlogGetPostQuery.Response = schemas_1.PostResponseSchema;
|
|
13
|
-
AdminBlogGetPostQuery.PATH = blog_admin_posts_routes_1.BLOG_ADMIN_POSTS_ROUTES.GET_BY_UUID;
|
|
14
12
|
AdminBlogGetPostQuery.URL = (uuid) => rest_api_1.REST_API.V1.BLOG.ADMIN.POSTS.GET_BY_UUID(uuid);
|
|
15
13
|
AdminBlogGetPostQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
16
14
|
})(AdminBlogGetPostQuery || (exports.AdminBlogGetPostQuery = AdminBlogGetPostQuery = {}));
|
|
@@ -40,7 +40,6 @@ export declare namespace AdminBlogGetPostsQuery {
|
|
|
40
40
|
hasPrev: z.ZodBoolean;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
|
-
const PATH: "";
|
|
44
43
|
const URL: "/api/v1/admin/blog/posts/";
|
|
45
44
|
const METHOD = HttpMethod.GET;
|
|
46
45
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -4,7 +4,6 @@ exports.AdminBlogGetPostsQuery = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const schemas_1 = require("../../schemas");
|
|
6
6
|
const pagination_schema_1 = require("../../../../shared/pagination.schema");
|
|
7
|
-
const blog_admin_posts_routes_1 = require("../../routes/blog-admin-posts.routes");
|
|
8
7
|
const rest_api_1 = require("../../../../rest-api");
|
|
9
8
|
const http_method_1 = require("../../../../shared/http-method");
|
|
10
9
|
const PostsListAdminResponseSchema = zod_1.z.object({
|
|
@@ -15,7 +14,6 @@ var AdminBlogGetPostsQuery;
|
|
|
15
14
|
(function (AdminBlogGetPostsQuery) {
|
|
16
15
|
AdminBlogGetPostsQuery.Request = schemas_1.GetPostsQueryAdminSchema;
|
|
17
16
|
AdminBlogGetPostsQuery.Response = PostsListAdminResponseSchema;
|
|
18
|
-
AdminBlogGetPostsQuery.PATH = blog_admin_posts_routes_1.BLOG_ADMIN_POSTS_ROUTES.GET_ALL;
|
|
19
17
|
AdminBlogGetPostsQuery.URL = rest_api_1.REST_API.V1.BLOG.ADMIN.POSTS.GET_ALL;
|
|
20
18
|
AdminBlogGetPostsQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
21
19
|
})(AdminBlogGetPostsQuery || (exports.AdminBlogGetPostsQuery = AdminBlogGetPostsQuery = {}));
|
package/build/v1/blog/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './schemas';
|
|
2
2
|
export * from './blog.types';
|
|
3
3
|
export * from './blog.paths';
|
|
4
|
-
export * from './controllers';
|
|
5
|
-
export * from './routes';
|
|
6
4
|
export * from './admin/commands';
|
|
7
5
|
export * from './admin/queries';
|
|
8
6
|
export * from './public/queries';
|
|
7
|
+
export { BLOG_ADMIN_CATEGORIES_CONTROLLER, BLOG_ADMIN_POSTS_CONTROLLER, BLOG_PUBLIC_CATEGORIES_CONTROLLER, BLOG_PUBLIC_POSTS_CONTROLLER, } from '../../controllers';
|
|
8
|
+
export { BLOG_ADMIN_CATEGORIES_ROUTES, BLOG_ADMIN_POSTS_ROUTES, BLOG_PUBLIC_CATEGORIES_ROUTES, BLOG_PUBLIC_POSTS_ROUTES, } from '../../routes';
|
package/build/v1/blog/index.js
CHANGED
|
@@ -14,11 +14,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.BLOG_PUBLIC_POSTS_ROUTES = exports.BLOG_PUBLIC_CATEGORIES_ROUTES = exports.BLOG_ADMIN_POSTS_ROUTES = exports.BLOG_ADMIN_CATEGORIES_ROUTES = exports.BLOG_PUBLIC_POSTS_CONTROLLER = exports.BLOG_PUBLIC_CATEGORIES_CONTROLLER = exports.BLOG_ADMIN_POSTS_CONTROLLER = exports.BLOG_ADMIN_CATEGORIES_CONTROLLER = void 0;
|
|
17
18
|
__exportStar(require("./schemas"), exports);
|
|
18
19
|
__exportStar(require("./blog.types"), exports);
|
|
19
20
|
__exportStar(require("./blog.paths"), exports);
|
|
20
|
-
__exportStar(require("./controllers"), exports);
|
|
21
|
-
__exportStar(require("./routes"), exports);
|
|
22
21
|
__exportStar(require("./admin/commands"), exports);
|
|
23
22
|
__exportStar(require("./admin/queries"), exports);
|
|
24
23
|
__exportStar(require("./public/queries"), exports);
|
|
24
|
+
// Re-export from centralized locations
|
|
25
|
+
var controllers_1 = require("../../controllers");
|
|
26
|
+
Object.defineProperty(exports, "BLOG_ADMIN_CATEGORIES_CONTROLLER", { enumerable: true, get: function () { return controllers_1.BLOG_ADMIN_CATEGORIES_CONTROLLER; } });
|
|
27
|
+
Object.defineProperty(exports, "BLOG_ADMIN_POSTS_CONTROLLER", { enumerable: true, get: function () { return controllers_1.BLOG_ADMIN_POSTS_CONTROLLER; } });
|
|
28
|
+
Object.defineProperty(exports, "BLOG_PUBLIC_CATEGORIES_CONTROLLER", { enumerable: true, get: function () { return controllers_1.BLOG_PUBLIC_CATEGORIES_CONTROLLER; } });
|
|
29
|
+
Object.defineProperty(exports, "BLOG_PUBLIC_POSTS_CONTROLLER", { enumerable: true, get: function () { return controllers_1.BLOG_PUBLIC_POSTS_CONTROLLER; } });
|
|
30
|
+
var routes_1 = require("../../routes");
|
|
31
|
+
Object.defineProperty(exports, "BLOG_ADMIN_CATEGORIES_ROUTES", { enumerable: true, get: function () { return routes_1.BLOG_ADMIN_CATEGORIES_ROUTES; } });
|
|
32
|
+
Object.defineProperty(exports, "BLOG_ADMIN_POSTS_ROUTES", { enumerable: true, get: function () { return routes_1.BLOG_ADMIN_POSTS_ROUTES; } });
|
|
33
|
+
Object.defineProperty(exports, "BLOG_PUBLIC_CATEGORIES_ROUTES", { enumerable: true, get: function () { return routes_1.BLOG_PUBLIC_CATEGORIES_ROUTES; } });
|
|
34
|
+
Object.defineProperty(exports, "BLOG_PUBLIC_POSTS_ROUTES", { enumerable: true, get: function () { return routes_1.BLOG_PUBLIC_POSTS_ROUTES; } });
|
|
@@ -13,7 +13,6 @@ export declare namespace BlogGetCategoriesQuery {
|
|
|
13
13
|
updatedAt: z.ZodString;
|
|
14
14
|
}, z.core.$strip>>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
|
-
const PATH: "";
|
|
17
16
|
const URL: "/api/v1/blog/categories/";
|
|
18
17
|
const METHOD = HttpMethod.GET;
|
|
19
18
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BlogGetCategoriesQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const schemas_1 = require("../../schemas");
|
|
6
|
-
const blog_public_routes_1 = require("../../routes/blog-public.routes");
|
|
7
6
|
const rest_api_1 = require("../../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../../shared/http-method");
|
|
9
8
|
const CategoriesListPublicResponseSchema = zod_1.z.object({
|
|
@@ -13,7 +12,6 @@ var BlogGetCategoriesQuery;
|
|
|
13
12
|
(function (BlogGetCategoriesQuery) {
|
|
14
13
|
BlogGetCategoriesQuery.Request = zod_1.z.object({});
|
|
15
14
|
BlogGetCategoriesQuery.Response = CategoriesListPublicResponseSchema;
|
|
16
|
-
BlogGetCategoriesQuery.PATH = blog_public_routes_1.BLOG_PUBLIC_CATEGORIES_ROUTES.GET_ALL;
|
|
17
15
|
BlogGetCategoriesQuery.URL = rest_api_1.REST_API.V1.BLOG.PUBLIC.CATEGORIES.GET_ALL;
|
|
18
16
|
BlogGetCategoriesQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
19
17
|
})(BlogGetCategoriesQuery || (exports.BlogGetCategoriesQuery = BlogGetCategoriesQuery = {}));
|
|
@@ -25,7 +25,6 @@ export declare namespace BlogGetPostByAliasQuery {
|
|
|
25
25
|
createdAt: z.ZodString;
|
|
26
26
|
updatedAt: z.ZodString;
|
|
27
27
|
}, z.core.$strip>;
|
|
28
|
-
const PATH: ":alias";
|
|
29
28
|
const URL: (alias: string) => string;
|
|
30
29
|
const METHOD = HttpMethod.GET;
|
|
31
30
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -3,14 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BlogGetPostByAliasQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const schemas_1 = require("../../schemas");
|
|
6
|
-
const blog_public_routes_1 = require("../../routes/blog-public.routes");
|
|
7
6
|
const rest_api_1 = require("../../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../../shared/http-method");
|
|
9
8
|
var BlogGetPostByAliasQuery;
|
|
10
9
|
(function (BlogGetPostByAliasQuery) {
|
|
11
10
|
BlogGetPostByAliasQuery.Request = zod_1.z.object({});
|
|
12
11
|
BlogGetPostByAliasQuery.Response = schemas_1.PostResponseSchema;
|
|
13
|
-
BlogGetPostByAliasQuery.PATH = blog_public_routes_1.BLOG_PUBLIC_POSTS_ROUTES.GET_BY_ALIAS;
|
|
14
12
|
BlogGetPostByAliasQuery.URL = (alias) => rest_api_1.REST_API.V1.BLOG.PUBLIC.POSTS.GET_BY_ALIAS(alias);
|
|
15
13
|
BlogGetPostByAliasQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
16
14
|
})(BlogGetPostByAliasQuery || (exports.BlogGetPostByAliasQuery = BlogGetPostByAliasQuery = {}));
|
|
@@ -4,7 +4,6 @@ exports.BlogGetPostsQuery = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const schemas_1 = require("../../schemas");
|
|
6
6
|
const pagination_schema_1 = require("../../../../shared/pagination.schema");
|
|
7
|
-
const blog_public_routes_1 = require("../../routes/blog-public.routes");
|
|
8
7
|
const rest_api_1 = require("../../../../rest-api");
|
|
9
8
|
const http_method_1 = require("../../../../shared/http-method");
|
|
10
9
|
const PostsListResponseSchema = zod_1.z.object({
|
|
@@ -15,7 +14,6 @@ var BlogGetPostsQuery;
|
|
|
15
14
|
(function (BlogGetPostsQuery) {
|
|
16
15
|
BlogGetPostsQuery.Request = schemas_1.GetPostsQueryPublicSchema;
|
|
17
16
|
BlogGetPostsQuery.Response = PostsListResponseSchema;
|
|
18
|
-
BlogGetPostsQuery.PATH = blog_public_routes_1.BLOG_PUBLIC_POSTS_ROUTES.GET_ALL;
|
|
19
17
|
BlogGetPostsQuery.URL = rest_api_1.REST_API.V1.BLOG.PUBLIC.POSTS.GET_ALL;
|
|
20
18
|
BlogGetPostsQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
21
19
|
})(BlogGetPostsQuery || (exports.BlogGetPostsQuery = BlogGetPostsQuery = {}));
|
package/build/v1/index.d.ts
CHANGED
package/build/v1/index.js
CHANGED
|
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./auth"), exports);
|
|
18
18
|
__exportStar(require("./unregistered-users"), exports);
|
|
19
|
+
__exportStar(require("./blog"), exports);
|
|
20
|
+
__exportStar(require("./users"), exports);
|
|
@@ -17,7 +17,6 @@ export declare namespace UnregAuthenticateCommand {
|
|
|
17
17
|
nextResetAt: z.ZodString;
|
|
18
18
|
status: z.ZodEnum<typeof import("../schemas").UnregUserStatus>;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
|
-
const PATH: "";
|
|
21
20
|
const URL: "/api/v1/unreg/";
|
|
22
21
|
const METHOD = HttpMethod.PUT;
|
|
23
22
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UnregAuthenticateCommand = void 0;
|
|
4
4
|
const schemas_1 = require("../schemas");
|
|
5
|
-
const unreg_users_routes_1 = require("../routes/unreg-users.routes");
|
|
6
5
|
const rest_api_1 = require("../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../shared/http-method");
|
|
8
7
|
var UnregAuthenticateCommand;
|
|
9
8
|
(function (UnregAuthenticateCommand) {
|
|
10
9
|
UnregAuthenticateCommand.Request = schemas_1.AuthenticateUnregUserRequestSchema;
|
|
11
10
|
UnregAuthenticateCommand.Response = schemas_1.AuthenticateUnregUserResponseSchema;
|
|
12
|
-
UnregAuthenticateCommand.PATH = unreg_users_routes_1.UNREG_USERS_ROUTES.AUTHENTICATE;
|
|
13
11
|
UnregAuthenticateCommand.URL = rest_api_1.REST_API.V1.UNREG.AUTHENTICATE;
|
|
14
12
|
UnregAuthenticateCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
15
13
|
})(UnregAuthenticateCommand || (exports.UnregAuthenticateCommand = UnregAuthenticateCommand = {}));
|
|
@@ -3,3 +3,5 @@ export * from './unregistered-users.types';
|
|
|
3
3
|
export * from './unregistered-users.paths';
|
|
4
4
|
export * from './unregistered-users.errors';
|
|
5
5
|
export * from './commands';
|
|
6
|
+
export { UNREG_USERS_CONTROLLER } from '../../controllers';
|
|
7
|
+
export { UNREG_USERS_ROUTES } from '../../routes';
|
|
@@ -14,8 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.UNREG_USERS_ROUTES = exports.UNREG_USERS_CONTROLLER = void 0;
|
|
17
18
|
__exportStar(require("./schemas"), exports);
|
|
18
19
|
__exportStar(require("./unregistered-users.types"), exports);
|
|
19
20
|
__exportStar(require("./unregistered-users.paths"), exports);
|
|
20
21
|
__exportStar(require("./unregistered-users.errors"), exports);
|
|
21
22
|
__exportStar(require("./commands"), exports);
|
|
23
|
+
// Re-export from centralized locations
|
|
24
|
+
var controllers_1 = require("../../controllers");
|
|
25
|
+
Object.defineProperty(exports, "UNREG_USERS_CONTROLLER", { enumerable: true, get: function () { return controllers_1.UNREG_USERS_CONTROLLER; } });
|
|
26
|
+
var routes_1 = require("../../routes");
|
|
27
|
+
Object.defineProperty(exports, "UNREG_USERS_ROUTES", { enumerable: true, get: function () { return routes_1.UNREG_USERS_ROUTES; } });
|
|
@@ -9,7 +9,6 @@ export declare namespace UserChangePasswordCommand {
|
|
|
9
9
|
const Response: z.ZodObject<{
|
|
10
10
|
userId: z.ZodString;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
const PATH: "me/password";
|
|
13
12
|
const URL: "/api/v1/users/me/password";
|
|
14
13
|
const METHOD = HttpMethod.PUT;
|
|
15
14
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserChangePasswordCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const schemas_1 = require("../schemas");
|
|
6
|
-
const users_routes_1 = require("../routes/users.routes");
|
|
7
6
|
const rest_api_1 = require("../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../shared/http-method");
|
|
9
8
|
const regex_1 = require("../../../shared/regex");
|
|
@@ -13,7 +12,6 @@ var UserChangePasswordCommand;
|
|
|
13
12
|
UserChangePasswordCommand.Response = zod_1.z.object({
|
|
14
13
|
userId: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
15
14
|
});
|
|
16
|
-
UserChangePasswordCommand.PATH = users_routes_1.USERS_ROUTES.ME_PASSWORD;
|
|
17
15
|
UserChangePasswordCommand.URL = rest_api_1.REST_API.V1.USERS.ME_PASSWORD;
|
|
18
16
|
UserChangePasswordCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
19
17
|
})(UserChangePasswordCommand || (exports.UserChangePasswordCommand = UserChangePasswordCommand = {}));
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserDeleteAccountCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const users_routes_1 = require("../routes/users.routes");
|
|
6
5
|
const rest_api_1 = require("../../../rest-api");
|
|
7
6
|
const http_method_1 = require("../../../shared/http-method");
|
|
8
7
|
const regex_1 = require("../../../shared/regex");
|
|
@@ -12,7 +11,6 @@ var UserDeleteAccountCommand;
|
|
|
12
11
|
UserDeleteAccountCommand.Response = zod_1.z.object({
|
|
13
12
|
userId: zod_1.z.string().regex(regex_1.UUID_REGEX),
|
|
14
13
|
});
|
|
15
|
-
UserDeleteAccountCommand.PATH = users_routes_1.USERS_ROUTES.ME;
|
|
16
14
|
UserDeleteAccountCommand.URL = rest_api_1.REST_API.V1.USERS.ME;
|
|
17
15
|
UserDeleteAccountCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
18
16
|
})(UserDeleteAccountCommand || (exports.UserDeleteAccountCommand = UserDeleteAccountCommand = {}));
|
|
@@ -12,7 +12,6 @@ export declare namespace UserToggleMarketingConsentCommand {
|
|
|
12
12
|
marketingConsent: z.ZodBoolean;
|
|
13
13
|
createdAt: z.ZodString;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
|
-
const PATH: "me/marketing-consent";
|
|
16
15
|
const URL: "/api/v1/users/me/marketing-consent";
|
|
17
16
|
const METHOD = HttpMethod.PUT;
|
|
18
17
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -3,14 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserToggleMarketingConsentCommand = void 0;
|
|
4
4
|
const toggle_marketing_consent_request_schema_1 = require("../schemas/toggle-marketing-consent-request.schema");
|
|
5
5
|
const user_response_schema_1 = require("../schemas/user-response.schema");
|
|
6
|
-
const users_routes_1 = require("../routes/users.routes");
|
|
7
6
|
const rest_api_1 = require("../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../shared/http-method");
|
|
9
8
|
var UserToggleMarketingConsentCommand;
|
|
10
9
|
(function (UserToggleMarketingConsentCommand) {
|
|
11
10
|
UserToggleMarketingConsentCommand.Request = toggle_marketing_consent_request_schema_1.ToggleMarketingConsentRequestSchema;
|
|
12
11
|
UserToggleMarketingConsentCommand.Response = user_response_schema_1.UserResponseSchema;
|
|
13
|
-
UserToggleMarketingConsentCommand.PATH = users_routes_1.USERS_ROUTES.ME_MARKETING_CONSENT;
|
|
14
12
|
UserToggleMarketingConsentCommand.URL = rest_api_1.REST_API.V1.USERS.ME_MARKETING_CONSENT;
|
|
15
13
|
UserToggleMarketingConsentCommand.METHOD = http_method_1.HttpMethod.PUT;
|
|
16
14
|
})(UserToggleMarketingConsentCommand || (exports.UserToggleMarketingConsentCommand = UserToggleMarketingConsentCommand = {}));
|
|
@@ -12,7 +12,6 @@ export declare namespace UserUpdateProfileCommand {
|
|
|
12
12
|
marketingConsent: z.ZodBoolean;
|
|
13
13
|
createdAt: z.ZodString;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
|
-
const PATH: "me";
|
|
16
15
|
const URL: "/api/v1/users/me";
|
|
17
16
|
const METHOD = HttpMethod.PATCH;
|
|
18
17
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -3,14 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserUpdateProfileCommand = void 0;
|
|
4
4
|
const update_profile_request_schema_1 = require("../schemas/update-profile-request.schema");
|
|
5
5
|
const user_response_schema_1 = require("../schemas/user-response.schema");
|
|
6
|
-
const users_routes_1 = require("../routes/users.routes");
|
|
7
6
|
const rest_api_1 = require("../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../shared/http-method");
|
|
9
8
|
var UserUpdateProfileCommand;
|
|
10
9
|
(function (UserUpdateProfileCommand) {
|
|
11
10
|
UserUpdateProfileCommand.Request = update_profile_request_schema_1.UpdateProfileRequestSchema;
|
|
12
11
|
UserUpdateProfileCommand.Response = user_response_schema_1.UserResponseSchema;
|
|
13
|
-
UserUpdateProfileCommand.PATH = users_routes_1.USERS_ROUTES.ME;
|
|
14
12
|
UserUpdateProfileCommand.URL = rest_api_1.REST_API.V1.USERS.ME;
|
|
15
13
|
UserUpdateProfileCommand.METHOD = http_method_1.HttpMethod.PATCH;
|
|
16
14
|
})(UserUpdateProfileCommand || (exports.UserUpdateProfileCommand = UserUpdateProfileCommand = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './schemas';
|
|
2
2
|
export * from './users.types';
|
|
3
3
|
export * from './users.paths';
|
|
4
|
-
export * from './controllers';
|
|
5
|
-
export * from './routes/users.routes';
|
|
6
4
|
export * from './commands';
|
|
7
5
|
export * from './queries';
|
|
6
|
+
export { USERS_CONTROLLER } from '../../controllers';
|
|
7
|
+
export { USERS_ROUTES } from '../../routes';
|
package/build/v1/users/index.js
CHANGED
|
@@ -14,10 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.USERS_ROUTES = exports.USERS_CONTROLLER = void 0;
|
|
17
18
|
__exportStar(require("./schemas"), exports);
|
|
18
19
|
__exportStar(require("./users.types"), exports);
|
|
19
20
|
__exportStar(require("./users.paths"), exports);
|
|
20
|
-
__exportStar(require("./controllers"), exports);
|
|
21
|
-
__exportStar(require("./routes/users.routes"), exports);
|
|
22
21
|
__exportStar(require("./commands"), exports);
|
|
23
22
|
__exportStar(require("./queries"), exports);
|
|
23
|
+
// Re-export from centralized locations
|
|
24
|
+
var controllers_1 = require("../../controllers");
|
|
25
|
+
Object.defineProperty(exports, "USERS_CONTROLLER", { enumerable: true, get: function () { return controllers_1.USERS_CONTROLLER; } });
|
|
26
|
+
var routes_1 = require("../../routes");
|
|
27
|
+
Object.defineProperty(exports, "USERS_ROUTES", { enumerable: true, get: function () { return routes_1.USERS_ROUTES; } });
|
|
@@ -10,7 +10,6 @@ export declare namespace UserGetCurrentUserQuery {
|
|
|
10
10
|
marketingConsent: z.ZodBoolean;
|
|
11
11
|
createdAt: z.ZodString;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
const PATH: "me";
|
|
14
13
|
const URL: "/api/v1/users/me";
|
|
15
14
|
const METHOD = HttpMethod.GET;
|
|
16
15
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -3,14 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserGetCurrentUserQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const user_response_schema_1 = require("../schemas/user-response.schema");
|
|
6
|
-
const users_routes_1 = require("../routes/users.routes");
|
|
7
6
|
const rest_api_1 = require("../../../rest-api");
|
|
8
7
|
const http_method_1 = require("../../../shared/http-method");
|
|
9
8
|
var UserGetCurrentUserQuery;
|
|
10
9
|
(function (UserGetCurrentUserQuery) {
|
|
11
10
|
UserGetCurrentUserQuery.Request = zod_1.z.object({});
|
|
12
11
|
UserGetCurrentUserQuery.Response = user_response_schema_1.UserResponseSchema;
|
|
13
|
-
UserGetCurrentUserQuery.PATH = users_routes_1.USERS_ROUTES.ME;
|
|
14
12
|
UserGetCurrentUserQuery.URL = rest_api_1.REST_API.V1.USERS.ME;
|
|
15
13
|
UserGetCurrentUserQuery.METHOD = http_method_1.HttpMethod.GET;
|
|
16
14
|
})(UserGetCurrentUserQuery || (exports.UserGetCurrentUserQuery = UserGetCurrentUserQuery = {}));
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
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("./blog-admin-categories.routes"), exports);
|
|
18
|
-
__exportStar(require("./blog-admin-posts.routes"), exports);
|
|
19
|
-
__exportStar(require("./blog-public.routes"), exports);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/build/{v1/unregistered-users/controllers.d.ts → controllers/unreg-users.controllers.d.ts}
RENAMED
|
File without changes
|
/package/build/{v1/unregistered-users/controllers.js → controllers/unreg-users.controllers.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|