@aldb2b/common 1.0.332 → 1.0.334

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 (264) hide show
  1. package/build/events/publish-event-import-statistics.interface.d.ts +10 -0
  2. package/build/{types/analytic-group.interface.js → events/publish-event-import-statistics.interface.js} +1 -1
  3. package/build/events/publish-event-import-statistics.interface.js.map +1 -0
  4. package/build/events/publish-event-meeting-statistics.interface.d.ts +10 -0
  5. package/build/{types/download-presigned-url.interface.js → events/publish-event-meeting-statistics.interface.js} +1 -1
  6. package/build/events/publish-event-meeting-statistics.interface.js.map +1 -0
  7. package/build/events/queues.d.ts +3 -1
  8. package/build/events/queues.js +2 -0
  9. package/build/events/queues.js.map +1 -1
  10. package/build/events/subjects.d.ts +3 -1
  11. package/build/events/subjects.js +2 -0
  12. package/build/events/subjects.js.map +1 -1
  13. package/build/index.d.ts +2 -0
  14. package/build/index.js +2 -0
  15. package/build/index.js.map +1 -1
  16. package/build/tsconfig.tsbuildinfo +4178 -5548
  17. package/package.json +1 -1
  18. package/build/db/CustomModel.d.ts +0 -4
  19. package/build/db/CustomModel.js +0 -8
  20. package/build/db/CustomModel.js.map +0 -1
  21. package/build/db/MongooseBase.d.ts +0 -41
  22. package/build/db/MongooseBase.js +0 -346
  23. package/build/db/MongooseBase.js.map +0 -1
  24. package/build/db/aggregate/AggregateConvertor.d.ts +0 -23
  25. package/build/db/aggregate/AggregateConvertor.js +0 -212
  26. package/build/db/aggregate/AggregateConvertor.js.map +0 -1
  27. package/build/db/aggregate/createAggregateResponse.d.ts +0 -2
  28. package/build/db/aggregate/createAggregateResponse.js +0 -50
  29. package/build/db/aggregate/createAggregateResponse.js.map +0 -1
  30. package/build/db/mongoose-find-options.d.ts +0 -12
  31. package/build/db/mongoose-find-options.js +0 -68
  32. package/build/db/mongoose-find-options.js.map +0 -1
  33. package/build/decorators/get-event-id-decorator.d.ts +0 -1
  34. package/build/decorators/get-event-id-decorator.js +0 -13
  35. package/build/decorators/get-event-id-decorator.js.map +0 -1
  36. package/build/decorators/get-user-decorator.d.ts +0 -1
  37. package/build/decorators/get-user-decorator.js +0 -13
  38. package/build/decorators/get-user-decorator.js.map +0 -1
  39. package/build/events/exchanges.d.ts +0 -4
  40. package/build/events/exchanges.js +0 -9
  41. package/build/events/exchanges.js.map +0 -1
  42. package/build/interceptors/response-with-code.interceptor.d.ts +0 -6
  43. package/build/interceptors/response-with-code.interceptor.js +0 -32
  44. package/build/interceptors/response-with-code.interceptor.js.map +0 -1
  45. package/build/interceptors/response.interceptor.d.ts +0 -6
  46. package/build/interceptors/response.interceptor.js +0 -31
  47. package/build/interceptors/response.interceptor.js.map +0 -1
  48. package/build/interceptors/serialize.interceptor.d.ts +0 -12
  49. package/build/interceptors/serialize.interceptor.js +0 -25
  50. package/build/interceptors/serialize.interceptor.js.map +0 -1
  51. package/build/middlewares/app.middleware.d.ts +0 -6
  52. package/build/middlewares/app.middleware.js +0 -30
  53. package/build/middlewares/app.middleware.js.map +0 -1
  54. package/build/middlewares/event-status.middleware.d.ts +0 -6
  55. package/build/middlewares/event-status.middleware.js +0 -29
  56. package/build/middlewares/event-status.middleware.js.map +0 -1
  57. package/build/types/analytic-group.interface.d.ts +0 -12
  58. package/build/types/analytic-group.interface.js.map +0 -1
  59. package/build/types/bulk-users.enum.d.ts +0 -5
  60. package/build/types/bulk-users.enum.js +0 -10
  61. package/build/types/bulk-users.enum.js.map +0 -1
  62. package/build/types/calendar-source-type.enum.d.ts +0 -7
  63. package/build/types/calendar-source-type.enum.js +0 -12
  64. package/build/types/calendar-source-type.enum.js.map +0 -1
  65. package/build/types/chat-group.interface.d.ts +0 -4
  66. package/build/types/chat-group.interface.js +0 -3
  67. package/build/types/chat-group.interface.js.map +0 -1
  68. package/build/types/default-visibility.interface.d.ts +0 -13
  69. package/build/types/default-visibility.interface.js +0 -3
  70. package/build/types/default-visibility.interface.js.map +0 -1
  71. package/build/types/download-presigned-url.interface.d.ts +0 -4
  72. package/build/types/download-presigned-url.interface.js.map +0 -1
  73. package/build/types/enddpoint.interface.d.ts +0 -10
  74. package/build/types/enddpoint.interface.js +0 -3
  75. package/build/types/enddpoint.interface.js.map +0 -1
  76. package/build/types/endpoint-type.enum.d.ts +0 -5
  77. package/build/types/endpoint-type.enum.js +0 -10
  78. package/build/types/endpoint-type.enum.js.map +0 -1
  79. package/build/types/event-status.enum.d.ts +0 -8
  80. package/build/types/event-status.enum.js +0 -13
  81. package/build/types/event-status.enum.js.map +0 -1
  82. package/build/types/feature-mappings.d.ts +0 -18
  83. package/build/types/feature-mappings.js +0 -29
  84. package/build/types/feature-mappings.js.map +0 -1
  85. package/build/types/feature-type.enum.d.ts +0 -20
  86. package/build/types/feature-type.enum.js +0 -25
  87. package/build/types/feature-type.enum.js.map +0 -1
  88. package/build/types/feature.interface.d.ts +0 -10
  89. package/build/types/feature.interface.js +0 -3
  90. package/build/types/feature.interface.js.map +0 -1
  91. package/build/types/group-visibility.interface.d.ts +0 -13
  92. package/build/types/group-visibility.interface.js +0 -3
  93. package/build/types/group-visibility.interface.js.map +0 -1
  94. package/build/types/header-user.interface.d.ts +0 -10
  95. package/build/types/header-user.interface.js +0 -3
  96. package/build/types/header-user.interface.js.map +0 -1
  97. package/build/types/match-group.interface.d.ts +0 -7
  98. package/build/types/match-group.interface.js +0 -3
  99. package/build/types/match-group.interface.js.map +0 -1
  100. package/build/types/match.interface.d.ts +0 -6
  101. package/build/types/match.interface.js +0 -3
  102. package/build/types/match.interface.js.map +0 -1
  103. package/build/types/meeting-request-token.interface.d.ts +0 -6
  104. package/build/types/meeting-request-token.interface.js +0 -3
  105. package/build/types/meeting-request-token.interface.js.map +0 -1
  106. package/build/types/meeting-type.enum.d.ts +0 -8
  107. package/build/types/meeting-type.enum.js +0 -13
  108. package/build/types/meeting-type.enum.js.map +0 -1
  109. package/build/types/notification-event.enum.d.ts +0 -25
  110. package/build/types/notification-event.enum.js +0 -30
  111. package/build/types/notification-event.enum.js.map +0 -1
  112. package/build/types/notification-type.enum.d.ts +0 -6
  113. package/build/types/notification-type.enum.js +0 -11
  114. package/build/types/notification-type.enum.js.map +0 -1
  115. package/build/types/onboarded-thru.enum.d.ts +0 -11
  116. package/build/types/onboarded-thru.enum.js +0 -16
  117. package/build/types/onboarded-thru.enum.js.map +0 -1
  118. package/build/types/operation-types.d.ts +0 -6
  119. package/build/types/operation-types.js +0 -11
  120. package/build/types/operation-types.js.map +0 -1
  121. package/build/types/payment-method.enum.d.ts +0 -5
  122. package/build/types/payment-method.enum.js +0 -10
  123. package/build/types/payment-method.enum.js.map +0 -1
  124. package/build/types/priority.enum.d.ts +0 -6
  125. package/build/types/priority.enum.js +0 -11
  126. package/build/types/priority.enum.js.map +0 -1
  127. package/build/types/read-result.interface.d.ts +0 -5
  128. package/build/types/read-result.interface.js +0 -3
  129. package/build/types/read-result.interface.js.map +0 -1
  130. package/build/types/record-type.enum.d.ts +0 -19
  131. package/build/types/record-type.enum.js +0 -24
  132. package/build/types/record-type.enum.js.map +0 -1
  133. package/build/types/subscription-model.enum.d.ts +0 -4
  134. package/build/types/subscription-model.enum.js +0 -9
  135. package/build/types/subscription-model.enum.js.map +0 -1
  136. package/build/types/update-input-data.interface.d.ts +0 -11
  137. package/build/types/update-input-data.interface.js +0 -3
  138. package/build/types/update-input-data.interface.js.map +0 -1
  139. package/build/types/upload-presigned-url.interface.d.ts +0 -4
  140. package/build/types/upload-presigned-url.interface.js +0 -3
  141. package/build/types/upload-presigned-url.interface.js.map +0 -1
  142. package/build/types/user-invitations.interface.d.ts +0 -6
  143. package/build/types/user-invitations.interface.js +0 -3
  144. package/build/types/user-invitations.interface.js.map +0 -1
  145. package/build/types/user-language.enum.d.ts +0 -5
  146. package/build/types/user-language.enum.js +0 -10
  147. package/build/types/user-language.enum.js.map +0 -1
  148. package/build/types/user-role.enum.d.ts +0 -8
  149. package/build/types/user-role.enum.js +0 -13
  150. package/build/types/user-role.enum.js.map +0 -1
  151. package/build/types/user-type.enum.d.ts +0 -5
  152. package/build/types/user-type.enum.js +0 -10
  153. package/build/types/user-type.enum.js.map +0 -1
  154. package/build/types/visibility-group.interface.d.ts +0 -6
  155. package/build/types/visibility-group.interface.js +0 -3
  156. package/build/types/visibility-group.interface.js.map +0 -1
  157. package/build/utils/addDaysToDate.d.ts +0 -1
  158. package/build/utils/addDaysToDate.js +0 -10
  159. package/build/utils/addDaysToDate.js.map +0 -1
  160. package/build/utils/addHours.d.ts +0 -1
  161. package/build/utils/addHours.js +0 -9
  162. package/build/utils/addHours.js.map +0 -1
  163. package/build/utils/adjustForTimezone.d.ts +0 -1
  164. package/build/utils/adjustForTimezone.js +0 -10
  165. package/build/utils/adjustForTimezone.js.map +0 -1
  166. package/build/utils/create-default-directories.d.ts +0 -1
  167. package/build/utils/create-default-directories.js +0 -24
  168. package/build/utils/create-default-directories.js.map +0 -1
  169. package/build/utils/equal-array-object.d.ts +0 -1
  170. package/build/utils/equal-array-object.js +0 -10
  171. package/build/utils/equal-array-object.js.map +0 -1
  172. package/build/utils/equal-object.d.ts +0 -1
  173. package/build/utils/equal-object.js +0 -9
  174. package/build/utils/equal-object.js.map +0 -1
  175. package/build/utils/get-parsed-query.d.ts +0 -1
  176. package/build/utils/get-parsed-query.js +0 -18
  177. package/build/utils/get-parsed-query.js.map +0 -1
  178. package/build/utils/getEndpoint.d.ts +0 -5
  179. package/build/utils/getEndpoint.js +0 -43
  180. package/build/utils/getEndpoint.js.map +0 -1
  181. package/build/utils/getHeaderParam.d.ts +0 -1
  182. package/build/utils/getHeaderParam.js +0 -8
  183. package/build/utils/getHeaderParam.js.map +0 -1
  184. package/build/utils/parse-query.d.ts +0 -1
  185. package/build/utils/parse-query.js +0 -31
  186. package/build/utils/parse-query.js.map +0 -1
  187. package/build/utils/projection.d.ts +0 -1
  188. package/build/utils/projection.js +0 -26
  189. package/build/utils/projection.js.map +0 -1
  190. package/build/utils/redis-client.d.ts +0 -9
  191. package/build/utils/redis-client.js +0 -55
  192. package/build/utils/redis-client.js.map +0 -1
  193. package/build/utils/rmq/client/rabbitmq.client.d.ts +0 -29
  194. package/build/utils/rmq/client/rabbitmq.client.js +0 -162
  195. package/build/utils/rmq/client/rabbitmq.client.js.map +0 -1
  196. package/build/utils/rmq/constants.d.ts +0 -9
  197. package/build/utils/rmq/constants.js +0 -13
  198. package/build/utils/rmq/constants.js.map +0 -1
  199. package/build/utils/rmq/ctx-host/rmq.context.d.ts +0 -9
  200. package/build/utils/rmq/ctx-host/rmq.context.js +0 -20
  201. package/build/utils/rmq/ctx-host/rmq.context.js.map +0 -1
  202. package/build/utils/rmq/index.d.ts +0 -4
  203. package/build/utils/rmq/index.js +0 -10
  204. package/build/utils/rmq/index.js.map +0 -1
  205. package/build/utils/rmq/interfaces/rmq-options.interfaces.d.ts +0 -79
  206. package/build/utils/rmq/interfaces/rmq-options.interfaces.js +0 -12
  207. package/build/utils/rmq/interfaces/rmq-options.interfaces.js.map +0 -1
  208. package/build/utils/rmq/server/rabbitmq.server.d.ts +0 -19
  209. package/build/utils/rmq/server/rabbitmq.server.js +0 -114
  210. package/build/utils/rmq/server/rabbitmq.server.js.map +0 -1
  211. package/build/utils/timezone.d.ts +0 -2
  212. package/build/utils/timezone.js +0 -15
  213. package/build/utils/timezone.js.map +0 -1
  214. package/build/validators/conditional-required.d.ts +0 -2
  215. package/build/validators/conditional-required.js +0 -24
  216. package/build/validators/conditional-required.js.map +0 -1
  217. package/build/validators/date-validator.d.ts +0 -2
  218. package/build/validators/date-validator.js +0 -21
  219. package/build/validators/date-validator.js.map +0 -1
  220. package/build/validators/responses/customizeArrayResponse.d.ts +0 -3
  221. package/build/validators/responses/customizeArrayResponse.js +0 -24
  222. package/build/validators/responses/customizeArrayResponse.js.map +0 -1
  223. package/build/validators/responses/error-with-code.d.ts +0 -2
  224. package/build/validators/responses/error-with-code.interface.d.ts +0 -5
  225. package/build/validators/responses/error-with-code.interface.js +0 -3
  226. package/build/validators/responses/error-with-code.interface.js.map +0 -1
  227. package/build/validators/responses/error-with-code.js +0 -30
  228. package/build/validators/responses/error-with-code.js.map +0 -1
  229. package/build/validators/responses/error.d.ts +0 -2
  230. package/build/validators/responses/error.interface.d.ts +0 -4
  231. package/build/validators/responses/error.interface.js +0 -3
  232. package/build/validators/responses/error.interface.js.map +0 -1
  233. package/build/validators/responses/error.js +0 -29
  234. package/build/validators/responses/error.js.map +0 -1
  235. package/build/validators/responses/response-option.interface.d.ts +0 -7
  236. package/build/validators/responses/response-option.interface.js +0 -3
  237. package/build/validators/responses/response-option.interface.js.map +0 -1
  238. package/build/validators/responses/succes-result.interface.d.ts +0 -10
  239. package/build/validators/responses/succes-result.interface.js +0 -3
  240. package/build/validators/responses/succes-result.interface.js.map +0 -1
  241. package/build/validators/responses/success-with-code.d.ts +0 -3
  242. package/build/validators/responses/success-with-code.interface.d.ts +0 -4
  243. package/build/validators/responses/success-with-code.interface.js +0 -3
  244. package/build/validators/responses/success-with-code.interface.js.map +0 -1
  245. package/build/validators/responses/success-with-code.js +0 -15
  246. package/build/validators/responses/success-with-code.js.map +0 -1
  247. package/build/validators/responses/success.d.ts +0 -3
  248. package/build/validators/responses/success.interface.d.ts +0 -4
  249. package/build/validators/responses/success.interface.js +0 -3
  250. package/build/validators/responses/success.interface.js.map +0 -1
  251. package/build/validators/responses/success.js +0 -15
  252. package/build/validators/responses/success.js.map +0 -1
  253. package/build/validators/validateNewItem.d.ts +0 -1
  254. package/build/validators/validateNewItem.js +0 -23
  255. package/build/validators/validateNewItem.js.map +0 -1
  256. package/build/validators/validateProjection.d.ts +0 -1
  257. package/build/validators/validateProjection.js +0 -33
  258. package/build/validators/validateProjection.js.map +0 -1
  259. package/build/validators/validateProjectionResult.d.ts +0 -1
  260. package/build/validators/validateProjectionResult.js +0 -37
  261. package/build/validators/validateProjectionResult.js.map +0 -1
  262. package/build/validators/validateUpdateItem.d.ts +0 -1
  263. package/build/validators/validateUpdateItem.js +0 -23
  264. package/build/validators/validateUpdateItem.js.map +0 -1
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserLanguage = void 0;
4
- var UserLanguage;
5
- (function (UserLanguage) {
6
- UserLanguage["ENGLISH"] = "en";
7
- UserLanguage["ARABIC"] = "ar";
8
- UserLanguage["FRENCH"] = "fr";
9
- })(UserLanguage = exports.UserLanguage || (exports.UserLanguage = {}));
10
- //# sourceMappingURL=user-language.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-language.enum.js","sourceRoot":"","sources":["../../src/types/user-language.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,8BAAc,CAAA;IACd,6BAAa,CAAA;IACb,6BAAa,CAAA;AACf,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
@@ -1,8 +0,0 @@
1
- export declare enum UserRole {
2
- ADMIN = "Admin",
3
- MANAGER = "Manager",
4
- OPERATION = "Operation",
5
- ONGROUND = "Onground",
6
- USER = "User",
7
- EDITOR = "Editor"
8
- }
@@ -1,13 +0,0 @@
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["EDITOR"] = "Editor";
12
- })(UserRole = exports.UserRole || (exports.UserRole = {}));
13
- //# sourceMappingURL=user-role.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-role.enum.js","sourceRoot":"","sources":["../../src/types/user-role.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,6BAAiB,CAAA;AACnB,CAAC,EAPW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB"}
@@ -1,5 +0,0 @@
1
- export declare enum UserType {
2
- ADMIN = "Admin",
3
- ORGANIZER = "Organizer",
4
- USER = "User"
5
- }
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,6 +0,0 @@
1
- export interface VisibilityGroup {
2
- exhibitor?: boolean;
3
- visitor?: boolean;
4
- sponsor?: boolean;
5
- batches?: boolean;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=visibility-group.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"visibility-group.interface.js","sourceRoot":"","sources":["../../src/types/visibility-group.interface.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export declare function addDaysToDate(date: Date, days: number): Date;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addDaysToDate = void 0;
4
- function addDaysToDate(date, days) {
5
- const result = new Date(date);
6
- result.setDate(result.getDate() + days);
7
- return result;
8
- }
9
- exports.addDaysToDate = addDaysToDate;
10
- //# sourceMappingURL=addDaysToDate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addDaysToDate.js","sourceRoot":"","sources":["../../src/utils/addDaysToDate.ts"],"names":[],"mappings":";;;AAAA,SAAgB,aAAa,CAAC,IAAU,EAAE,IAAY;IACpD,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAA;IAC7B,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAA;IACvC,OAAO,MAAM,CAAA;AACf,CAAC;AAJD,sCAIC"}
@@ -1 +0,0 @@
1
- export declare function addHours(hours: number, date: Date): Date;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addHours = void 0;
4
- function addHours(hours, date) {
5
- date.setTime(date.getTime() + hours * 60 * 60 * 1000);
6
- return date;
7
- }
8
- exports.addHours = addHours;
9
- //# sourceMappingURL=addHours.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addHours.js","sourceRoot":"","sources":["../../src/utils/addHours.ts"],"names":[],"mappings":";;;AAAA,SAAgB,QAAQ,CAAC,KAAa,EAAE,IAAU;IAChD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;IACrD,OAAO,IAAI,CAAA;AACb,CAAC;AAHD,4BAGC"}
@@ -1 +0,0 @@
1
- export declare const adjustForTimezone: (date: Date) => Date;
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export declare const createDefaultDirectories: (requiredDirs: any) => void;
@@ -1,24 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export declare function equalArrayObject(arr1: object[], arr2: object[]): boolean;
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export declare function equalObject(obj1: object, obj2: object): boolean;
@@ -1,9 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export declare function getParsedQuery(filterDto: any): any;
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
1
- import { Feature } from 'src/types/feature.interface';
2
- export declare function getEndpoint(features: Feature[], method: string, path: string): {
3
- endpoint: any;
4
- feature: any;
5
- };
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getEndpoint = void 0;
4
- const common_1 = require("@nestjs/common");
5
- const feature_mappings_1 = require("../types/feature-mappings");
6
- function getEndpoint(features, method, path) {
7
- let matchedEndpoint = undefined;
8
- let matchedFeature = undefined;
9
- features.find((feature) => {
10
- const featureMappings = feature_mappings_1.FeatureMapping[feature.featureType];
11
- const hasPath = featureMappings === null || featureMappings === void 0 ? void 0 : featureMappings.findIndex((mapping) => path.includes(mapping));
12
- if (hasPath > -1) {
13
- matchedFeature = feature;
14
- const endpoint = feature.endpoints.find((endpoint) => {
15
- return endpoint.method === method && path.endsWith(endpoint.path);
16
- });
17
- if (endpoint) {
18
- matchedEndpoint = endpoint;
19
- return feature;
20
- }
21
- }
22
- });
23
- console.log('matchedFeature: ', matchedFeature);
24
- if (!matchedFeature) {
25
- throw new common_1.ForbiddenException({
26
- statusCode: 403,
27
- message: 'Forbidden feature',
28
- error: 'Forbidden',
29
- description: 'Please upgrade your subscription',
30
- });
31
- }
32
- if (matchedFeature.isActive === false) {
33
- throw new common_1.ForbiddenException({
34
- statusCode: 403,
35
- message: 'Inactive feature',
36
- error: 'Forbidden',
37
- description: 'Please upgrade your subscription',
38
- });
39
- }
40
- return { endpoint: matchedEndpoint, feature: matchedFeature };
41
- }
42
- exports.getEndpoint = getEndpoint;
43
- //# sourceMappingURL=getEndpoint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getEndpoint.js","sourceRoot":"","sources":["../../src/utils/getEndpoint.ts"],"names":[],"mappings":";;;AAAA,2CAAmD;AAEnD,gEAA0D;AAE1D,SAAgB,WAAW,CAAC,QAAmB,EAAE,MAAc,EAAE,IAAY;IAC3E,IAAI,eAAe,GAAG,SAAS,CAAC;IAChC,IAAI,cAAc,GAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;QACxB,MAAM,eAAe,GAAG,iCAAc,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC5D,MAAM,OAAO,GAAG,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE,CACnD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CACzB,CAAC;QACF,IAAI,OAAO,GAAG,CAAC,CAAC,EAAE;YAChB,cAAc,GAAG,OAAO,CAAC;YACzB,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACnD,OAAO,QAAQ,CAAC,MAAM,KAAK,MAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACpE,CAAC,CAAC,CAAC;YACH,IAAI,QAAQ,EAAE;gBACZ,eAAe,GAAG,QAAQ,CAAC;gBAC3B,OAAO,OAAO,CAAC;aAChB;SACF;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;IAChD,IAAI,CAAC,cAAc,EAAE;QACnB,MAAM,IAAI,2BAAkB,CAAC;YAC3B,UAAU,EAAE,GAAG;YACf,OAAO,EAAE,mBAAmB;YAC5B,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,kCAAkC;SAChD,CAAC,CAAC;KACJ;IAED,IAAI,cAAc,CAAC,QAAQ,KAAK,KAAK,EAAE;QACrC,MAAM,IAAI,2BAAkB,CAAC;YAC3B,UAAU,EAAE,GAAG;YACf,OAAO,EAAE,kBAAkB;YAC3B,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,kCAAkC;SAChD,CAAC,CAAC;KACJ;IAED,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AAChE,CAAC;AAxCD,kCAwCC"}
@@ -1 +0,0 @@
1
- export declare function getHeaderParam(headers: any, param: any): string;
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getHeaderParam = void 0;
4
- function getHeaderParam(headers, param) {
5
- return Array.isArray(headers[param]) ? headers[param][0] : headers[param];
6
- }
7
- exports.getHeaderParam = getHeaderParam;
8
- //# sourceMappingURL=getHeaderParam.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getHeaderParam.js","sourceRoot":"","sources":["../../src/utils/getHeaderParam.ts"],"names":[],"mappings":";;;AAAA,SAAgB,cAAc,CAAC,OAAO,EAAE,KAAK;IAC3C,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AAC3E,CAAC;AAFD,wCAEC"}
@@ -1 +0,0 @@
1
- export declare function parseQuery(filterDto: any): any;
@@ -1,31 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export declare function projection(allProjectionFieldArray: string[], necessaryProjectionArray: string[]): {};
@@ -1,26 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,9 +0,0 @@
1
- export declare class RedisClient {
2
- private redisClient;
3
- constructor();
4
- private connectToRedis;
5
- getData(key: string): Promise<any>;
6
- getAllKeys(): Promise<any>;
7
- setData(key: string, value: string, validityTime?: number): Promise<any>;
8
- flushAll(): Promise<any>;
9
- }
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RedisClient = void 0;
4
- const redis_1 = require("redis");
5
- class RedisClient {
6
- constructor() {
7
- this.redisClient = redis_1.createClient({
8
- url: process.env.REDIS_URI,
9
- });
10
- }
11
- async connectToRedis() {
12
- try {
13
- await this.redisClient.connect();
14
- }
15
- catch (err) { }
16
- }
17
- async getData(key) {
18
- try {
19
- await this.connectToRedis();
20
- return this.redisClient.get(key);
21
- }
22
- catch (err) {
23
- console.log('REDIS GET DATA ERROR--------', err);
24
- }
25
- }
26
- async getAllKeys() {
27
- try {
28
- await this.connectToRedis();
29
- return this.redisClient.keys('*');
30
- }
31
- catch (err) {
32
- console.log('REDIS GET DATA ERROR--------', err);
33
- }
34
- }
35
- async setData(key, value, validityTime = 10) {
36
- try {
37
- await this.connectToRedis();
38
- return this.redisClient.set(key, value, { EX: validityTime * 60 });
39
- }
40
- catch (err) {
41
- console.log('REDIS SET DATA ERROR--------', err);
42
- }
43
- }
44
- async flushAll() {
45
- try {
46
- await this.connectToRedis();
47
- return this.redisClient.flushall();
48
- }
49
- catch (err) {
50
- console.log('REDIS GET DATA ERROR--------', err);
51
- }
52
- }
53
- }
54
- exports.RedisClient = RedisClient;
55
- //# sourceMappingURL=redis-client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redis-client.js","sourceRoot":"","sources":["../../src/utils/redis-client.ts"],"names":[],"mappings":";;;AAAA,iCAAoC;AAEpC,MAAa,WAAW;IAGtB;QACE,IAAI,CAAC,WAAW,GAAG,oBAAY,CAAC;YAC9B,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;SAC3B,CAAC,CAAA;IACJ,CAAC;IAEO,KAAK,CAAC,cAAc;QAC1B,IAAI;YACF,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAA;SACjC;QAAC,OAAO,GAAG,EAAE,GAAE;IAClB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,GAAW;QACvB,IAAI;YACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAA;YAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;SACjC;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAA;SACjD;IACH,CAAC;IAED,KAAK,CAAC,UAAU;QACd,IAAI;YACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAA;YAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;SAClC;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAA;SACjD;IACH,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,GAAW,EAAE,KAAa,EAAE,YAAY,GAAG,EAAE;QACzD,IAAI;YACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAA;YAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,YAAY,GAAG,EAAE,EAAE,CAAC,CAAA;SACnE;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAA;SACjD;IACH,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,IAAI;YACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAA;YAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAA;SACnC;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAA;SACjD;IACH,CAAC;CACF;AAlDD,kCAkDC"}
@@ -1,29 +0,0 @@
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
- }