@aldb2b/common 1.0.152 → 1.0.153

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 (181) hide show
  1. package/build/db/CustomModel.d.ts +4 -0
  2. package/build/db/CustomModel.js +8 -0
  3. package/build/db/CustomModel.js.map +1 -0
  4. package/build/db/MongooseBase.d.ts +41 -0
  5. package/build/db/MongooseBase.js +346 -0
  6. package/build/db/MongooseBase.js.map +1 -0
  7. package/build/db/aggregate/AggregateConvertor.d.ts +23 -0
  8. package/build/db/aggregate/AggregateConvertor.js +212 -0
  9. package/build/db/aggregate/AggregateConvertor.js.map +1 -0
  10. package/build/db/aggregate/createAggregateResponse.d.ts +2 -0
  11. package/build/db/aggregate/createAggregateResponse.js +50 -0
  12. package/build/db/aggregate/createAggregateResponse.js.map +1 -0
  13. package/build/db/mongoose-find-options.d.ts +12 -0
  14. package/build/db/mongoose-find-options.js +68 -0
  15. package/build/db/mongoose-find-options.js.map +1 -0
  16. package/build/decorators/get-event-id-decorator.d.ts +1 -0
  17. package/build/decorators/get-event-id-decorator.js +13 -0
  18. package/build/decorators/get-event-id-decorator.js.map +1 -0
  19. package/build/decorators/get-user-decorator.d.ts +1 -0
  20. package/build/decorators/get-user-decorator.js +13 -0
  21. package/build/decorators/get-user-decorator.js.map +1 -0
  22. package/build/events/exchanges.d.ts +4 -0
  23. package/build/events/exchanges.js +9 -0
  24. package/build/events/exchanges.js.map +1 -0
  25. package/build/events/queues.d.ts +41 -0
  26. package/build/events/queues.js +46 -0
  27. package/build/events/queues.js.map +1 -0
  28. package/build/interceptors/response.interceptor.d.ts +6 -0
  29. package/build/interceptors/response.interceptor.js +31 -0
  30. package/build/interceptors/response.interceptor.js.map +1 -0
  31. package/build/interceptors/serialize.interceptor.d.ts +12 -0
  32. package/build/interceptors/serialize.interceptor.js +25 -0
  33. package/build/interceptors/serialize.interceptor.js.map +1 -0
  34. package/build/middlewares/app.middleware.d.ts +6 -0
  35. package/build/middlewares/app.middleware.js +30 -0
  36. package/build/middlewares/app.middleware.js.map +1 -0
  37. package/build/types/analytic-group.interface.d.ts +12 -0
  38. package/build/types/analytic-group.interface.js +3 -0
  39. package/build/types/analytic-group.interface.js.map +1 -0
  40. package/build/types/calendar-source-type.enum.d.ts +7 -0
  41. package/build/types/calendar-source-type.enum.js +12 -0
  42. package/build/types/calendar-source-type.enum.js.map +1 -0
  43. package/build/types/chat-group.interface.d.ts +4 -0
  44. package/build/types/chat-group.interface.js +3 -0
  45. package/build/types/chat-group.interface.js.map +1 -0
  46. package/build/types/default-visibility.interface.d.ts +13 -0
  47. package/build/types/default-visibility.interface.js +3 -0
  48. package/build/types/default-visibility.interface.js.map +1 -0
  49. package/build/types/download-presigned-url.interface.d.ts +4 -0
  50. package/build/types/download-presigned-url.interface.js +3 -0
  51. package/build/types/download-presigned-url.interface.js.map +1 -0
  52. package/build/types/group-visibility.interface.d.ts +13 -0
  53. package/build/types/group-visibility.interface.js +3 -0
  54. package/build/types/group-visibility.interface.js.map +1 -0
  55. package/build/types/header-user.interface.d.ts +8 -0
  56. package/build/types/header-user.interface.js +3 -0
  57. package/build/types/header-user.interface.js.map +1 -0
  58. package/build/types/match-group.interface.d.ts +7 -0
  59. package/build/types/match-group.interface.js +3 -0
  60. package/build/types/match-group.interface.js.map +1 -0
  61. package/build/types/match.interface.d.ts +6 -0
  62. package/build/types/match.interface.js +3 -0
  63. package/build/types/match.interface.js.map +1 -0
  64. package/build/types/meeting-request-token.interface.d.ts +6 -0
  65. package/build/types/meeting-request-token.interface.js +3 -0
  66. package/build/types/meeting-request-token.interface.js.map +1 -0
  67. package/build/types/meeting-type.enum.d.ts +7 -0
  68. package/build/types/meeting-type.enum.js +12 -0
  69. package/build/types/meeting-type.enum.js.map +1 -0
  70. package/build/types/notification-event.enum.d.ts +16 -0
  71. package/build/types/notification-event.enum.js +21 -0
  72. package/build/types/notification-event.enum.js.map +1 -0
  73. package/build/types/notification-type.enum.d.ts +6 -0
  74. package/build/types/notification-type.enum.js +11 -0
  75. package/build/types/notification-type.enum.js.map +1 -0
  76. package/build/types/operation-types.d.ts +5 -0
  77. package/build/types/operation-types.js +10 -0
  78. package/build/types/operation-types.js.map +1 -0
  79. package/build/types/read-result.interface.d.ts +5 -0
  80. package/build/types/read-result.interface.js +3 -0
  81. package/build/types/read-result.interface.js.map +1 -0
  82. package/build/types/update-input-data.interface.d.ts +11 -0
  83. package/build/types/update-input-data.interface.js +3 -0
  84. package/build/types/update-input-data.interface.js.map +1 -0
  85. package/build/types/upload-presigned-url.interface.d.ts +4 -0
  86. package/build/types/upload-presigned-url.interface.js +3 -0
  87. package/build/types/upload-presigned-url.interface.js.map +1 -0
  88. package/build/types/user-invitations.interface.d.ts +6 -0
  89. package/build/types/user-invitations.interface.js +3 -0
  90. package/build/types/user-invitations.interface.js.map +1 -0
  91. package/build/types/user-role.enum.d.ts +7 -0
  92. package/build/types/user-role.enum.js +12 -0
  93. package/build/types/user-role.enum.js.map +1 -0
  94. package/build/types/user-type.enum.d.ts +5 -0
  95. package/build/types/user-type.enum.js +10 -0
  96. package/build/types/user-type.enum.js.map +1 -0
  97. package/build/types/visibility-group.interface.d.ts +6 -0
  98. package/build/types/visibility-group.interface.js +3 -0
  99. package/build/types/visibility-group.interface.js.map +1 -0
  100. package/build/utils/adjustForTimezone.d.ts +1 -0
  101. package/build/utils/adjustForTimezone.js +10 -0
  102. package/build/utils/adjustForTimezone.js.map +1 -0
  103. package/build/utils/create-default-directories.d.ts +1 -0
  104. package/build/utils/create-default-directories.js +24 -0
  105. package/build/utils/create-default-directories.js.map +1 -0
  106. package/build/utils/equal-array-object.d.ts +1 -0
  107. package/build/utils/equal-array-object.js +10 -0
  108. package/build/utils/equal-array-object.js.map +1 -0
  109. package/build/utils/equal-object.d.ts +1 -0
  110. package/build/utils/equal-object.js +9 -0
  111. package/build/utils/equal-object.js.map +1 -0
  112. package/build/utils/get-parsed-query.d.ts +1 -0
  113. package/build/utils/get-parsed-query.js +18 -0
  114. package/build/utils/get-parsed-query.js.map +1 -0
  115. package/build/utils/parse-query.d.ts +1 -0
  116. package/build/utils/parse-query.js +31 -0
  117. package/build/utils/parse-query.js.map +1 -0
  118. package/build/utils/projection.d.ts +1 -0
  119. package/build/utils/projection.js +26 -0
  120. package/build/utils/projection.js.map +1 -0
  121. package/build/utils/rmq/client/rabbitmq.client.d.ts +29 -0
  122. package/build/utils/rmq/client/rabbitmq.client.js +162 -0
  123. package/build/utils/rmq/client/rabbitmq.client.js.map +1 -0
  124. package/build/utils/rmq/constants.d.ts +9 -0
  125. package/build/utils/rmq/constants.js +13 -0
  126. package/build/utils/rmq/constants.js.map +1 -0
  127. package/build/utils/rmq/ctx-host/rmq.context.d.ts +9 -0
  128. package/build/utils/rmq/ctx-host/rmq.context.js +20 -0
  129. package/build/utils/rmq/ctx-host/rmq.context.js.map +1 -0
  130. package/build/utils/rmq/index.d.ts +4 -0
  131. package/build/utils/rmq/index.js +10 -0
  132. package/build/utils/rmq/index.js.map +1 -0
  133. package/build/utils/rmq/interfaces/rmq-options.interfaces.d.ts +79 -0
  134. package/build/utils/rmq/interfaces/rmq-options.interfaces.js +12 -0
  135. package/build/utils/rmq/interfaces/rmq-options.interfaces.js.map +1 -0
  136. package/build/utils/rmq/server/rabbitmq.server.d.ts +19 -0
  137. package/build/utils/rmq/server/rabbitmq.server.js +114 -0
  138. package/build/utils/rmq/server/rabbitmq.server.js.map +1 -0
  139. package/build/utils/timezone.d.ts +2 -0
  140. package/build/utils/timezone.js +15 -0
  141. package/build/utils/timezone.js.map +1 -0
  142. package/build/validators/conditional-required.d.ts +2 -0
  143. package/build/validators/conditional-required.js +24 -0
  144. package/build/validators/conditional-required.js.map +1 -0
  145. package/build/validators/date-validator.d.ts +2 -0
  146. package/build/validators/date-validator.js +21 -0
  147. package/build/validators/date-validator.js.map +1 -0
  148. package/build/validators/responses/customizeArrayResponse.d.ts +3 -0
  149. package/build/validators/responses/customizeArrayResponse.js +24 -0
  150. package/build/validators/responses/customizeArrayResponse.js.map +1 -0
  151. package/build/validators/responses/error.d.ts +2 -0
  152. package/build/validators/responses/error.interface.d.ts +4 -0
  153. package/build/validators/responses/error.interface.js +3 -0
  154. package/build/validators/responses/error.interface.js.map +1 -0
  155. package/build/validators/responses/error.js +29 -0
  156. package/build/validators/responses/error.js.map +1 -0
  157. package/build/validators/responses/response-option.interface.d.ts +7 -0
  158. package/build/validators/responses/response-option.interface.js +3 -0
  159. package/build/validators/responses/response-option.interface.js.map +1 -0
  160. package/build/validators/responses/succes-result.interface.d.ts +10 -0
  161. package/build/validators/responses/succes-result.interface.js +3 -0
  162. package/build/validators/responses/succes-result.interface.js.map +1 -0
  163. package/build/validators/responses/success.d.ts +3 -0
  164. package/build/validators/responses/success.interface.d.ts +4 -0
  165. package/build/validators/responses/success.interface.js +3 -0
  166. package/build/validators/responses/success.interface.js.map +1 -0
  167. package/build/validators/responses/success.js +15 -0
  168. package/build/validators/responses/success.js.map +1 -0
  169. package/build/validators/validateNewItem.d.ts +1 -0
  170. package/build/validators/validateNewItem.js +23 -0
  171. package/build/validators/validateNewItem.js.map +1 -0
  172. package/build/validators/validateProjection.d.ts +1 -0
  173. package/build/validators/validateProjection.js +33 -0
  174. package/build/validators/validateProjection.js.map +1 -0
  175. package/build/validators/validateProjectionResult.d.ts +1 -0
  176. package/build/validators/validateProjectionResult.js +37 -0
  177. package/build/validators/validateProjectionResult.js.map +1 -0
  178. package/build/validators/validateUpdateItem.d.ts +1 -0
  179. package/build/validators/validateUpdateItem.js +23 -0
  180. package/build/validators/validateUpdateItem.js.map +1 -0
  181. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ export interface MeetingRequestToken {
2
+ stepId?: string;
3
+ userId: string;
4
+ meetingRequestDate?: string;
5
+ id?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=meeting-request-token.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-request-token.interface.js","sourceRoot":"","sources":["../../src/types/meeting-request-token.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export declare enum MeetingType {
2
+ IN_PERSON = "In-person",
3
+ ZOOM = "Zoom",
4
+ TEAMS = "Teams",
5
+ WHERE_BY = "Where By",
6
+ ALADDIN_MEETING = "Aladdin Meeting"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MeetingType = void 0;
4
+ var MeetingType;
5
+ (function (MeetingType) {
6
+ MeetingType["IN_PERSON"] = "In-person";
7
+ MeetingType["ZOOM"] = "Zoom";
8
+ MeetingType["TEAMS"] = "Teams";
9
+ MeetingType["WHERE_BY"] = "Where By";
10
+ MeetingType["ALADDIN_MEETING"] = "Aladdin Meeting";
11
+ })(MeetingType = exports.MeetingType || (exports.MeetingType = {}));
12
+ //# sourceMappingURL=meeting-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-type.enum.js","sourceRoot":"","sources":["../../src/types/meeting-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,oCAAqB,CAAA;IACrB,kDAAmC,CAAA;AACrC,CAAC,EANW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAMtB"}
@@ -0,0 +1,16 @@
1
+ export declare enum NotificationEvent {
2
+ INFORMATIONAL_MESSAGE = "InformationMessage",
3
+ NEW_REQUEST_MEETING = "NewRequestMeeting",
4
+ ACCEPT_REQUEST_MEETING = "AcceptRequestMeeting",
5
+ REJECT_REQUEST_MEETING = "RejectRequestMeeting",
6
+ RESCHEDULE_REQUEST_MEETING = "RescheduleRequestMeeting",
7
+ CANCEL_REQUEST_MEETING = "CancelRequestMeeting",
8
+ UPDATE_REQUEST_MEETING = "UpdateRequestMeeting",
9
+ CONFERENCE_AGENDA_SESSION_REMINDER = "ConferenceAgendaSessionReminder",
10
+ SURVEY_NOTIFICATION = "SurveyNotificaiton",
11
+ MEETING_START_SOON = "MeetingStartSoon",
12
+ SCHEDULE_MEETING = "ScheduleMeeting",
13
+ RESCHEDULE_MEETING = "RescheduleMeeting",
14
+ CANCEL_MEETING = "CancelMeeting",
15
+ REMINDER_MESSAGE = "ReminderMessage"
16
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationEvent = void 0;
4
+ var NotificationEvent;
5
+ (function (NotificationEvent) {
6
+ NotificationEvent["INFORMATIONAL_MESSAGE"] = "InformationMessage";
7
+ NotificationEvent["NEW_REQUEST_MEETING"] = "NewRequestMeeting";
8
+ NotificationEvent["ACCEPT_REQUEST_MEETING"] = "AcceptRequestMeeting";
9
+ NotificationEvent["REJECT_REQUEST_MEETING"] = "RejectRequestMeeting";
10
+ NotificationEvent["RESCHEDULE_REQUEST_MEETING"] = "RescheduleRequestMeeting";
11
+ NotificationEvent["CANCEL_REQUEST_MEETING"] = "CancelRequestMeeting";
12
+ NotificationEvent["UPDATE_REQUEST_MEETING"] = "UpdateRequestMeeting";
13
+ NotificationEvent["CONFERENCE_AGENDA_SESSION_REMINDER"] = "ConferenceAgendaSessionReminder";
14
+ NotificationEvent["SURVEY_NOTIFICATION"] = "SurveyNotificaiton";
15
+ NotificationEvent["MEETING_START_SOON"] = "MeetingStartSoon";
16
+ NotificationEvent["SCHEDULE_MEETING"] = "ScheduleMeeting";
17
+ NotificationEvent["RESCHEDULE_MEETING"] = "RescheduleMeeting";
18
+ NotificationEvent["CANCEL_MEETING"] = "CancelMeeting";
19
+ NotificationEvent["REMINDER_MESSAGE"] = "ReminderMessage";
20
+ })(NotificationEvent = exports.NotificationEvent || (exports.NotificationEvent = {}));
21
+ //# sourceMappingURL=notification-event.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-event.enum.js","sourceRoot":"","sources":["../../src/types/notification-event.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAeX;AAfD,WAAY,iBAAiB;IAC3B,iEAA4C,CAAA;IAC5C,8DAAyC,CAAA;IACzC,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAC/C,4EAAuD,CAAA;IACvD,oEAA+C,CAAA;IAC/C,oEAA+C,CAAA;IAC/C,2FAAsE,CAAA;IACtE,+DAA0C,CAAA;IAC1C,4DAAuC,CAAA;IACvC,yDAAoC,CAAA;IACpC,6DAAwC,CAAA;IACxC,qDAAgC,CAAA;IAChC,yDAAoC,CAAA;AACtC,CAAC,EAfW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAe5B"}
@@ -0,0 +1,6 @@
1
+ export declare enum NotificationType {
2
+ EMAIL = "Email",
3
+ PUSH_NOTIFICATION = "PushNotification",
4
+ SMS = "SMS",
5
+ SYSTEM = "System"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationType = void 0;
4
+ var NotificationType;
5
+ (function (NotificationType) {
6
+ NotificationType["EMAIL"] = "Email";
7
+ NotificationType["PUSH_NOTIFICATION"] = "PushNotification";
8
+ NotificationType["SMS"] = "SMS";
9
+ NotificationType["SYSTEM"] = "System";
10
+ })(NotificationType = exports.NotificationType || (exports.NotificationType = {}));
11
+ //# sourceMappingURL=notification-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-type.enum.js","sourceRoot":"","sources":["../../src/types/notification-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,0DAAsC,CAAA;IACtC,+BAAW,CAAA;IACX,qCAAiB,CAAA;AACnB,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B"}
@@ -0,0 +1,5 @@
1
+ export declare enum operationTypes {
2
+ CREATE = "create",
3
+ UPDATE = "update",
4
+ DELETE = "delete"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.operationTypes = void 0;
4
+ var operationTypes;
5
+ (function (operationTypes) {
6
+ operationTypes["CREATE"] = "create";
7
+ operationTypes["UPDATE"] = "update";
8
+ operationTypes["DELETE"] = "delete";
9
+ })(operationTypes = exports.operationTypes || (exports.operationTypes = {}));
10
+ //# sourceMappingURL=operation-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-types.js","sourceRoot":"","sources":["../../src/types/operation-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
@@ -0,0 +1,5 @@
1
+ export interface ReadResult<T> {
2
+ data?: T[];
3
+ hasTotal?: boolean;
4
+ total?: number;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=read-result.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-result.interface.js","sourceRoot":"","sources":["../../src/types/read-result.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export interface UpdateInputData {
2
+ query: object;
3
+ data: object;
4
+ necessaryProjectionArray?: string[];
5
+ $set?: string;
6
+ $unset?: string;
7
+ $pull?: string;
8
+ $push?: string;
9
+ $addToSet?: object;
10
+ $inc?: object;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=update-input-data.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-input-data.interface.js","sourceRoot":"","sources":["../../src/types/update-input-data.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface UploadPresignedURL {
2
+ file: string;
3
+ uploadURL: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=upload-presigned-url.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-presigned-url.interface.js","sourceRoot":"","sources":["../../src/types/upload-presigned-url.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface UserInvitation {
2
+ exhibitorCompanyUser?: number;
3
+ sponsorCompanyUser?: number;
4
+ visitorCompanyUser?: number;
5
+ hostExhibitorCompanyUser?: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=user-invitations.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-invitations.interface.js","sourceRoot":"","sources":["../../src/types/user-invitations.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export declare enum UserRole {
2
+ ADMIN = "Admin",
3
+ MANAGER = "Manager",
4
+ OPERATION = "Operation",
5
+ ONGROUND = "Onground",
6
+ USER = "User"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserRole = void 0;
4
+ var UserRole;
5
+ (function (UserRole) {
6
+ UserRole["ADMIN"] = "Admin";
7
+ UserRole["MANAGER"] = "Manager";
8
+ UserRole["OPERATION"] = "Operation";
9
+ UserRole["ONGROUND"] = "Onground";
10
+ UserRole["USER"] = "User";
11
+ })(UserRole = exports.UserRole || (exports.UserRole = {}));
12
+ //# sourceMappingURL=user-role.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-role.enum.js","sourceRoot":"","sources":["../../src/types/user-role.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;AACf,CAAC,EANW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB"}
@@ -0,0 +1,5 @@
1
+ export declare enum UserType {
2
+ ADMIN = "Admin",
3
+ ORGANIZER = "Organizer",
4
+ USER = "User"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserType = void 0;
4
+ var UserType;
5
+ (function (UserType) {
6
+ UserType["ADMIN"] = "Admin";
7
+ UserType["ORGANIZER"] = "Organizer";
8
+ UserType["USER"] = "User";
9
+ })(UserType = exports.UserType || (exports.UserType = {}));
10
+ //# sourceMappingURL=user-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-type.enum.js","sourceRoot":"","sources":["../../src/types/user-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,yBAAa,CAAA;AACf,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB"}
@@ -0,0 +1,6 @@
1
+ export interface VisibilityGroup {
2
+ exhibitor?: boolean;
3
+ visitor?: boolean;
4
+ sponsor?: boolean;
5
+ batches?: boolean;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=visibility-group.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visibility-group.interface.js","sourceRoot":"","sources":["../../src/types/visibility-group.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const adjustForTimezone: (date: Date) => Date;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.adjustForTimezone = void 0;
4
+ const adjustForTimezone = (date) => {
5
+ const timeOffsetInMS = date.getTimezoneOffset() * 60000;
6
+ date.setTime(date.getTime() - timeOffsetInMS);
7
+ return date;
8
+ };
9
+ exports.adjustForTimezone = adjustForTimezone;
10
+ //# sourceMappingURL=adjustForTimezone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adjustForTimezone.js","sourceRoot":"","sources":["../../src/utils/adjustForTimezone.ts"],"names":[],"mappings":";;;AAAO,MAAM,iBAAiB,GAAG,CAAC,IAAU,EAAE,EAAE;IAC9C,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,EAAE,GAAG,KAAK,CAAA;IACvD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,cAAc,CAAC,CAAA;IAC7C,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B"}
@@ -0,0 +1 @@
1
+ export declare const createDefaultDirectories: (requiredDirs: any) => void;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createDefaultDirectories = void 0;
4
+ const fs = require("fs");
5
+ const createDefaultDirectories = (requiredDirs) => {
6
+ const initialDirectory = './uploads';
7
+ if (!fs.existsSync(initialDirectory)) {
8
+ fs.mkdirSync(initialDirectory);
9
+ }
10
+ const createFiles = (requiredDirs, initialRoute) => {
11
+ requiredDirs.forEach(file => {
12
+ let finalRoute = `${initialRoute}/${file.name}`;
13
+ if (!fs.existsSync(finalRoute)) {
14
+ fs.mkdirSync(finalRoute);
15
+ }
16
+ if (file.subDirs.length) {
17
+ createFiles(file.subDirs, finalRoute);
18
+ }
19
+ });
20
+ };
21
+ createFiles(requiredDirs, initialDirectory);
22
+ };
23
+ exports.createDefaultDirectories = createDefaultDirectories;
24
+ //# sourceMappingURL=create-default-directories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-default-directories.js","sourceRoot":"","sources":["../../src/utils/create-default-directories.ts"],"names":[],"mappings":";;;AAAA,yBAAyB;AAElB,MAAM,wBAAwB,GAAG,CAAC,YAAY,EAAE,EAAE;IACrD,MAAM,gBAAgB,GAAG,WAAW,CAAA;IACtC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE;QACpC,EAAE,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;KAC/B;IAED,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,YAAY,EAAE,EAAE;QACjD,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YAC1B,IAAI,UAAU,GAAG,GAAG,YAAY,IAAI,IAAI,CAAC,IAAI,EAAE,CAAA;YAC/C,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;gBAC9B,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;aACzB;YAED,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;gBACvB,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;aACtC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAA;IACD,WAAW,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAA;AAC7C,CAAC,CAAA;AAnBY,QAAA,wBAAwB,4BAmBpC"}
@@ -0,0 +1 @@
1
+ export declare function equalArrayObject(arr1: object[], arr2: object[]): boolean;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.equalArrayObject = void 0;
4
+ const equal_object_1 = require("./equal-object");
5
+ function equalArrayObject(arr1, arr2) {
6
+ return (arr1.length === arr2.length &&
7
+ arr1.every((o, idx) => equal_object_1.equalObject(o, arr2[idx])));
8
+ }
9
+ exports.equalArrayObject = equalArrayObject;
10
+ //# sourceMappingURL=equal-array-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equal-array-object.js","sourceRoot":"","sources":["../../src/utils/equal-array-object.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,SAAgB,gBAAgB,CAAC,IAAc,EAAE,IAAc;IAC7D,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM;QAC3B,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,0BAAW,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAClD,CAAC;AACJ,CAAC;AALD,4CAKC"}
@@ -0,0 +1 @@
1
+ export declare function equalObject(obj1: object, obj2: object): boolean;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.equalObject = void 0;
4
+ function equalObject(obj1, obj2) {
5
+ return (Object.keys(obj1).length === Object.keys(obj2).length &&
6
+ Object.keys(obj1).every((p) => obj1[p] === obj2[p]));
7
+ }
8
+ exports.equalObject = equalObject;
9
+ //# sourceMappingURL=equal-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"equal-object.js","sourceRoot":"","sources":["../../src/utils/equal-object.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,IAAY,EAAE,IAAY;IACpD,OAAO,CACL,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM;QACrD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CACpD,CAAC;AACJ,CAAC;AALD,kCAKC"}
@@ -0,0 +1 @@
1
+ export declare function getParsedQuery(filterDto: any): any;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getParsedQuery = void 0;
4
+ function getParsedQuery(filterDto) {
5
+ if (filterDto.query) {
6
+ try {
7
+ return JSON.parse(filterDto.query);
8
+ }
9
+ catch (err) {
10
+ return filterDto.query;
11
+ }
12
+ }
13
+ else {
14
+ return {};
15
+ }
16
+ }
17
+ exports.getParsedQuery = getParsedQuery;
18
+ //# sourceMappingURL=get-parsed-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-parsed-query.js","sourceRoot":"","sources":["../../src/utils/get-parsed-query.ts"],"names":[],"mappings":";;;AAAA,SAAgB,cAAc,CAAC,SAAS;IACtC,IAAI,SAAS,CAAC,KAAK,EAAE;QACnB,IAAI;YACF,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;SACnC;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO,SAAS,CAAC,KAAK,CAAA;SACvB;KACF;SAAM;QACL,OAAO,EAAE,CAAA;KACV;AACH,CAAC;AAVD,wCAUC"}
@@ -0,0 +1 @@
1
+ export declare function parseQuery(filterDto: any): any;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseQuery = void 0;
4
+ function parseQuery(filterDto) {
5
+ if (typeof filterDto === 'object' && (filterDto === null || filterDto === void 0 ? void 0 : filterDto.order)) {
6
+ const newDto = JSON.parse(filterDto.order);
7
+ filterDto.order = newDto;
8
+ }
9
+ if (filterDto === null || filterDto === void 0 ? void 0 : filterDto.join) {
10
+ const newDto = JSON.parse(filterDto.join);
11
+ filterDto.join = newDto;
12
+ }
13
+ if ((filterDto === null || filterDto === void 0 ? void 0 : filterDto.where) && typeof filterDto.where === 'string') {
14
+ const newDto = JSON.parse(filterDto.where);
15
+ filterDto.where = newDto;
16
+ }
17
+ if ((filterDto === null || filterDto === void 0 ? void 0 : filterDto.where) && Array.isArray(filterDto.where)) {
18
+ const newWhere = filterDto.where.map((item) => {
19
+ if (typeof item === 'string') {
20
+ JSON.parse(item);
21
+ }
22
+ else {
23
+ return item;
24
+ }
25
+ });
26
+ filterDto.where = newWhere;
27
+ }
28
+ return filterDto;
29
+ }
30
+ exports.parseQuery = parseQuery;
31
+ //# sourceMappingURL=parse-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-query.js","sourceRoot":"","sources":["../../src/utils/parse-query.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CAAC,SAAc;IACvC,IAAI,OAAO,SAAS,KAAK,QAAQ,KAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,CAAA,EAAE;QACrD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC3C,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC;KAC1B;IACD,IAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,EAAE;QACnB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC1C,SAAS,CAAC,IAAI,GAAG,MAAM,CAAC;KACzB;IACD,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,KAAI,OAAO,SAAS,CAAC,KAAK,KAAK,QAAQ,EAAE;QAC3D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC3C,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC;KAC1B;IACD,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,KAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;QACtD,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YAC5C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;gBAC5B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aAClB;iBAAM;gBACL,OAAO,IAAI,CAAC;aACb;QACH,CAAC,CAAC,CAAC;QACH,SAAS,CAAC,KAAK,GAAG,QAAQ,CAAC;KAC5B;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAxBD,gCAwBC"}
@@ -0,0 +1 @@
1
+ export declare function projection(allProjectionFieldArray: string[], necessaryProjectionArray: string[]): {};
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.projection = void 0;
4
+ function projection(allProjectionFieldArray, necessaryProjectionArray) {
5
+ try {
6
+ const projection = {};
7
+ let returnAll = true;
8
+ Array.isArray(necessaryProjectionArray) &&
9
+ necessaryProjectionArray.length &&
10
+ necessaryProjectionArray.map((key) => {
11
+ if (allProjectionFieldArray.includes(key)) {
12
+ returnAll = false;
13
+ projection[key] = true;
14
+ }
15
+ });
16
+ if (returnAll) {
17
+ allProjectionFieldArray.map((key) => (projection[key] = true));
18
+ }
19
+ return projection;
20
+ }
21
+ catch (err) {
22
+ throw err;
23
+ }
24
+ }
25
+ exports.projection = projection;
26
+ //# sourceMappingURL=projection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projection.js","sourceRoot":"","sources":["../../src/utils/projection.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CACxB,uBAAiC,EACjC,wBAAkC;IAElC,IAAI;QACF,MAAM,UAAU,GAAG,EAAE,CAAC;QACtB,IAAI,SAAS,GAAG,IAAI,CAAC;QAErB,KAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC;YACrC,wBAAwB,CAAC,MAAM;YAC/B,wBAAwB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;gBACnC,IAAI,uBAAuB,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBACzC,SAAS,GAAG,KAAK,CAAC;oBAClB,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;iBACxB;YACH,CAAC,CAAC,CAAC;QAEL,IAAI,SAAS,EAAE;YACb,uBAAuB,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;SAChE;QAED,OAAO,UAAU,CAAC;KACnB;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,GAAG,CAAC;KACX;AACH,CAAC;AAzBD,gCAyBC"}
@@ -0,0 +1,29 @@
1
+ /// <reference types="node" />
2
+ import { ClientProxy, ReadPacket, WritePacket } from '@nestjs/microservices';
3
+ import { AmqpConnectionManager, ChannelWrapper } from 'amqp-connection-manager';
4
+ import { ConfirmChannel } from 'amqplib';
5
+ import { EventEmitter } from 'events';
6
+ import { RMQClientOptions, RMQMessage } from '../interfaces/rmq-options.interfaces';
7
+ import { Observable } from 'rxjs';
8
+ import { Logger } from '@nestjs/common';
9
+ export declare class RabbitMQClient extends ClientProxy {
10
+ private readonly options;
11
+ protected readonly logger: Logger;
12
+ protected client: AmqpConnectionManager;
13
+ protected channel: ChannelWrapper;
14
+ protected responseEmitter: EventEmitter;
15
+ protected connection: Promise<any>;
16
+ protected replyQueue: string;
17
+ constructor(options: RMQClientOptions);
18
+ connect(): Promise<any>;
19
+ createClient(): AmqpConnectionManager;
20
+ handleRMQEvents(): void;
21
+ mergeDisconnectEvent<T = any>(instance: any, source$: Observable<T>): Observable<T>;
22
+ createChannel(): Promise<void>;
23
+ setupChannel(channel: ConfirmChannel, resolve: any): Promise<void>;
24
+ consumeChannel(): void;
25
+ protected publish(message: ReadPacket<string | RMQMessage>, callback: (packet: WritePacket) => any): any;
26
+ handleMessage(packet: unknown, callback: (packet: WritePacket) => any): Promise<void>;
27
+ protected dispatchEvent(packet: ReadPacket<string | RMQMessage>): Promise<any>;
28
+ close(): void;
29
+ }