@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.
Files changed (137) hide show
  1. package/build/classes/BacklogManager.d.ts +129 -0
  2. package/build/classes/BacklogManager.js +417 -0
  3. package/build/classes/BacklogMonitor.d.ts +102 -0
  4. package/build/classes/BacklogMonitor.js +222 -0
  5. package/build/classes/HttpResponse.d.ts +7 -0
  6. package/build/classes/HttpResponse.js +13 -0
  7. package/build/classes/index.d.ts +3 -0
  8. package/build/classes/index.js +15 -0
  9. package/build/dtos/file.dto.d.ts +5 -0
  10. package/build/dtos/file.dto.js +25 -0
  11. package/build/dtos/index.d.ts +1 -0
  12. package/build/dtos/index.js +13 -0
  13. package/build/events/BatchEnhancedListener.d.ts +106 -0
  14. package/build/events/BatchEnhancedListener.js +307 -0
  15. package/build/events/EnhancedListener.d.ts +75 -0
  16. package/build/events/EnhancedListener.js +185 -0
  17. package/build/events/baseListener.d.ts +19 -0
  18. package/build/events/baseListener.js +90 -0
  19. package/build/events/basePublisher.d.ts +14 -0
  20. package/build/events/basePublisher.js +84 -0
  21. package/build/events/config.d.ts +7 -0
  22. package/build/events/config.js +14 -0
  23. package/build/events/createClient.d.ts +38 -0
  24. package/build/events/createClient.js +416 -0
  25. package/build/events/index.d.ts +6 -0
  26. package/build/events/index.js +18 -0
  27. package/build/events/interfaces/agent.event.d.ts +7 -0
  28. package/build/events/interfaces/agent.event.js +2 -0
  29. package/build/events/interfaces/agentCrud.event.d.ts +7 -0
  30. package/build/events/interfaces/agentCrud.event.js +2 -0
  31. package/build/events/interfaces/agentTracking.event.d.ts +7 -0
  32. package/build/events/interfaces/agentTracking.event.js +2 -0
  33. package/build/events/interfaces/audit.event.d.ts +7 -0
  34. package/build/events/interfaces/audit.event.js +2 -0
  35. package/build/events/interfaces/branch.event.d.ts +7 -0
  36. package/build/events/interfaces/branch.event.js +2 -0
  37. package/build/events/interfaces/deleteTracking.event.d.ts +7 -0
  38. package/build/events/interfaces/deleteTracking.event.js +2 -0
  39. package/build/events/interfaces/department.event.d.ts +7 -0
  40. package/build/events/interfaces/department.event.js +2 -0
  41. package/build/events/interfaces/entity.event.d.ts +7 -0
  42. package/build/events/interfaces/entity.event.js +2 -0
  43. package/build/events/interfaces/index.d.ts +23 -0
  44. package/build/events/interfaces/index.js +35 -0
  45. package/build/events/interfaces/manualMatch.event.d.ts +7 -0
  46. package/build/events/interfaces/manualMatch.event.js +2 -0
  47. package/build/events/interfaces/match.event.d.ts +7 -0
  48. package/build/events/interfaces/match.event.js +2 -0
  49. package/build/events/interfaces/monitor.event.d.ts +7 -0
  50. package/build/events/interfaces/monitor.event.js +2 -0
  51. package/build/events/interfaces/notification.event.d.ts +7 -0
  52. package/build/events/interfaces/notification.event.js +2 -0
  53. package/build/events/interfaces/object.event.d.ts +7 -0
  54. package/build/events/interfaces/object.event.js +2 -0
  55. package/build/events/interfaces/payments.event.d.ts +7 -0
  56. package/build/events/interfaces/payments.event.js +2 -0
  57. package/build/events/interfaces/planning.event.d.ts +7 -0
  58. package/build/events/interfaces/planning.event.js +2 -0
  59. package/build/events/interfaces/service.event.d.ts +7 -0
  60. package/build/events/interfaces/service.event.js +2 -0
  61. package/build/events/interfaces/subscription.event.d.ts +7 -0
  62. package/build/events/interfaces/subscription.event.js +2 -0
  63. package/build/events/interfaces/ticket.event.d.ts +7 -0
  64. package/build/events/interfaces/ticket.event.js +2 -0
  65. package/build/events/interfaces/ticketNote.event.d.ts +7 -0
  66. package/build/events/interfaces/ticketNote.event.js +2 -0
  67. package/build/events/interfaces/ticketTracking.event.d.ts +7 -0
  68. package/build/events/interfaces/ticketTracking.event.js +2 -0
  69. package/build/events/interfaces/ticketxTopics.event.d.ts +7 -0
  70. package/build/events/interfaces/ticketxTopics.event.js +2 -0
  71. package/build/events/interfaces/topics.event.d.ts +7 -0
  72. package/build/events/interfaces/topics.event.js +2 -0
  73. package/build/events/interfaces/waitingList.event.d.ts +7 -0
  74. package/build/events/interfaces/waitingList.event.js +2 -0
  75. package/build/exceptions/AuthenticationTokenMissingException.d.ts +5 -0
  76. package/build/exceptions/AuthenticationTokenMissingException.js +27 -0
  77. package/build/exceptions/HttpException.d.ts +5 -0
  78. package/build/exceptions/HttpException.js +27 -0
  79. package/build/exceptions/MongoErrorException.d.ts +4 -0
  80. package/build/exceptions/MongoErrorException.js +27 -0
  81. package/build/exceptions/MulterException.d.ts +4 -0
  82. package/build/exceptions/MulterException.js +27 -0
  83. package/build/exceptions/QwizardException.d.ts +5 -0
  84. package/build/exceptions/QwizardException.js +27 -0
  85. package/build/exceptions/RecordingServerException.d.ts +5 -0
  86. package/build/exceptions/RecordingServerException.js +27 -0
  87. package/build/exceptions/UserNotFoundException.d.ts +4 -0
  88. package/build/exceptions/UserNotFoundException.js +27 -0
  89. package/build/exceptions/UserWithThatEmailAlreadyExistsException.d.ts +4 -0
  90. package/build/exceptions/UserWithThatEmailAlreadyExistsException.js +27 -0
  91. package/build/exceptions/WrongAnonymousAuthException.d.ts +5 -0
  92. package/build/exceptions/WrongAnonymousAuthException.js +27 -0
  93. package/build/exceptions/WrongAuthenticationTokenException.d.ts +5 -0
  94. package/build/exceptions/WrongAuthenticationTokenException.js +27 -0
  95. package/build/exceptions/WrongBusinessAuthException.d.ts +5 -0
  96. package/build/exceptions/WrongBusinessAuthException.js +27 -0
  97. package/build/exceptions/WrongCredentialsException.d.ts +4 -0
  98. package/build/exceptions/WrongCredentialsException.js +27 -0
  99. package/build/exceptions/WrongRoomException.d.ts +4 -0
  100. package/build/exceptions/WrongRoomException.js +27 -0
  101. package/build/exceptions/index.d.ts +16 -0
  102. package/build/exceptions/index.js +28 -0
  103. package/build/exceptions/invalidToken.exception.d.ts +4 -0
  104. package/build/exceptions/invalidToken.exception.js +27 -0
  105. package/build/exceptions/missingToken.exception.d.ts +4 -0
  106. package/build/exceptions/missingToken.exception.js +27 -0
  107. package/build/exceptions/wrongAuth.exception.d.ts +5 -0
  108. package/build/exceptions/wrongAuth.exception.js +27 -0
  109. package/build/index.d.ts +12 -0
  110. package/build/index.js +32 -0
  111. package/build/interfaces/controller.interface.d.ts +5 -0
  112. package/build/interfaces/controller.interface.js +2 -0
  113. package/build/interfaces/index.d.ts +3 -0
  114. package/build/interfaces/index.js +15 -0
  115. package/build/interfaces/requesWithUser.interface.d.ts +11 -0
  116. package/build/interfaces/requesWithUser.interface.js +2 -0
  117. package/build/interfaces/token.interface.d.ts +12 -0
  118. package/build/interfaces/token.interface.js +2 -0
  119. package/build/lib/ensureDatabase.d.ts +11 -0
  120. package/build/lib/ensureDatabase.js +97 -0
  121. package/build/lib/functions.d.ts +89 -0
  122. package/build/lib/functions.js +214 -0
  123. package/build/lib/helpers.d.ts +29 -0
  124. package/build/lib/helpers.js +33 -0
  125. package/build/lib/index.d.ts +4 -0
  126. package/build/lib/index.js +16 -0
  127. package/build/lib/logger.d.ts +2 -0
  128. package/build/lib/logger.js +41 -0
  129. package/build/middlewares/auth.middleware.d.ts +6 -0
  130. package/build/middlewares/auth.middleware.js +287 -0
  131. package/build/middlewares/error.middleware.d.ts +3 -0
  132. package/build/middlewares/error.middleware.js +14 -0
  133. package/build/middlewares/index.d.ts +3 -0
  134. package/build/middlewares/index.js +15 -0
  135. package/build/middlewares/validation.middleware.d.ts +2 -0
  136. package/build/middlewares/validation.middleware.js +22 -0
  137. package/package.json +45 -0
@@ -0,0 +1,6 @@
1
+ export * from './basePublisher';
2
+ export * from './baseListener';
3
+ export * from './EnhancedListener';
4
+ export * from './createClient';
5
+ export * from './interfaces';
6
+ export * from './config';
@@ -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,7 @@
1
+ import { Agent, AgentData, AgentCrudTopics, AgentTopics, UserFB } from "@fluyappgo/commons";
2
+ export interface AgentEvent {
3
+ topic: AgentTopics | AgentCrudTopics;
4
+ data: Agent | AgentData | UserFB;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { AgentCrudTopics } from "@fluyappgo/commons";
2
+ export interface AgentCrudEvent {
3
+ topic: AgentCrudTopics;
4
+ data: any;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { AgentTrackingTopics, FullAgentTracking } from '@fluyappgo/commons';
2
+ export interface AgentTrackingEvent {
3
+ topic: AgentTrackingTopics;
4
+ data: FullAgentTracking;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { AuditData, AuditTopics } from "@fluyappgo/commons";
2
+ export interface AuditEvent {
3
+ topic: AuditTopics;
4
+ data: AuditData;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { EntityTreeTopics, Branch } from '@fluyappgo/commons';
2
+ export interface BranchEvent {
3
+ topic: EntityTreeTopics;
4
+ data: Branch;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { DeleteTrackingTopics, DeleteTracking } from "@fluyappgo/commons";
2
+ export interface DeleteTrackingEvent {
3
+ topic: DeleteTrackingTopics;
4
+ data: DeleteTracking;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { EntityTreeTopics, Department } from '@fluyappgo/commons';
2
+ export interface DepartmentEvent {
3
+ topic: EntityTreeTopics;
4
+ data: Department;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { EntityTreeTopics, Entity } from '@fluyappgo/commons';
2
+ export interface EntityEvent {
3
+ topic: EntityTreeTopics;
4
+ data: Entity;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 { AgentTicket, ManualMatchTopics } from '@fluyappgo/commons';
2
+ export interface ManualMatchEvent {
3
+ topic: ManualMatchTopics;
4
+ data: AgentTicket;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { MatchTopics, EntityTreeUuid } from '@fluyappgo/commons';
2
+ export interface MatchEvent {
3
+ topic: MatchTopics;
4
+ data: EntityTreeUuid;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { MonitorTopics, MonitorDTO } from '@fluyappgo/commons';
2
+ export interface MonitorEvent {
3
+ topic: MonitorTopics;
4
+ data: MonitorDTO;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { Notification, NotificationTopics } from '@fluyappgo/commons';
2
+ export interface NotificationEvent {
3
+ topic: NotificationTopics;
4
+ data: Notification;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { DeviceTopics, ObjectDTO } from '@fluyappgo/commons';
2
+ export interface ObjectEvent {
3
+ topic: DeviceTopics;
4
+ data: ObjectDTO;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { PaymentsTopics, PaymentTxn, PaymentTxnEvent } from "@fluyappgo/commons";
2
+ export interface PaymentsEvent {
3
+ topic: PaymentsTopics;
4
+ data: PaymentTxn | PaymentTxnEvent;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { EntityTreeTopics, Service } from '@fluyappgo/commons';
2
+ export interface ServiceEvent {
3
+ topic: EntityTreeTopics;
4
+ data: Service;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { SubscriptionTopics, EntitySubscriptionI } from '@fluyappgo/commons';
2
+ export interface SubscriptionEvent {
3
+ topic: SubscriptionTopics;
4
+ data: EntitySubscriptionI;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { TicketTopics, Ticket } from '@fluyappgo/commons';
2
+ export interface TicketEvent {
3
+ topic: TicketTopics;
4
+ data: Ticket;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { TicketNote, TicketNoteTopics } from '@fluyappgo/commons';
2
+ export interface TicketNoteEvent {
3
+ topic: TicketNoteTopics;
4
+ data: TicketNote;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { FullTicketTracking, TicketTrackingTopics } from '@fluyappgo/commons';
2
+ export interface TicketTrackingEvent {
3
+ topic: TicketTrackingTopics;
4
+ data: FullTicketTracking;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { TicketxTopic, TicketxTopicsTopics } from '@fluyappgo/commons';
2
+ export interface TicketxTopicsEvent {
3
+ topic: TicketxTopicsTopics;
4
+ data: TicketxTopic[];
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { TicketTopic, TopicsTopics } from '@fluyappgo/commons';
2
+ export interface TopicsEvent {
3
+ topic: TopicsTopics;
4
+ data: TicketTopic;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { WaitingTopics, WaitingList } from '@fluyappgo/commons';
2
+ export interface WaitingListEvent {
3
+ topic: WaitingTopics;
4
+ data: WaitingList;
5
+ keyKafka: number;
6
+ groupName: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export declare class AuthenticationTokenMissingException extends Error {
2
+ status: number;
3
+ message: string;
4
+ constructor();
5
+ }
@@ -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,5 @@
1
+ export declare class HttpException extends Error {
2
+ status: number;
3
+ message: string;
4
+ constructor(status: number, message: string);
5
+ }
@@ -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,4 @@
1
+ import { HttpException } from "./HttpException";
2
+ export declare class MongoErrorException extends HttpException {
3
+ constructor(message: string);
4
+ }
@@ -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,4 @@
1
+ import { HttpException } from "./HttpException";
2
+ export declare class MulterException extends HttpException {
3
+ constructor(message: string);
4
+ }
@@ -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,5 @@
1
+ export declare class QwizardException extends Error {
2
+ status: number;
3
+ message: string;
4
+ constructor(msg: string);
5
+ }
@@ -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,5 @@
1
+ export declare class RecordingServerException extends Error {
2
+ status: number;
3
+ message: string;
4
+ constructor(msg: string);
5
+ }
@@ -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;
@@ -0,0 +1,4 @@
1
+ import { HttpException } from "./HttpException";
2
+ export declare class UserNotFoundException extends HttpException {
3
+ constructor(message: string);
4
+ }