@aldb2b/common 1.0.486 → 1.0.487

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 (317) hide show
  1. package/build/db/CustomModel.d.ts +53 -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 +96 -0
  5. package/build/db/MongooseBase.js +451 -0
  6. package/build/db/MongooseBase.js.map +1 -0
  7. package/build/db/MongooseNestedModel.d.ts +10 -0
  8. package/build/db/MongooseNestedModel.js +67 -0
  9. package/build/db/MongooseNestedModel.js.map +1 -0
  10. package/build/db/aggregate/AggregateConvertor.d.ts +72 -0
  11. package/build/db/aggregate/AggregateConvertor.js +211 -0
  12. package/build/db/aggregate/AggregateConvertor.js.map +1 -0
  13. package/build/db/aggregate/createAggregateResponse.d.ts +2 -0
  14. package/build/db/aggregate/createAggregateResponse.js +50 -0
  15. package/build/db/aggregate/createAggregateResponse.js.map +1 -0
  16. package/build/db/mongoose-find-options.d.ts +12 -0
  17. package/build/db/mongoose-find-options.js +68 -0
  18. package/build/db/mongoose-find-options.js.map +1 -0
  19. package/build/db/mongoose-nested-option.d.ts +4 -0
  20. package/build/db/mongoose-nested-option.js +7 -0
  21. package/build/db/mongoose-nested-option.js.map +1 -0
  22. package/build/decorators/get-event-id-decorator.d.ts +1 -0
  23. package/build/decorators/get-event-id-decorator.js +13 -0
  24. package/build/decorators/get-event-id-decorator.js.map +1 -0
  25. package/build/decorators/get-user-decorator.d.ts +1 -0
  26. package/build/decorators/get-user-decorator.js +13 -0
  27. package/build/decorators/get-user-decorator.js.map +1 -0
  28. package/build/elastic/elastic-find-options.d.ts +9 -0
  29. package/build/elastic/elastic-find-options.js +48 -0
  30. package/build/elastic/elastic-find-options.js.map +1 -0
  31. package/build/elastic/elastic-search-index.d.ts +17 -0
  32. package/build/elastic/elastic-search-index.js +43 -0
  33. package/build/elastic/elastic-search-index.js.map +1 -0
  34. package/build/elastic/elastic-sort.interface.d.ts +5 -0
  35. package/build/{events/verification.interface.js → elastic/elastic-sort.interface.js} +1 -1
  36. package/build/elastic/elastic-sort.interface.js.map +1 -0
  37. package/build/enums/elastic-search-action.enum.d.ts +5 -0
  38. package/build/enums/elastic-search-action.enum.js +10 -0
  39. package/build/enums/elastic-search-action.enum.js.map +1 -0
  40. package/build/enums/elastic-sort-order.enum.d.ts +4 -0
  41. package/build/enums/elastic-sort-order.enum.js +9 -0
  42. package/build/enums/elastic-sort-order.enum.js.map +1 -0
  43. package/build/enums/event-profile-status.enum.d.ts +4 -0
  44. package/build/enums/event-profile-status.enum.js +9 -0
  45. package/build/enums/event-profile-status.enum.js.map +1 -0
  46. package/build/events/enums/property-type.enum.d.ts +8 -0
  47. package/build/events/enums/property-type.enum.js +13 -0
  48. package/build/events/enums/property-type.enum.js.map +1 -0
  49. package/build/events/exchanges.d.ts +4 -0
  50. package/build/events/exchanges.js +9 -0
  51. package/build/events/exchanges.js.map +1 -0
  52. package/build/events/{verification.interface.d.ts → get-challenge-by-query.interface.d.ts} +2 -2
  53. package/build/events/get-challenge-by-query.interface.js +3 -0
  54. package/build/events/get-challenge-by-query.interface.js.map +1 -0
  55. package/build/events/queues.d.ts +80 -0
  56. package/build/events/queues.js +85 -0
  57. package/build/events/queues.js.map +1 -0
  58. package/build/events/subjects.d.ts +1 -1
  59. package/build/events/subjects.js +1 -1
  60. package/build/events/subjects.js.map +1 -1
  61. package/build/index.d.ts +1 -1
  62. package/build/index.js +1 -1
  63. package/build/index.js.map +1 -1
  64. package/build/interceptors/custom-exception.handler.d.ts +4 -0
  65. package/build/interceptors/custom-exception.handler.js +11 -0
  66. package/build/interceptors/custom-exception.handler.js.map +1 -0
  67. package/build/interceptors/response-with-code.interceptor.d.ts +6 -0
  68. package/build/interceptors/response-with-code.interceptor.js +32 -0
  69. package/build/interceptors/response-with-code.interceptor.js.map +1 -0
  70. package/build/interceptors/response.interceptor.d.ts +6 -0
  71. package/build/interceptors/response.interceptor.js +31 -0
  72. package/build/interceptors/response.interceptor.js.map +1 -0
  73. package/build/interceptors/serialize.interceptor.d.ts +12 -0
  74. package/build/interceptors/serialize.interceptor.js +25 -0
  75. package/build/interceptors/serialize.interceptor.js.map +1 -0
  76. package/build/middlewares/app.middleware.d.ts +6 -0
  77. package/build/middlewares/app.middleware.js +30 -0
  78. package/build/middlewares/app.middleware.js.map +1 -0
  79. package/build/middlewares/event-status.middleware.d.ts +6 -0
  80. package/build/middlewares/event-status.middleware.js +29 -0
  81. package/build/middlewares/event-status.middleware.js.map +1 -0
  82. package/build/middlewares/inject-filter-to-query-based-on-user-type.middleware.js +45 -0
  83. package/build/middlewares/inject-filter-to-query-based-on-user-type.middleware.js.map +1 -0
  84. package/build/tokens/user-term-token.interface.d.ts +4 -0
  85. package/build/tokens/user-term-token.interface.js +3 -0
  86. package/build/tokens/user-term-token.interface.js.map +1 -0
  87. package/build/tsconfig.tsbuildinfo +1 -1
  88. package/build/types/analytic-group.interface.d.ts +12 -0
  89. package/build/types/analytic-group.interface.js +3 -0
  90. package/build/types/analytic-group.interface.js.map +1 -0
  91. package/build/types/bulk-users.enum.d.ts +5 -0
  92. package/build/types/bulk-users.enum.js +10 -0
  93. package/build/types/bulk-users.enum.js.map +1 -0
  94. package/build/types/calendar-source-type.enum.d.ts +7 -0
  95. package/build/types/calendar-source-type.enum.js +12 -0
  96. package/build/types/calendar-source-type.enum.js.map +1 -0
  97. package/build/types/chat-group.interface.d.ts +4 -0
  98. package/build/types/chat-group.interface.js +3 -0
  99. package/build/types/chat-group.interface.js.map +1 -0
  100. package/build/types/chat-setting.interface.d.ts +6 -0
  101. package/build/types/chat-setting.interface.js +3 -0
  102. package/build/types/chat-setting.interface.js.map +1 -0
  103. package/build/types/default-visibility.interface.d.ts +13 -0
  104. package/build/types/default-visibility.interface.js +3 -0
  105. package/build/types/default-visibility.interface.js.map +1 -0
  106. package/build/types/download-presigned-url.interface.d.ts +4 -0
  107. package/build/types/download-presigned-url.interface.js +3 -0
  108. package/build/types/download-presigned-url.interface.js.map +1 -0
  109. package/build/types/enddpoint.interface.d.ts +10 -0
  110. package/build/types/enddpoint.interface.js +3 -0
  111. package/build/types/enddpoint.interface.js.map +1 -0
  112. package/build/types/endpoint-type.enum.d.ts +5 -0
  113. package/build/types/endpoint-type.enum.js +10 -0
  114. package/build/types/endpoint-type.enum.js.map +1 -0
  115. package/build/types/event-status.enum.d.ts +8 -0
  116. package/build/types/event-status.enum.js +13 -0
  117. package/build/types/event-status.enum.js.map +1 -0
  118. package/build/types/feature-mappings.d.ts +18 -0
  119. package/build/types/feature-mappings.js +29 -0
  120. package/build/types/feature-mappings.js.map +1 -0
  121. package/build/types/feature-type.enum.d.ts +20 -0
  122. package/build/types/feature-type.enum.js +25 -0
  123. package/build/types/feature-type.enum.js.map +1 -0
  124. package/build/types/feature.interface.d.ts +10 -0
  125. package/build/types/feature.interface.js +3 -0
  126. package/build/types/feature.interface.js.map +1 -0
  127. package/build/types/group-visibility.interface.d.ts +13 -0
  128. package/build/types/group-visibility.interface.js +3 -0
  129. package/build/types/group-visibility.interface.js.map +1 -0
  130. package/build/types/header-user.interface.d.ts +13 -0
  131. package/build/types/header-user.interface.js +3 -0
  132. package/build/types/header-user.interface.js.map +1 -0
  133. package/build/types/match-group.interface.d.ts +7 -0
  134. package/build/types/match-group.interface.js +3 -0
  135. package/build/types/match-group.interface.js.map +1 -0
  136. package/build/types/match.interface.d.ts +6 -0
  137. package/build/types/match.interface.js +3 -0
  138. package/build/types/match.interface.js.map +1 -0
  139. package/build/types/meeting-request-token.interface.d.ts +10 -0
  140. package/build/types/meeting-request-token.interface.js +3 -0
  141. package/build/types/meeting-request-token.interface.js.map +1 -0
  142. package/build/types/meeting-setting.interface.d.ts +7 -0
  143. package/build/types/meeting-setting.interface.js +3 -0
  144. package/build/types/meeting-setting.interface.js.map +1 -0
  145. package/build/types/meeting-token.interface.d.ts +8 -0
  146. package/build/types/meeting-token.interface.js +3 -0
  147. package/build/types/meeting-token.interface.js.map +1 -0
  148. package/build/types/meeting-type.enum.d.ts +8 -0
  149. package/build/types/meeting-type.enum.js +13 -0
  150. package/build/types/meeting-type.enum.js.map +1 -0
  151. package/build/types/notification-event.enum.d.ts +25 -0
  152. package/build/types/notification-event.enum.js +30 -0
  153. package/build/types/notification-event.enum.js.map +1 -0
  154. package/build/types/notification-type.enum.d.ts +6 -0
  155. package/build/types/notification-type.enum.js +11 -0
  156. package/build/types/notification-type.enum.js.map +1 -0
  157. package/build/types/notifications-calendar-event.interface.d.ts +5 -0
  158. package/build/types/notifications-calendar-event.interface.js +3 -0
  159. package/build/types/notifications-calendar-event.interface.js.map +1 -0
  160. package/build/types/onboarded-thru.enum.d.ts +13 -0
  161. package/build/types/onboarded-thru.enum.js +18 -0
  162. package/build/types/onboarded-thru.enum.js.map +1 -0
  163. package/build/types/operation-types.d.ts +6 -0
  164. package/build/types/operation-types.js +11 -0
  165. package/build/types/operation-types.js.map +1 -0
  166. package/build/types/payment-method.enum.d.ts +6 -0
  167. package/build/types/payment-method.enum.js +11 -0
  168. package/build/types/payment-method.enum.js.map +1 -0
  169. package/build/types/priority.enum.d.ts +6 -0
  170. package/build/types/priority.enum.js +11 -0
  171. package/build/types/priority.enum.js.map +1 -0
  172. package/build/types/read-result.interface.d.ts +5 -0
  173. package/build/types/read-result.interface.js +3 -0
  174. package/build/types/read-result.interface.js.map +1 -0
  175. package/build/types/record-type.enum.d.ts +21 -0
  176. package/build/types/record-type.enum.js +26 -0
  177. package/build/types/record-type.enum.js.map +1 -0
  178. package/build/types/subscription-model.enum.d.ts +4 -0
  179. package/build/types/subscription-model.enum.js +9 -0
  180. package/build/types/subscription-model.enum.js.map +1 -0
  181. package/build/types/update-input-data.interface.d.ts +16 -0
  182. package/build/types/update-input-data.interface.js +3 -0
  183. package/build/types/update-input-data.interface.js.map +1 -0
  184. package/build/types/upload-presigned-url.interface.d.ts +4 -0
  185. package/build/types/upload-presigned-url.interface.js +3 -0
  186. package/build/types/upload-presigned-url.interface.js.map +1 -0
  187. package/build/types/user-invitations.interface.d.ts +6 -0
  188. package/build/types/user-invitations.interface.js +3 -0
  189. package/build/types/user-invitations.interface.js.map +1 -0
  190. package/build/types/user-language.enum.d.ts +5 -0
  191. package/build/types/user-language.enum.js +10 -0
  192. package/build/types/user-language.enum.js.map +1 -0
  193. package/build/types/user-role.enum.d.ts +9 -0
  194. package/build/types/user-role.enum.js +14 -0
  195. package/build/types/user-role.enum.js.map +1 -0
  196. package/build/types/user-type.enum.d.ts +5 -0
  197. package/build/types/user-type.enum.js +10 -0
  198. package/build/types/user-type.enum.js.map +1 -0
  199. package/build/types/visibility-group.interface.d.ts +6 -0
  200. package/build/types/visibility-group.interface.js +3 -0
  201. package/build/types/visibility-group.interface.js.map +1 -0
  202. package/build/utils/addDaysToDate.d.ts +1 -0
  203. package/build/utils/addDaysToDate.js +10 -0
  204. package/build/utils/addDaysToDate.js.map +1 -0
  205. package/build/utils/addHours.d.ts +1 -0
  206. package/build/utils/addHours.js +9 -0
  207. package/build/utils/addHours.js.map +1 -0
  208. package/build/utils/adjustForTimezone.d.ts +1 -0
  209. package/build/utils/adjustForTimezone.js +10 -0
  210. package/build/utils/adjustForTimezone.js.map +1 -0
  211. package/build/utils/create-default-directories.d.ts +1 -0
  212. package/build/utils/create-default-directories.js +24 -0
  213. package/build/utils/create-default-directories.js.map +1 -0
  214. package/build/utils/encryptor.d.ts +7 -0
  215. package/build/utils/encryptor.js +36 -0
  216. package/build/utils/encryptor.js.map +1 -0
  217. package/build/utils/equal-array-object.d.ts +1 -0
  218. package/build/utils/equal-array-object.js +10 -0
  219. package/build/utils/equal-array-object.js.map +1 -0
  220. package/build/utils/equal-object.d.ts +1 -0
  221. package/build/utils/equal-object.js +9 -0
  222. package/build/utils/equal-object.js.map +1 -0
  223. package/build/utils/get-parsed-query.d.ts +1 -0
  224. package/build/utils/get-parsed-query.js +18 -0
  225. package/build/utils/get-parsed-query.js.map +1 -0
  226. package/build/utils/getEndpoint.d.ts +5 -0
  227. package/build/utils/getEndpoint.js +43 -0
  228. package/build/utils/getEndpoint.js.map +1 -0
  229. package/build/utils/getHeaderParam.d.ts +1 -0
  230. package/build/utils/getHeaderParam.js +8 -0
  231. package/build/utils/getHeaderParam.js.map +1 -0
  232. package/build/utils/parse-query.d.ts +1 -0
  233. package/build/utils/parse-query.js +31 -0
  234. package/build/utils/parse-query.js.map +1 -0
  235. package/build/utils/projection.d.ts +1 -0
  236. package/build/utils/projection.js +26 -0
  237. package/build/utils/projection.js.map +1 -0
  238. package/build/utils/redis-client.d.ts +9 -0
  239. package/build/utils/redis-client.js +55 -0
  240. package/build/utils/redis-client.js.map +1 -0
  241. package/build/utils/rmq/client/rabbitmq.client.d.ts +29 -0
  242. package/build/utils/rmq/client/rabbitmq.client.js +162 -0
  243. package/build/utils/rmq/client/rabbitmq.client.js.map +1 -0
  244. package/build/utils/rmq/constants.d.ts +9 -0
  245. package/build/utils/rmq/constants.js +13 -0
  246. package/build/utils/rmq/constants.js.map +1 -0
  247. package/build/utils/rmq/ctx-host/rmq.context.d.ts +9 -0
  248. package/build/utils/rmq/ctx-host/rmq.context.js +20 -0
  249. package/build/utils/rmq/ctx-host/rmq.context.js.map +1 -0
  250. package/build/utils/rmq/index.d.ts +4 -0
  251. package/build/utils/rmq/index.js +10 -0
  252. package/build/utils/rmq/index.js.map +1 -0
  253. package/build/utils/rmq/interfaces/rmq-options.interfaces.d.ts +79 -0
  254. package/build/utils/rmq/interfaces/rmq-options.interfaces.js +12 -0
  255. package/build/utils/rmq/interfaces/rmq-options.interfaces.js.map +1 -0
  256. package/build/utils/rmq/server/rabbitmq.server.d.ts +19 -0
  257. package/build/utils/rmq/server/rabbitmq.server.js +114 -0
  258. package/build/utils/rmq/server/rabbitmq.server.js.map +1 -0
  259. package/build/utils/timezone.d.ts +2 -0
  260. package/build/utils/timezone.js +15 -0
  261. package/build/utils/timezone.js.map +1 -0
  262. package/build/validators/conditional-required.d.ts +2 -0
  263. package/build/validators/conditional-required.js +24 -0
  264. package/build/validators/conditional-required.js.map +1 -0
  265. package/build/validators/date-validator.d.ts +2 -0
  266. package/build/validators/date-validator.js +21 -0
  267. package/build/validators/date-validator.js.map +1 -0
  268. package/build/validators/responses/customizeArrayResponse.d.ts +3 -0
  269. package/build/validators/responses/customizeArrayResponse.js +24 -0
  270. package/build/validators/responses/customizeArrayResponse.js.map +1 -0
  271. package/build/validators/responses/customizeResult.d.ts +1 -0
  272. package/build/validators/responses/customizeResult.js +12 -0
  273. package/build/validators/responses/customizeResult.js.map +1 -0
  274. package/build/validators/responses/error-with-code.d.ts +2 -0
  275. package/build/validators/responses/error-with-code.interface.d.ts +5 -0
  276. package/build/validators/responses/error-with-code.interface.js +3 -0
  277. package/build/validators/responses/error-with-code.interface.js.map +1 -0
  278. package/build/validators/responses/error-with-code.js +30 -0
  279. package/build/validators/responses/error-with-code.js.map +1 -0
  280. package/build/validators/responses/error.d.ts +2 -0
  281. package/build/validators/responses/error.interface.d.ts +5 -0
  282. package/build/validators/responses/error.interface.js +3 -0
  283. package/build/validators/responses/error.interface.js.map +1 -0
  284. package/build/validators/responses/error.js +30 -0
  285. package/build/validators/responses/error.js.map +1 -0
  286. package/build/validators/responses/response-option.interface.d.ts +7 -0
  287. package/build/validators/responses/response-option.interface.js +3 -0
  288. package/build/validators/responses/response-option.interface.js.map +1 -0
  289. package/build/validators/responses/succes-result.interface.d.ts +10 -0
  290. package/build/validators/responses/succes-result.interface.js +3 -0
  291. package/build/validators/responses/succes-result.interface.js.map +1 -0
  292. package/build/validators/responses/success-with-code.d.ts +3 -0
  293. package/build/validators/responses/success-with-code.interface.d.ts +4 -0
  294. package/build/validators/responses/success-with-code.interface.js +3 -0
  295. package/build/validators/responses/success-with-code.interface.js.map +1 -0
  296. package/build/validators/responses/success-with-code.js +15 -0
  297. package/build/validators/responses/success-with-code.js.map +1 -0
  298. package/build/validators/responses/success.d.ts +3 -0
  299. package/build/validators/responses/success.interface.d.ts +5 -0
  300. package/build/validators/responses/success.interface.js +3 -0
  301. package/build/validators/responses/success.interface.js.map +1 -0
  302. package/build/validators/responses/success.js +22 -0
  303. package/build/validators/responses/success.js.map +1 -0
  304. package/build/validators/validateNewItem.d.ts +1 -0
  305. package/build/validators/validateNewItem.js +23 -0
  306. package/build/validators/validateNewItem.js.map +1 -0
  307. package/build/validators/validateProjection.d.ts +1 -0
  308. package/build/validators/validateProjection.js +33 -0
  309. package/build/validators/validateProjection.js.map +1 -0
  310. package/build/validators/validateProjectionResult.d.ts +1 -0
  311. package/build/validators/validateProjectionResult.js +37 -0
  312. package/build/validators/validateProjectionResult.js.map +1 -0
  313. package/build/validators/validateUpdateItem.d.ts +1 -0
  314. package/build/validators/validateUpdateItem.js +23 -0
  315. package/build/validators/validateUpdateItem.js.map +1 -0
  316. package/package.json +1 -1
  317. package/build/events/verification.interface.js.map +0 -1
@@ -0,0 +1,13 @@
1
+ export declare enum OnboardedThru {
2
+ ON_BOARDING_STATUS = "on-boarding-status",
3
+ CREATE_NEW_USER = "create-new-user",
4
+ ADD_NEW_USER_TO_EVENT = "add-new-user-to-event",
5
+ ADD_EXISTING_USER_TO_EVENT = "add-existing-user-to-event",
6
+ ADD_USER_WITH_ROLE = "add-user-with-role",
7
+ CREATE_NEW_EVENT = "create-new-event",
8
+ CREATE_VENDOR_EVENT = "create-vendor-event",
9
+ JOIN_EVENT = "join-event",
10
+ DEMO_CREATE_USER = "demo-create-user",
11
+ AFTER_CONFIRMATION = "after-confirmation",
12
+ MOVE_CONTACT = "move-contact"
13
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OnboardedThru = void 0;
4
+ var OnboardedThru;
5
+ (function (OnboardedThru) {
6
+ OnboardedThru["ON_BOARDING_STATUS"] = "on-boarding-status";
7
+ OnboardedThru["CREATE_NEW_USER"] = "create-new-user";
8
+ OnboardedThru["ADD_NEW_USER_TO_EVENT"] = "add-new-user-to-event";
9
+ OnboardedThru["ADD_EXISTING_USER_TO_EVENT"] = "add-existing-user-to-event";
10
+ OnboardedThru["ADD_USER_WITH_ROLE"] = "add-user-with-role";
11
+ OnboardedThru["CREATE_NEW_EVENT"] = "create-new-event";
12
+ OnboardedThru["CREATE_VENDOR_EVENT"] = "create-vendor-event";
13
+ OnboardedThru["JOIN_EVENT"] = "join-event";
14
+ OnboardedThru["DEMO_CREATE_USER"] = "demo-create-user";
15
+ OnboardedThru["AFTER_CONFIRMATION"] = "after-confirmation";
16
+ OnboardedThru["MOVE_CONTACT"] = "move-contact";
17
+ })(OnboardedThru || (exports.OnboardedThru = OnboardedThru = {}));
18
+ //# sourceMappingURL=onboarded-thru.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onboarded-thru.enum.js","sourceRoot":"","sources":["../../src/types/onboarded-thru.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,0DAAyC,CAAA;IACzC,oDAAmC,CAAA;IACnC,gEAA+C,CAAA;IAC/C,0EAAyD,CAAA;IACzD,0DAAyC,CAAA;IACzC,sDAAqC,CAAA;IACrC,4DAA2C,CAAA;IAC3C,0CAAyB,CAAA;IACzB,sDAAqC,CAAA;IACrC,0DAAyC,CAAA;IACzC,8CAA6B,CAAA;AAC/B,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB"}
@@ -0,0 +1,6 @@
1
+ export declare enum operationTypes {
2
+ CREATE = "create",
3
+ UPDATE = "update",
4
+ DELETE = "delete",
5
+ CLOSED = "closed"
6
+ }
@@ -0,0 +1,11 @@
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["CLOSED"] = "closed";
10
+ })(operationTypes || (exports.operationTypes = operationTypes = {}));
11
+ //# 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,cAKX;AALD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;AACnB,CAAC,EALW,cAAc,8BAAd,cAAc,QAKzB"}
@@ -0,0 +1,6 @@
1
+ export declare enum PaymentMethod {
2
+ MANUAL = "Manual",
3
+ STRIPE_DIRECT = "StripeDirect",
4
+ STRIPE_FUTURE = "StripeFuture",
5
+ STRIPE_SUBSCRIPTION = "StripeSubscription"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentMethod = void 0;
4
+ var PaymentMethod;
5
+ (function (PaymentMethod) {
6
+ PaymentMethod["MANUAL"] = "Manual";
7
+ PaymentMethod["STRIPE_DIRECT"] = "StripeDirect";
8
+ PaymentMethod["STRIPE_FUTURE"] = "StripeFuture";
9
+ PaymentMethod["STRIPE_SUBSCRIPTION"] = "StripeSubscription";
10
+ })(PaymentMethod || (exports.PaymentMethod = PaymentMethod = {}));
11
+ //# sourceMappingURL=payment-method.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment-method.enum.js","sourceRoot":"","sources":["../../src/types/payment-method.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,+CAA8B,CAAA;IAC9B,+CAA8B,CAAA;IAC9B,2DAA0C,CAAA;AAC5C,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
@@ -0,0 +1,6 @@
1
+ export declare enum PriorityEnum {
2
+ VIP = "VIP",
3
+ HIGH = "High",
4
+ NORMAL = "Normal",
5
+ LOW = "Low"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PriorityEnum = void 0;
4
+ var PriorityEnum;
5
+ (function (PriorityEnum) {
6
+ PriorityEnum["VIP"] = "VIP";
7
+ PriorityEnum["HIGH"] = "High";
8
+ PriorityEnum["NORMAL"] = "Normal";
9
+ PriorityEnum["LOW"] = "Low";
10
+ })(PriorityEnum || (exports.PriorityEnum = PriorityEnum = {}));
11
+ //# sourceMappingURL=priority.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"priority.enum.js","sourceRoot":"","sources":["../../src/types/priority.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,2BAAW,CAAA;AACb,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
@@ -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,21 @@
1
+ export declare enum RecordType {
2
+ COMPANY = "Company",
3
+ CONTACT = "Contact",
4
+ MEETING = "Meeting",
5
+ MEETING_REQUEST = "MeetingRequest",
6
+ PRODUCT = "Product",
7
+ SERVICE = "Service",
8
+ RFQ = "RFQ",
9
+ QUOTATION = "Quotation",
10
+ SHARED_LIST = "SharedList",
11
+ WISH_LIST = "WishList",
12
+ SURVEY = "Survey",
13
+ REMINDER = "Reminder",
14
+ MEETING_AGENDA = "MeetingAgenda",
15
+ USER = "User",
16
+ NOTIFICATION = "Notification",
17
+ REGRESSION = "Regression",
18
+ ORDER = "Order",
19
+ SESSION = "Session",
20
+ MATCH_LIST = "MatchList"
21
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RecordType = void 0;
4
+ var RecordType;
5
+ (function (RecordType) {
6
+ RecordType["COMPANY"] = "Company";
7
+ RecordType["CONTACT"] = "Contact";
8
+ RecordType["MEETING"] = "Meeting";
9
+ RecordType["MEETING_REQUEST"] = "MeetingRequest";
10
+ RecordType["PRODUCT"] = "Product";
11
+ RecordType["SERVICE"] = "Service";
12
+ RecordType["RFQ"] = "RFQ";
13
+ RecordType["QUOTATION"] = "Quotation";
14
+ RecordType["SHARED_LIST"] = "SharedList";
15
+ RecordType["WISH_LIST"] = "WishList";
16
+ RecordType["SURVEY"] = "Survey";
17
+ RecordType["REMINDER"] = "Reminder";
18
+ RecordType["MEETING_AGENDA"] = "MeetingAgenda";
19
+ RecordType["USER"] = "User";
20
+ RecordType["NOTIFICATION"] = "Notification";
21
+ RecordType["REGRESSION"] = "Regression";
22
+ RecordType["ORDER"] = "Order";
23
+ RecordType["SESSION"] = "Session";
24
+ RecordType["MATCH_LIST"] = "MatchList";
25
+ })(RecordType || (exports.RecordType = RecordType = {}));
26
+ //# sourceMappingURL=record-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-type.enum.js","sourceRoot":"","sources":["../../src/types/record-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAoBX;AApBD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,gDAAkC,CAAA;IAClC,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,yBAAW,CAAA;IACX,qCAAuB,CAAA;IACvB,wCAA0B,CAAA;IAC1B,oCAAsB,CAAA;IACtB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,8CAAgC,CAAA;IAChC,2BAAa,CAAA;IACb,2CAA6B,CAAA;IAC7B,uCAAyB,CAAA;IACzB,6BAAe,CAAA;IACf,iCAAmB,CAAA;IACnB,sCAAwB,CAAA;AAC1B,CAAC,EApBW,UAAU,0BAAV,UAAU,QAoBrB"}
@@ -0,0 +1,4 @@
1
+ export declare enum SubscriptionModel {
2
+ EVENT = "Event",
3
+ COMPANY = "Company"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubscriptionModel = void 0;
4
+ var SubscriptionModel;
5
+ (function (SubscriptionModel) {
6
+ SubscriptionModel["EVENT"] = "Event";
7
+ SubscriptionModel["COMPANY"] = "Company";
8
+ })(SubscriptionModel || (exports.SubscriptionModel = SubscriptionModel = {}));
9
+ //# sourceMappingURL=subscription-model.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscription-model.enum.js","sourceRoot":"","sources":["../../src/types/subscription-model.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,wCAAmB,CAAA;AACrB,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
@@ -0,0 +1,16 @@
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
+ options?: {
12
+ before?: boolean;
13
+ after?: boolean;
14
+ payload?: boolean;
15
+ };
16
+ }
@@ -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,5 @@
1
+ export declare enum UserLanguage {
2
+ ENGLISH = "en",
3
+ ARABIC = "ar",
4
+ FRENCH = "fr"
5
+ }
@@ -0,0 +1,10 @@
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 = UserLanguage = {}));
10
+ //# sourceMappingURL=user-language.enum.js.map
@@ -0,0 +1 @@
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,4BAAZ,YAAY,QAIvB"}
@@ -0,0 +1,9 @@
1
+ export declare enum UserRole {
2
+ ADMIN = "Admin",
3
+ MANAGER = "Manager",
4
+ OPERATION = "Operation",
5
+ ONGROUND = "Onground",
6
+ USER = "User",
7
+ EDITOR = "Editor",
8
+ VIEWER = "Viewer"
9
+ }
@@ -0,0 +1,14 @@
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["VIEWER"] = "Viewer";
13
+ })(UserRole || (exports.UserRole = UserRole = {}));
14
+ //# 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,QAQX;AARD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;AACnB,CAAC,EARW,QAAQ,wBAAR,QAAQ,QAQnB"}
@@ -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 = 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,wBAAR,QAAQ,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 function addDaysToDate(date: Date, days: number): Date;
@@ -0,0 +1,10 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
1
+ export declare function addHours(hours: number, date: Date): Date;
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
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"}
@@ -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,CAAC;QACrC,EAAE,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;IAChC,CAAC;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,CAAC;gBAC/B,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;YAC1B,CAAC;YAED,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;gBACxB,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;YACvC,CAAC;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,7 @@
1
+ import { RecordType } from '../types/record-type.enum';
2
+ export declare class Encryptor<T> {
3
+ private cryptr;
4
+ constructor(tokenSerializer: string);
5
+ encrypt(data: T): any;
6
+ decrypt(token: string, moduleType?: RecordType): T;
7
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Encryptor = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const Cryptr = require('cryptr');
15
+ let Encryptor = class Encryptor {
16
+ constructor(tokenSerializer) {
17
+ this.cryptr = new Cryptr(tokenSerializer);
18
+ }
19
+ encrypt(data) {
20
+ return this.cryptr.encrypt(JSON.stringify(data));
21
+ }
22
+ decrypt(token, moduleType) {
23
+ try {
24
+ return JSON.parse(this.cryptr.decrypt(token));
25
+ }
26
+ catch (err) {
27
+ throw new common_1.BadRequestException('Invalid token');
28
+ }
29
+ }
30
+ };
31
+ exports.Encryptor = Encryptor;
32
+ exports.Encryptor = Encryptor = __decorate([
33
+ (0, common_1.Injectable)(),
34
+ __metadata("design:paramtypes", [String])
35
+ ], Encryptor);
36
+ //# sourceMappingURL=encryptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encryptor.js","sourceRoot":"","sources":["../../src/utils/encryptor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAgE;AAIhE,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;AAGzB,IAAM,SAAS,GAAf,MAAM,SAAS;IAEpB,YAAY,eAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,eAAe,CAAC,CAAA;IAC3C,CAAC;IAED,OAAO,CAAC,IAAO;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;IAClD,CAAC;IAED,OAAO,CAAC,KAAa,EAAE,UAAuB;QAC5C,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAQ,CAAA;QACtD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,IAAI,4BAAmB,CAAC,eAAe,CAAC,CAAA;QAChD,CAAC;IACH,CAAC;CACF,CAAA;AAjBY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;;GACA,SAAS,CAiBrB"}
@@ -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) => (0, 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,IAAA,0BAAW,EAAC,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,CAAC;QACpB,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;QACpC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,SAAS,CAAC,KAAK,CAAA;QACxB,CAAC;IACH,CAAC;SAAM,CAAC;QACN,OAAO,EAAE,CAAA;IACX,CAAC;AACH,CAAC;AAVD,wCAUC"}
@@ -0,0 +1,5 @@
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
+ };
@@ -0,0 +1,43 @@
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
@@ -0,0 +1 @@
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,CAAC;YACjB,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,CAAC;gBACb,eAAe,GAAG,QAAQ,CAAC;gBAC3B,OAAO,OAAO,CAAC;YACjB,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC;IAChD,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,IAAI,2BAAkB,CAAC;YAC3B,UAAU,EAAE,GAAG;YACf,OAAO,EAAE,mBAAmB;YAC5B,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,kCAAkC;SAChD,CAAC,CAAC;IACL,CAAC;IAED,IAAI,cAAc,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;QACtC,MAAM,IAAI,2BAAkB,CAAC;YAC3B,UAAU,EAAE,GAAG;YACf,OAAO,EAAE,kBAAkB;YAC3B,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,kCAAkC;SAChD,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AAChE,CAAC;AAxCD,kCAwCC"}
@@ -0,0 +1 @@
1
+ export declare function getHeaderParam(headers: any, param: any): string;