@fluyappgocore/commons-backend 1.0.202
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/classes/BacklogManager.d.ts +129 -0
- package/build/classes/BacklogManager.js +417 -0
- package/build/classes/BacklogMonitor.d.ts +102 -0
- package/build/classes/BacklogMonitor.js +222 -0
- package/build/classes/HttpResponse.d.ts +7 -0
- package/build/classes/HttpResponse.js +13 -0
- package/build/classes/index.d.ts +3 -0
- package/build/classes/index.js +15 -0
- package/build/dtos/file.dto.d.ts +5 -0
- package/build/dtos/file.dto.js +25 -0
- package/build/dtos/index.d.ts +1 -0
- package/build/dtos/index.js +13 -0
- package/build/events/BatchEnhancedListener.d.ts +106 -0
- package/build/events/BatchEnhancedListener.js +307 -0
- package/build/events/EnhancedListener.d.ts +75 -0
- package/build/events/EnhancedListener.js +185 -0
- package/build/events/baseListener.d.ts +19 -0
- package/build/events/baseListener.js +90 -0
- package/build/events/basePublisher.d.ts +14 -0
- package/build/events/basePublisher.js +84 -0
- package/build/events/config.d.ts +7 -0
- package/build/events/config.js +14 -0
- package/build/events/createClient.d.ts +38 -0
- package/build/events/createClient.js +416 -0
- package/build/events/index.d.ts +6 -0
- package/build/events/index.js +18 -0
- package/build/events/interfaces/agent.event.d.ts +7 -0
- package/build/events/interfaces/agent.event.js +2 -0
- package/build/events/interfaces/agentCrud.event.d.ts +7 -0
- package/build/events/interfaces/agentCrud.event.js +2 -0
- package/build/events/interfaces/agentTracking.event.d.ts +7 -0
- package/build/events/interfaces/agentTracking.event.js +2 -0
- package/build/events/interfaces/audit.event.d.ts +7 -0
- package/build/events/interfaces/audit.event.js +2 -0
- package/build/events/interfaces/branch.event.d.ts +7 -0
- package/build/events/interfaces/branch.event.js +2 -0
- package/build/events/interfaces/deleteTracking.event.d.ts +7 -0
- package/build/events/interfaces/deleteTracking.event.js +2 -0
- package/build/events/interfaces/department.event.d.ts +7 -0
- package/build/events/interfaces/department.event.js +2 -0
- package/build/events/interfaces/entity.event.d.ts +7 -0
- package/build/events/interfaces/entity.event.js +2 -0
- package/build/events/interfaces/index.d.ts +23 -0
- package/build/events/interfaces/index.js +35 -0
- package/build/events/interfaces/manualMatch.event.d.ts +7 -0
- package/build/events/interfaces/manualMatch.event.js +2 -0
- package/build/events/interfaces/match.event.d.ts +7 -0
- package/build/events/interfaces/match.event.js +2 -0
- package/build/events/interfaces/monitor.event.d.ts +7 -0
- package/build/events/interfaces/monitor.event.js +2 -0
- package/build/events/interfaces/notification.event.d.ts +7 -0
- package/build/events/interfaces/notification.event.js +2 -0
- package/build/events/interfaces/object.event.d.ts +7 -0
- package/build/events/interfaces/object.event.js +2 -0
- package/build/events/interfaces/payments.event.d.ts +7 -0
- package/build/events/interfaces/payments.event.js +2 -0
- package/build/events/interfaces/planning.event.d.ts +7 -0
- package/build/events/interfaces/planning.event.js +2 -0
- package/build/events/interfaces/service.event.d.ts +7 -0
- package/build/events/interfaces/service.event.js +2 -0
- package/build/events/interfaces/subscription.event.d.ts +7 -0
- package/build/events/interfaces/subscription.event.js +2 -0
- package/build/events/interfaces/ticket.event.d.ts +7 -0
- package/build/events/interfaces/ticket.event.js +2 -0
- package/build/events/interfaces/ticketNote.event.d.ts +7 -0
- package/build/events/interfaces/ticketNote.event.js +2 -0
- package/build/events/interfaces/ticketTracking.event.d.ts +7 -0
- package/build/events/interfaces/ticketTracking.event.js +2 -0
- package/build/events/interfaces/ticketxTopics.event.d.ts +7 -0
- package/build/events/interfaces/ticketxTopics.event.js +2 -0
- package/build/events/interfaces/topics.event.d.ts +7 -0
- package/build/events/interfaces/topics.event.js +2 -0
- package/build/events/interfaces/waitingList.event.d.ts +7 -0
- package/build/events/interfaces/waitingList.event.js +2 -0
- package/build/exceptions/AuthenticationTokenMissingException.d.ts +5 -0
- package/build/exceptions/AuthenticationTokenMissingException.js +27 -0
- package/build/exceptions/HttpException.d.ts +5 -0
- package/build/exceptions/HttpException.js +27 -0
- package/build/exceptions/MongoErrorException.d.ts +4 -0
- package/build/exceptions/MongoErrorException.js +27 -0
- package/build/exceptions/MulterException.d.ts +4 -0
- package/build/exceptions/MulterException.js +27 -0
- package/build/exceptions/QwizardException.d.ts +5 -0
- package/build/exceptions/QwizardException.js +27 -0
- package/build/exceptions/RecordingServerException.d.ts +5 -0
- package/build/exceptions/RecordingServerException.js +27 -0
- package/build/exceptions/UserNotFoundException.d.ts +4 -0
- package/build/exceptions/UserNotFoundException.js +27 -0
- package/build/exceptions/UserWithThatEmailAlreadyExistsException.d.ts +4 -0
- package/build/exceptions/UserWithThatEmailAlreadyExistsException.js +27 -0
- package/build/exceptions/WrongAnonymousAuthException.d.ts +5 -0
- package/build/exceptions/WrongAnonymousAuthException.js +27 -0
- package/build/exceptions/WrongAuthenticationTokenException.d.ts +5 -0
- package/build/exceptions/WrongAuthenticationTokenException.js +27 -0
- package/build/exceptions/WrongBusinessAuthException.d.ts +5 -0
- package/build/exceptions/WrongBusinessAuthException.js +27 -0
- package/build/exceptions/WrongCredentialsException.d.ts +4 -0
- package/build/exceptions/WrongCredentialsException.js +27 -0
- package/build/exceptions/WrongRoomException.d.ts +4 -0
- package/build/exceptions/WrongRoomException.js +27 -0
- package/build/exceptions/index.d.ts +16 -0
- package/build/exceptions/index.js +28 -0
- package/build/exceptions/invalidToken.exception.d.ts +4 -0
- package/build/exceptions/invalidToken.exception.js +27 -0
- package/build/exceptions/missingToken.exception.d.ts +4 -0
- package/build/exceptions/missingToken.exception.js +27 -0
- package/build/exceptions/wrongAuth.exception.d.ts +5 -0
- package/build/exceptions/wrongAuth.exception.js +27 -0
- package/build/index.d.ts +12 -0
- package/build/index.js +32 -0
- package/build/interfaces/controller.interface.d.ts +5 -0
- package/build/interfaces/controller.interface.js +2 -0
- package/build/interfaces/index.d.ts +3 -0
- package/build/interfaces/index.js +15 -0
- package/build/interfaces/requesWithUser.interface.d.ts +11 -0
- package/build/interfaces/requesWithUser.interface.js +2 -0
- package/build/interfaces/token.interface.d.ts +12 -0
- package/build/interfaces/token.interface.js +2 -0
- package/build/lib/ensureDatabase.d.ts +11 -0
- package/build/lib/ensureDatabase.js +97 -0
- package/build/lib/functions.d.ts +89 -0
- package/build/lib/functions.js +214 -0
- package/build/lib/helpers.d.ts +29 -0
- package/build/lib/helpers.js +33 -0
- package/build/lib/index.d.ts +4 -0
- package/build/lib/index.js +16 -0
- package/build/lib/logger.d.ts +2 -0
- package/build/lib/logger.js +41 -0
- package/build/middlewares/auth.middleware.d.ts +6 -0
- package/build/middlewares/auth.middleware.js +287 -0
- package/build/middlewares/error.middleware.d.ts +3 -0
- package/build/middlewares/error.middleware.js +14 -0
- package/build/middlewares/index.d.ts +3 -0
- package/build/middlewares/index.js +15 -0
- package/build/middlewares/validation.middleware.d.ts +2 -0
- package/build/middlewares/validation.middleware.js +22 -0
- package/package.json +45 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./basePublisher"), exports);
|
|
14
|
+
__exportStar(require("./baseListener"), exports);
|
|
15
|
+
__exportStar(require("./EnhancedListener"), exports);
|
|
16
|
+
__exportStar(require("./createClient"), exports);
|
|
17
|
+
__exportStar(require("./interfaces"), exports);
|
|
18
|
+
__exportStar(require("./config"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from "./agent.event";
|
|
2
|
+
export * from "./ticket.event";
|
|
3
|
+
export * from "./match.event";
|
|
4
|
+
export * from "./branch.event";
|
|
5
|
+
export * from "./department.event";
|
|
6
|
+
export * from "./entity.event";
|
|
7
|
+
export * from "./service.event";
|
|
8
|
+
export * from "./agentCrud.event";
|
|
9
|
+
export * from "./agentTracking.event";
|
|
10
|
+
export * from "./ticketTracking.event";
|
|
11
|
+
export * from "./manualMatch.event";
|
|
12
|
+
export * from "./monitor.event";
|
|
13
|
+
export * from "./notification.event";
|
|
14
|
+
export * from "./deleteTracking.event";
|
|
15
|
+
export * from "./audit.event";
|
|
16
|
+
export * from "./ticketNote.event";
|
|
17
|
+
export * from "./ticketxTopics.event";
|
|
18
|
+
export * from "./topics.event";
|
|
19
|
+
export * from "./object.event";
|
|
20
|
+
export * from "./planning.event";
|
|
21
|
+
export * from "./waitingList.event";
|
|
22
|
+
export * from "./payments.event";
|
|
23
|
+
export * from "./subscription.event";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./agent.event"), exports);
|
|
14
|
+
__exportStar(require("./ticket.event"), exports);
|
|
15
|
+
__exportStar(require("./match.event"), exports);
|
|
16
|
+
__exportStar(require("./branch.event"), exports);
|
|
17
|
+
__exportStar(require("./department.event"), exports);
|
|
18
|
+
__exportStar(require("./entity.event"), exports);
|
|
19
|
+
__exportStar(require("./service.event"), exports);
|
|
20
|
+
__exportStar(require("./agentCrud.event"), exports);
|
|
21
|
+
__exportStar(require("./agentTracking.event"), exports);
|
|
22
|
+
__exportStar(require("./ticketTracking.event"), exports);
|
|
23
|
+
__exportStar(require("./manualMatch.event"), exports);
|
|
24
|
+
__exportStar(require("./monitor.event"), exports);
|
|
25
|
+
__exportStar(require("./notification.event"), exports);
|
|
26
|
+
__exportStar(require("./deleteTracking.event"), exports);
|
|
27
|
+
__exportStar(require("./audit.event"), exports);
|
|
28
|
+
__exportStar(require("./ticketNote.event"), exports);
|
|
29
|
+
__exportStar(require("./ticketxTopics.event"), exports);
|
|
30
|
+
__exportStar(require("./topics.event"), exports);
|
|
31
|
+
__exportStar(require("./object.event"), exports);
|
|
32
|
+
__exportStar(require("./planning.event"), exports);
|
|
33
|
+
__exportStar(require("./waitingList.event"), exports);
|
|
34
|
+
__exportStar(require("./payments.event"), exports);
|
|
35
|
+
__exportStar(require("./subscription.event"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BranchPlanning, DepartmentPlanning, PlanningTopics, ServicePlanning } from "@fluyappgo/commons";
|
|
2
|
+
export interface PlanningEvent {
|
|
3
|
+
topic: PlanningTopics;
|
|
4
|
+
data: ServicePlanning | DepartmentPlanning | BranchPlanning;
|
|
5
|
+
keyKafka: number;
|
|
6
|
+
groupName: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AuthenticationTokenMissingException = void 0;
|
|
17
|
+
var AuthenticationTokenMissingException = /** @class */ (function (_super) {
|
|
18
|
+
__extends(AuthenticationTokenMissingException, _super);
|
|
19
|
+
function AuthenticationTokenMissingException() {
|
|
20
|
+
var _this = _super.call(this) || this;
|
|
21
|
+
_this.status = 500;
|
|
22
|
+
_this.message = "Token is missing.";
|
|
23
|
+
return _this;
|
|
24
|
+
}
|
|
25
|
+
return AuthenticationTokenMissingException;
|
|
26
|
+
}(Error));
|
|
27
|
+
exports.AuthenticationTokenMissingException = AuthenticationTokenMissingException;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.HttpException = void 0;
|
|
17
|
+
var HttpException = /** @class */ (function (_super) {
|
|
18
|
+
__extends(HttpException, _super);
|
|
19
|
+
function HttpException(status, message) {
|
|
20
|
+
var _this = _super.call(this, message) || this;
|
|
21
|
+
_this.status = status;
|
|
22
|
+
_this.message = message;
|
|
23
|
+
return _this;
|
|
24
|
+
}
|
|
25
|
+
return HttpException;
|
|
26
|
+
}(Error));
|
|
27
|
+
exports.HttpException = HttpException;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MongoErrorException = void 0;
|
|
17
|
+
var HttpException_1 = require("./HttpException");
|
|
18
|
+
var MongoErrorException = /** @class */ (function (_super) {
|
|
19
|
+
__extends(MongoErrorException, _super);
|
|
20
|
+
function MongoErrorException(message) {
|
|
21
|
+
var _this = _super.call(this, 500, message) || this;
|
|
22
|
+
_this.message = "code-mdb-500: " + message;
|
|
23
|
+
return _this;
|
|
24
|
+
}
|
|
25
|
+
return MongoErrorException;
|
|
26
|
+
}(HttpException_1.HttpException));
|
|
27
|
+
exports.MongoErrorException = MongoErrorException;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MulterException = void 0;
|
|
17
|
+
var HttpException_1 = require("./HttpException");
|
|
18
|
+
var MulterException = /** @class */ (function (_super) {
|
|
19
|
+
__extends(MulterException, _super);
|
|
20
|
+
function MulterException(message) {
|
|
21
|
+
var _this = _super.call(this, 500, message) || this;
|
|
22
|
+
_this.message = "code-vflu-500: Multer -> " + message;
|
|
23
|
+
return _this;
|
|
24
|
+
}
|
|
25
|
+
return MulterException;
|
|
26
|
+
}(HttpException_1.HttpException));
|
|
27
|
+
exports.MulterException = MulterException;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.QwizardException = void 0;
|
|
17
|
+
var QwizardException = /** @class */ (function (_super) {
|
|
18
|
+
__extends(QwizardException, _super);
|
|
19
|
+
function QwizardException(msg) {
|
|
20
|
+
var _this = _super.call(this) || this;
|
|
21
|
+
_this.status = 500;
|
|
22
|
+
_this.message = "code-qwzd-500: " + msg;
|
|
23
|
+
return _this;
|
|
24
|
+
}
|
|
25
|
+
return QwizardException;
|
|
26
|
+
}(Error));
|
|
27
|
+
exports.QwizardException = QwizardException;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RecordingServerException = void 0;
|
|
17
|
+
var RecordingServerException = /** @class */ (function (_super) {
|
|
18
|
+
__extends(RecordingServerException, _super);
|
|
19
|
+
function RecordingServerException(msg) {
|
|
20
|
+
var _this = _super.call(this) || this;
|
|
21
|
+
_this.status = 500;
|
|
22
|
+
_this.message = "Recording server error: " + msg;
|
|
23
|
+
return _this;
|
|
24
|
+
}
|
|
25
|
+
return RecordingServerException;
|
|
26
|
+
}(Error));
|
|
27
|
+
exports.RecordingServerException = RecordingServerException;
|