@duvdu-v1/duvdu 1.1.80 → 1.1.82
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/package.json +2 -2
- package/build/auth/src/nats-wrapper.d.ts +0 -8
- package/build/auth/src/nats-wrapper.js +0 -28
- /package/build/{common/src/errors → errors}/bad-request-error.d.ts +0 -0
- /package/build/{common/src/errors → errors}/bad-request-error.js +0 -0
- /package/build/{common/src/errors → errors}/custom-error.d.ts +0 -0
- /package/build/{common/src/errors → errors}/custom-error.js +0 -0
- /package/build/{common/src/errors → errors}/data-base-connections.d.ts +0 -0
- /package/build/{common/src/errors → errors}/data-base-connections.js +0 -0
- /package/build/{common/src/errors → errors}/generic-error.d.ts +0 -0
- /package/build/{common/src/errors → errors}/generic-error.js +0 -0
- /package/build/{common/src/errors → errors}/not-allowed-error.d.ts +0 -0
- /package/build/{common/src/errors → errors}/not-allowed-error.js +0 -0
- /package/build/{common/src/errors → errors}/notfound-error.d.ts +0 -0
- /package/build/{common/src/errors → errors}/notfound-error.js +0 -0
- /package/build/{common/src/errors → errors}/unauthenticated-error.d.ts +0 -0
- /package/build/{common/src/errors → errors}/unauthenticated-error.js +0 -0
- /package/build/{common/src/errors → errors}/unauthorized-error.d.ts +0 -0
- /package/build/{common/src/errors → errors}/unauthorized-error.js +0 -0
- /package/build/{common/src/errors → errors}/validation-error.d.ts +0 -0
- /package/build/{common/src/errors → errors}/validation-error.js +0 -0
- /package/build/{common/src/events → events}/base-listener.d.ts +0 -0
- /package/build/{common/src/events → events}/base-listener.js +0 -0
- /package/build/{common/src/events → events}/base-publisher.d.ts +0 -0
- /package/build/{common/src/events → events}/base-publisher.js +0 -0
- /package/build/{common/src/events → events}/new-notification.event.d.ts +0 -0
- /package/build/{common/src/events → events}/new-notification.event.js +0 -0
- /package/build/{common/src/events → events}/subject.d.ts +0 -0
- /package/build/{common/src/events → events}/subject.js +0 -0
- /package/build/{common/src/index.d.ts → index.d.ts} +0 -0
- /package/build/{common/src/index.js → index.js} +0 -0
- /package/build/{common/src/middlewares → middlewares}/auth.middleware.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/auth.middleware.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/check-required-files.middleware.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/check-required-files.middleware.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/database-connection.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/database-connection.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/global-error-handling.middleware.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/global-error-handling.middleware.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/global-pagination.middleware.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/global-pagination.middleware.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/global-upload.middleware.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/global-upload.middleware.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/global-validator.middleware.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/global-validator.middleware.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/isAuthorized.middleware.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/isAuthorized.middleware.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/language-header.middleware.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/language-header.middleware.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/optional-auth.middleware.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/optional-auth.middleware.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/redis-connection.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/redis-connection.js +0 -0
- /package/build/{common/src/middlewares → middlewares}/upload-project-media.middleware.d.ts +0 -0
- /package/build/{common/src/middlewares → middlewares}/upload-project-media.middleware.js +0 -0
- /package/build/{common/src/models → models}/Bookmark.model.d.ts +0 -0
- /package/build/{common/src/models → models}/Bookmark.model.js +0 -0
- /package/build/{common/src/models → models}/Plan.model.d.ts +0 -0
- /package/build/{common/src/models → models}/Plan.model.js +0 -0
- /package/build/{common/src/models → models}/Role.model.d.ts +0 -0
- /package/build/{common/src/models → models}/Role.model.js +0 -0
- /package/build/{common/src/models → models}/Term.model.d.ts +0 -0
- /package/build/{common/src/models → models}/Term.model.js +0 -0
- /package/build/{common/src/models → models}/Ticket.model.d.ts +0 -0
- /package/build/{common/src/models → models}/Ticket.model.js +0 -0
- /package/build/{common/src/models → models}/User.model.d.ts +0 -0
- /package/build/{common/src/models → models}/User.model.js +0 -0
- /package/build/{common/src/models → models}/allProjects.model.d.ts +0 -0
- /package/build/{common/src/models → models}/allProjects.model.js +0 -0
- /package/build/{common/src/models → models}/category.model.d.ts +0 -0
- /package/build/{common/src/models → models}/category.model.js +0 -0
- /package/build/{common/src/models → models}/contracts.model.d.ts +0 -0
- /package/build/{common/src/models → models}/contracts.model.js +0 -0
- /package/build/{common/src/models → models}/copyrights.model.d.ts +0 -0
- /package/build/{common/src/models → models}/copyrights.model.js +0 -0
- /package/build/{common/src/models → models}/follow.model.d.ts +0 -0
- /package/build/{common/src/models → models}/follow.model.js +0 -0
- /package/build/{common/src/models → models}/messages.model.d.ts +0 -0
- /package/build/{common/src/models → models}/messages.model.js +0 -0
- /package/build/{common/src/models → models}/notification.model.d.ts +0 -0
- /package/build/{common/src/models → models}/notification.model.js +0 -0
- /package/build/{common/src/models → models}/portfolio-post.model.d.ts +0 -0
- /package/build/{common/src/models → models}/portfolio-post.model.js +0 -0
- /package/build/{common/src/models → models}/producer.model.d.ts +0 -0
- /package/build/{common/src/models → models}/producer.model.js +0 -0
- /package/build/{common/src/models → models}/report.model.d.ts +0 -0
- /package/build/{common/src/models → models}/report.model.js +0 -0
- /package/build/{common/src/models → models}/studio-booking.model.d.ts +0 -0
- /package/build/{common/src/models → models}/studio-booking.model.js +0 -0
- /package/build/{common/src/models → models}/teamProject.model.d.ts +0 -0
- /package/build/{common/src/models → models}/teamProject.model.js +0 -0
- /package/build/{common/src/services → services}/category.service.d.ts +0 -0
- /package/build/{common/src/services → services}/category.service.js +0 -0
- /package/build/{common/src/types → types}/Bookmarks.d.ts +0 -0
- /package/build/{common/src/types → types}/Bookmarks.js +0 -0
- /package/build/{common/src/types → types}/Category.d.ts +0 -0
- /package/build/{common/src/types → types}/Category.js +0 -0
- /package/build/{common/src/types → types}/JwtPayload.d.ts +0 -0
- /package/build/{common/src/types → types}/JwtPayload.js +0 -0
- /package/build/{common/src/types → types}/Pagination.d.ts +0 -0
- /package/build/{common/src/types → types}/Pagination.js +0 -0
- /package/build/{common/src/types → types}/Permissions.d.ts +0 -0
- /package/build/{common/src/types → types}/Permissions.js +0 -0
- /package/build/{common/src/types → types}/Plan.d.ts +0 -0
- /package/build/{common/src/types → types}/Plan.js +0 -0
- /package/build/{common/src/types → types}/Projects.d.ts +0 -0
- /package/build/{common/src/types → types}/Projects.js +0 -0
- /package/build/{common/src/types → types}/Rate.d.ts +0 -0
- /package/build/{common/src/types → types}/Rate.js +0 -0
- /package/build/{common/src/types → types}/Role.d.ts +0 -0
- /package/build/{common/src/types → types}/Role.js +0 -0
- /package/build/{common/src/types → types}/Terms.d.ts +0 -0
- /package/build/{common/src/types → types}/Terms.js +0 -0
- /package/build/{common/src/types → types}/Ticket.d.ts +0 -0
- /package/build/{common/src/types → types}/Ticket.js +0 -0
- /package/build/{common/src/types → types}/UrlQuery.d.ts +0 -0
- /package/build/{common/src/types → types}/UrlQuery.js +0 -0
- /package/build/{common/src/types → types}/User.d.ts +0 -0
- /package/build/{common/src/types → types}/User.js +0 -0
- /package/build/{common/src/types → types}/booking-states.d.ts +0 -0
- /package/build/{common/src/types → types}/booking-states.js +0 -0
- /package/build/{common/src/types → types}/copyrights-order.d.ts +0 -0
- /package/build/{common/src/types → types}/copyrights-order.js +0 -0
- /package/build/{common/src/types → types}/cycles.d.ts +0 -0
- /package/build/{common/src/types → types}/cycles.js +0 -0
- /package/build/{common/src/types → types}/folders.d.ts +0 -0
- /package/build/{common/src/types → types}/folders.js +0 -0
- /package/build/{common/src/types → types}/model-names.d.ts +0 -0
- /package/build/{common/src/types → types}/model-names.js +0 -0
- /package/build/{common/src/types → types}/notification.type.d.ts +0 -0
- /package/build/{common/src/types → types}/notification.type.js +0 -0
- /package/build/{common/src/types → types}/pagination-response.d.ts +0 -0
- /package/build/{common/src/types → types}/pagination-response.js +0 -0
- /package/build/{common/src/types → types}/portfolio-post-order.d.ts +0 -0
- /package/build/{common/src/types → types}/portfolio-post-order.js +0 -0
- /package/build/{common/src/types → types}/socket-channel.d.ts +0 -0
- /package/build/{common/src/types → types}/socket-channel.js +0 -0
- /package/build/{common/src/types → types}/success-response.d.ts +0 -0
- /package/build/{common/src/types → types}/success-response.js +0 -0
- /package/build/{common/src/types → types}/systemRoles.d.ts +0 -0
- /package/build/{common/src/types → types}/systemRoles.js +0 -0
- /package/build/{common/src/utils → utils}/api-feature.d.ts +0 -0
- /package/build/{common/src/utils → utils}/api-feature.js +0 -0
- /package/build/{common/src/utils → utils}/bucket.d.ts +0 -0
- /package/build/{common/src/utils → utils}/bucket.js +0 -0
- /package/build/{common/src/utils → utils}/file.d.ts +0 -0
- /package/build/{common/src/utils → utils}/file.js +0 -0
- /package/build/{common/src/utils → utils}/generateToken.d.ts +0 -0
- /package/build/{common/src/utils → utils}/generateToken.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duvdu-v1/duvdu",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.82",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"types": "./build/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"clean": "rimraf ./build",
|
|
11
11
|
"build": "npm run clean && tsc",
|
|
12
|
-
"fix:build": "mv ./build/common/src/* ./build && rm -rf ./build/auth ./build/
|
|
12
|
+
"fix:build": "mv ./build/common/src/* ./build && rm -rf ./build/auth ./build/common",
|
|
13
13
|
"pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish",
|
|
14
14
|
"lint": "eslint .",
|
|
15
15
|
"lint:fix": "eslint --fix .",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.natsWrapper = void 0;
|
|
7
|
-
const node_nats_streaming_1 = __importDefault(require("node-nats-streaming"));
|
|
8
|
-
class NatsWrapper {
|
|
9
|
-
get client() {
|
|
10
|
-
if (!this._client) {
|
|
11
|
-
throw new Error('can not access nats client before conection');
|
|
12
|
-
}
|
|
13
|
-
return this._client;
|
|
14
|
-
}
|
|
15
|
-
connect(clusterId, clientId, url) {
|
|
16
|
-
this._client = node_nats_streaming_1.default.connect(clusterId, clientId, { url });
|
|
17
|
-
return new Promise((resolve, reject) => {
|
|
18
|
-
this.client.on('connect', () => {
|
|
19
|
-
console.log('connected to nats');
|
|
20
|
-
resolve();
|
|
21
|
-
});
|
|
22
|
-
this.client.on('error', (err) => {
|
|
23
|
-
reject(err);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.natsWrapper = new NatsWrapper();
|
|
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
|
|
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
|