@duvdu-v1/duvdu 1.1.85 → 1.1.87
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/auth/src/nats-wrapper.d.ts +8 -0
- package/build/auth/src/nats-wrapper.js +28 -0
- package/build/{errors → common/src/errors}/bad-request-error.d.ts +9 -1
- package/build/common/src/errors/bad-request-error.js +47 -0
- package/build/common/src/errors/data-base-connections.d.ts +16 -0
- package/build/common/src/errors/data-base-connections.js +51 -0
- package/build/{errors → common/src/errors}/not-allowed-error.d.ts +9 -1
- package/build/common/src/errors/not-allowed-error.js +47 -0
- package/build/common/src/errors/notfound-error.d.ts +17 -0
- package/build/common/src/errors/notfound-error.js +47 -0
- package/build/{errors → common/src/errors}/unauthenticated-error.d.ts +9 -1
- package/build/common/src/errors/unauthenticated-error.js +47 -0
- package/build/{errors → common/src/errors}/unauthorized-error.d.ts +9 -1
- package/build/common/src/errors/unauthorized-error.js +47 -0
- package/build/{middlewares → common/src/middlewares}/auth.middleware.js +5 -2
- package/build/{models → common/src/models}/User.model.js +6 -0
- package/build/{types → common/src/types}/User.d.ts +4 -0
- package/package.json +55 -55
- package/build/errors/bad-request-error.js +0 -15
- package/build/errors/data-base-connections.d.ts +0 -8
- package/build/errors/data-base-connections.js +0 -19
- package/build/errors/not-allowed-error.js +0 -15
- package/build/errors/notfound-error.d.ts +0 -9
- package/build/errors/notfound-error.js +0 -15
- package/build/errors/unauthenticated-error.js +0 -15
- package/build/errors/unauthorized-error.js +0 -15
- /package/build/{errors → common/src/errors}/custom-error.d.ts +0 -0
- /package/build/{errors → common/src/errors}/custom-error.js +0 -0
- /package/build/{errors → common/src/errors}/generic-error.d.ts +0 -0
- /package/build/{errors → common/src/errors}/generic-error.js +0 -0
- /package/build/{errors → common/src/errors}/validation-error.d.ts +0 -0
- /package/build/{errors → common/src/errors}/validation-error.js +0 -0
- /package/build/{events → common/src/events}/base-listener.d.ts +0 -0
- /package/build/{events → common/src/events}/base-listener.js +0 -0
- /package/build/{events → common/src/events}/base-publisher.d.ts +0 -0
- /package/build/{events → common/src/events}/base-publisher.js +0 -0
- /package/build/{events → common/src/events}/new-notification.event.d.ts +0 -0
- /package/build/{events → common/src/events}/new-notification.event.js +0 -0
- /package/build/{events → common/src/events}/subject.d.ts +0 -0
- /package/build/{events → common/src/events}/subject.js +0 -0
- /package/build/{index.d.ts → common/src/index.d.ts} +0 -0
- /package/build/{index.js → common/src/index.js} +0 -0
- /package/build/{middlewares → common/src/middlewares}/auth.middleware.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/check-required-files.middleware.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/check-required-files.middleware.js +0 -0
- /package/build/{middlewares → common/src/middlewares}/database-connection.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/database-connection.js +0 -0
- /package/build/{middlewares → common/src/middlewares}/global-error-handling.middleware.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/global-error-handling.middleware.js +0 -0
- /package/build/{middlewares → common/src/middlewares}/global-pagination.middleware.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/global-pagination.middleware.js +0 -0
- /package/build/{middlewares → common/src/middlewares}/global-upload.middleware.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/global-upload.middleware.js +0 -0
- /package/build/{middlewares → common/src/middlewares}/global-validator.middleware.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/global-validator.middleware.js +0 -0
- /package/build/{middlewares → common/src/middlewares}/isAuthorized.middleware.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/isAuthorized.middleware.js +0 -0
- /package/build/{middlewares → common/src/middlewares}/language-header.middleware.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/language-header.middleware.js +0 -0
- /package/build/{middlewares → common/src/middlewares}/optional-auth.middleware.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/optional-auth.middleware.js +0 -0
- /package/build/{middlewares → common/src/middlewares}/redis-connection.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/redis-connection.js +0 -0
- /package/build/{middlewares → common/src/middlewares}/upload-project-media.middleware.d.ts +0 -0
- /package/build/{middlewares → common/src/middlewares}/upload-project-media.middleware.js +0 -0
- /package/build/{models → common/src/models}/Bookmark.model.d.ts +0 -0
- /package/build/{models → common/src/models}/Bookmark.model.js +0 -0
- /package/build/{models → common/src/models}/Plan.model.d.ts +0 -0
- /package/build/{models → common/src/models}/Plan.model.js +0 -0
- /package/build/{models → common/src/models}/Role.model.d.ts +0 -0
- /package/build/{models → common/src/models}/Role.model.js +0 -0
- /package/build/{models → common/src/models}/Term.model.d.ts +0 -0
- /package/build/{models → common/src/models}/Term.model.js +0 -0
- /package/build/{models → common/src/models}/Ticket.model.d.ts +0 -0
- /package/build/{models → common/src/models}/Ticket.model.js +0 -0
- /package/build/{models → common/src/models}/User.model.d.ts +0 -0
- /package/build/{models → common/src/models}/allProjects.model.d.ts +0 -0
- /package/build/{models → common/src/models}/allProjects.model.js +0 -0
- /package/build/{models → common/src/models}/category.model.d.ts +0 -0
- /package/build/{models → common/src/models}/category.model.js +0 -0
- /package/build/{models → common/src/models}/contracts.model.d.ts +0 -0
- /package/build/{models → common/src/models}/contracts.model.js +0 -0
- /package/build/{models → common/src/models}/copyrights.model.d.ts +0 -0
- /package/build/{models → common/src/models}/copyrights.model.js +0 -0
- /package/build/{models → common/src/models}/follow.model.d.ts +0 -0
- /package/build/{models → common/src/models}/follow.model.js +0 -0
- /package/build/{models → common/src/models}/messages.model.d.ts +0 -0
- /package/build/{models → common/src/models}/messages.model.js +0 -0
- /package/build/{models → common/src/models}/notification.model.d.ts +0 -0
- /package/build/{models → common/src/models}/notification.model.js +0 -0
- /package/build/{models → common/src/models}/portfolio-post.model.d.ts +0 -0
- /package/build/{models → common/src/models}/portfolio-post.model.js +0 -0
- /package/build/{models → common/src/models}/producer.model.d.ts +0 -0
- /package/build/{models → common/src/models}/producer.model.js +0 -0
- /package/build/{models → common/src/models}/report.model.d.ts +0 -0
- /package/build/{models → common/src/models}/report.model.js +0 -0
- /package/build/{models → common/src/models}/studio-booking.model.d.ts +0 -0
- /package/build/{models → common/src/models}/studio-booking.model.js +0 -0
- /package/build/{models → common/src/models}/teamProject.model.d.ts +0 -0
- /package/build/{models → common/src/models}/teamProject.model.js +0 -0
- /package/build/{services → common/src/services}/category.service.d.ts +0 -0
- /package/build/{services → common/src/services}/category.service.js +0 -0
- /package/build/{types → common/src/types}/Bookmarks.d.ts +0 -0
- /package/build/{types → common/src/types}/Bookmarks.js +0 -0
- /package/build/{types → common/src/types}/Category.d.ts +0 -0
- /package/build/{types → common/src/types}/Category.js +0 -0
- /package/build/{types → common/src/types}/JwtPayload.d.ts +0 -0
- /package/build/{types → common/src/types}/JwtPayload.js +0 -0
- /package/build/{types → common/src/types}/Pagination.d.ts +0 -0
- /package/build/{types → common/src/types}/Pagination.js +0 -0
- /package/build/{types → common/src/types}/Permissions.d.ts +0 -0
- /package/build/{types → common/src/types}/Permissions.js +0 -0
- /package/build/{types → common/src/types}/Plan.d.ts +0 -0
- /package/build/{types → common/src/types}/Plan.js +0 -0
- /package/build/{types → common/src/types}/Projects.d.ts +0 -0
- /package/build/{types → common/src/types}/Projects.js +0 -0
- /package/build/{types → common/src/types}/Rate.d.ts +0 -0
- /package/build/{types → common/src/types}/Rate.js +0 -0
- /package/build/{types → common/src/types}/Role.d.ts +0 -0
- /package/build/{types → common/src/types}/Role.js +0 -0
- /package/build/{types → common/src/types}/Terms.d.ts +0 -0
- /package/build/{types → common/src/types}/Terms.js +0 -0
- /package/build/{types → common/src/types}/Ticket.d.ts +0 -0
- /package/build/{types → common/src/types}/Ticket.js +0 -0
- /package/build/{types → common/src/types}/UrlQuery.d.ts +0 -0
- /package/build/{types → common/src/types}/UrlQuery.js +0 -0
- /package/build/{types → common/src/types}/User.js +0 -0
- /package/build/{types → common/src/types}/booking-states.d.ts +0 -0
- /package/build/{types → common/src/types}/booking-states.js +0 -0
- /package/build/{types → common/src/types}/copyrights-order.d.ts +0 -0
- /package/build/{types → common/src/types}/copyrights-order.js +0 -0
- /package/build/{types → common/src/types}/cycles.d.ts +0 -0
- /package/build/{types → common/src/types}/cycles.js +0 -0
- /package/build/{types → common/src/types}/folders.d.ts +0 -0
- /package/build/{types → common/src/types}/folders.js +0 -0
- /package/build/{types → common/src/types}/model-names.d.ts +0 -0
- /package/build/{types → common/src/types}/model-names.js +0 -0
- /package/build/{types → common/src/types}/notification.type.d.ts +0 -0
- /package/build/{types → common/src/types}/notification.type.js +0 -0
- /package/build/{types → common/src/types}/pagination-response.d.ts +0 -0
- /package/build/{types → common/src/types}/pagination-response.js +0 -0
- /package/build/{types → common/src/types}/portfolio-post-order.d.ts +0 -0
- /package/build/{types → common/src/types}/portfolio-post-order.js +0 -0
- /package/build/{types → common/src/types}/socket-channel.d.ts +0 -0
- /package/build/{types → common/src/types}/socket-channel.js +0 -0
- /package/build/{types → common/src/types}/success-response.d.ts +0 -0
- /package/build/{types → common/src/types}/success-response.js +0 -0
- /package/build/{types → common/src/types}/systemRoles.d.ts +0 -0
- /package/build/{types → common/src/types}/systemRoles.js +0 -0
- /package/build/{utils → common/src/utils}/api-feature.d.ts +0 -0
- /package/build/{utils → common/src/utils}/api-feature.js +0 -0
- /package/build/{utils → common/src/utils}/bucket.d.ts +0 -0
- /package/build/{utils → common/src/utils}/bucket.js +0 -0
- /package/build/{utils → common/src/utils}/file.d.ts +0 -0
- /package/build/{utils → common/src/utils}/file.js +0 -0
- /package/build/{utils → common/src/utils}/generateToken.d.ts +0 -0
- /package/build/{utils → common/src/utils}/generateToken.js +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotFound = void 0;
|
|
4
|
-
const custom_error_1 = require("./custom-error");
|
|
5
|
-
class NotFound extends custom_error_1.CustomError {
|
|
6
|
-
constructor(message) {
|
|
7
|
-
super(message || 'not found error');
|
|
8
|
-
this.statusCode = 404;
|
|
9
|
-
Object.setPrototypeOf(this, NotFound.prototype);
|
|
10
|
-
}
|
|
11
|
-
serializeError() {
|
|
12
|
-
return [{ message: this.message || 'not found error' }];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.NotFound = NotFound;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnauthenticatedError = void 0;
|
|
4
|
-
const custom_error_1 = require("./custom-error");
|
|
5
|
-
class UnauthenticatedError extends custom_error_1.CustomError {
|
|
6
|
-
constructor(message) {
|
|
7
|
-
super(message || 'un-authenticated error');
|
|
8
|
-
this.statusCode = 401;
|
|
9
|
-
Object.setPrototypeOf(this, UnauthenticatedError.prototype);
|
|
10
|
-
}
|
|
11
|
-
serializeError() {
|
|
12
|
-
return [{ message: this.message || 'un-authenticated error' }];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.UnauthenticatedError = UnauthenticatedError;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnauthorizedError = void 0;
|
|
4
|
-
const custom_error_1 = require("./custom-error");
|
|
5
|
-
class UnauthorizedError extends custom_error_1.CustomError {
|
|
6
|
-
constructor(message) {
|
|
7
|
-
super(message || 'un-unauthorized error');
|
|
8
|
-
this.statusCode = 403;
|
|
9
|
-
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|
|
10
|
-
}
|
|
11
|
-
serializeError() {
|
|
12
|
-
return [{ message: this.message || 'un-unauthorized error' }];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.UnauthorizedError = UnauthorizedError;
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|