@miguelmorales13/nestkit 0.25.0 → 0.28.0

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 (281) hide show
  1. package/README.md +5 -0
  2. package/dist/alerts/alert-on-failure.decorator.d.ts +5 -0
  3. package/dist/alerts/alert-sinks.d.ts +29 -0
  4. package/dist/alerts/alerts.module.d.ts +19 -0
  5. package/dist/alerts/alerts.options.d.ts +1 -0
  6. package/dist/alerts/alerts.service.d.ts +28 -0
  7. package/dist/alerts/alerts.types.d.ts +66 -0
  8. package/dist/alerts/index.cjs +276 -0
  9. package/dist/alerts/index.d.ts +10 -0
  10. package/dist/alerts/index.js +276 -0
  11. package/dist/alerts/logger-with-alerts.d.ts +18 -0
  12. package/dist/alerts/process-guards.d.ts +21 -0
  13. package/dist/alerts/runtime.d.ts +4 -0
  14. package/dist/audit/index.cjs +13 -13
  15. package/dist/audit/index.js +2 -2
  16. package/dist/auth/index.cjs +21 -21
  17. package/dist/auth/index.js +3 -3
  18. package/dist/auth/oauth/index.cjs +123 -115
  19. package/dist/auth/oauth/index.js +25 -17
  20. package/dist/auth/oauth/oauth-provider.d.ts +9 -0
  21. package/dist/auth/oauth/providers/apple.d.ts +3 -1
  22. package/dist/bootstrap/apply-defaults.d.ts +9 -0
  23. package/dist/bootstrap/index.cjs +6 -5
  24. package/dist/bootstrap/index.js +5 -4
  25. package/dist/chunk-3TUMVLPJ.js +14 -0
  26. package/dist/{chunk-PA24P76K.js → chunk-45SW7FBE.js} +1 -1
  27. package/dist/{chunk-RF75KC63.cjs → chunk-47IYXZHW.cjs} +2 -2
  28. package/dist/{chunk-TUNDBBQF.js → chunk-4WWOKZIO.js} +4 -4
  29. package/dist/{chunk-A2DGK4ZL.js → chunk-5LVGCTJ3.js} +1 -1
  30. package/dist/chunk-A6YGIZCQ.cjs +14 -0
  31. package/dist/chunk-A7FI6HXV.js +40 -0
  32. package/dist/chunk-CU4FUIVJ.cjs +8 -0
  33. package/dist/{chunk-FH5UNWWW.cjs → chunk-D35TBVRO.cjs} +4 -4
  34. package/dist/{chunk-4MGIQFAJ.js → chunk-D3DDJWUD.js} +5 -0
  35. package/dist/chunk-DVGPEBUL.js +8 -0
  36. package/dist/{chunk-VKOPDDCC.js → chunk-ENZ7LQRE.js} +1 -1
  37. package/dist/{chunk-3AUOOEQO.cjs → chunk-F77X4QUN.cjs} +2 -2
  38. package/dist/chunk-FBNV5X6C.js +61 -0
  39. package/dist/{chunk-APUFKA4K.cjs → chunk-FDZQCLLK.cjs} +6 -6
  40. package/dist/{chunk-DYHSOULW.js → chunk-IGSNB5BX.js} +1 -1
  41. package/dist/chunk-IVWPA6QH.cjs +90 -0
  42. package/dist/{chunk-MSTXS3MU.cjs → chunk-JJKGQNGD.cjs} +2 -2
  43. package/dist/{chunk-FNUZGYUF.cjs → chunk-JRFE7NSO.cjs} +12 -4
  44. package/dist/{chunk-HVHYZXBB.cjs → chunk-KNU5RN3O.cjs} +3 -3
  45. package/dist/{chunk-52IOOHNX.cjs → chunk-KQPJCVN3.cjs} +26 -26
  46. package/dist/chunk-LGFHLAY3.cjs +61 -0
  47. package/dist/{chunk-2REOCMUD.cjs → chunk-LRX7AMSS.cjs} +6 -1
  48. package/dist/{chunk-4PFAKLT3.js → chunk-MUWHGBIB.js} +1 -1
  49. package/dist/{chunk-ZJMLEP5H.js → chunk-NJYLQDB3.js} +1 -1
  50. package/dist/{chunk-IFNYRZP2.js → chunk-OSRH6KYZ.js} +4 -4
  51. package/dist/{chunk-6RAPVLJM.js → chunk-OTE77ONL.js} +1 -1
  52. package/dist/chunk-UDACUMLO.cjs +40 -0
  53. package/dist/{chunk-UNEVXCFW.js → chunk-UGAAJRPO.js} +10 -2
  54. package/dist/{chunk-SPTDXUED.cjs → chunk-URLDTS2Q.cjs} +2 -2
  55. package/dist/{chunk-W2T2VFLC.cjs → chunk-VALDHJOO.cjs} +5 -5
  56. package/dist/chunk-WFCQDOSN.js +90 -0
  57. package/dist/consent/consent.interceptor.d.ts +20 -0
  58. package/dist/consent/consent.module.d.ts +25 -0
  59. package/dist/consent/consent.options.d.ts +30 -0
  60. package/dist/consent/consent.port.d.ts +17 -0
  61. package/dist/consent/consent.service.d.ts +44 -0
  62. package/dist/consent/guard/index.cjs +13 -0
  63. package/dist/consent/guard/index.d.ts +31 -0
  64. package/dist/consent/guard/index.js +13 -0
  65. package/dist/consent/index.cjs +271 -0
  66. package/dist/consent/index.d.ts +13 -0
  67. package/dist/consent/index.js +271 -0
  68. package/dist/consent/memory.store.d.ts +7 -0
  69. package/dist/consent/shared/index.cjs +11 -0
  70. package/dist/consent/shared/index.d.ts +19 -0
  71. package/dist/consent/shared/index.js +11 -0
  72. package/dist/consent/typeorm.store.d.ts +22 -0
  73. package/dist/crud/index.cjs +4 -4
  74. package/dist/crud/index.js +3 -3
  75. package/dist/database/postgres/index.cjs +3 -3
  76. package/dist/database/postgres/index.js +2 -2
  77. package/dist/database/supabase/index.cjs +3 -3
  78. package/dist/database/supabase/index.js +2 -2
  79. package/dist/database/typeorm/index.cjs +2 -2
  80. package/dist/database/typeorm/index.js +1 -1
  81. package/dist/devices/device-check.interceptor.d.ts +20 -0
  82. package/dist/devices/devices.module.d.ts +28 -0
  83. package/dist/devices/devices.options.d.ts +53 -0
  84. package/dist/devices/devices.port.d.ts +62 -0
  85. package/dist/devices/devices.service.d.ts +58 -0
  86. package/dist/devices/index.cjs +327 -0
  87. package/dist/devices/index.d.ts +8 -0
  88. package/dist/devices/index.js +327 -0
  89. package/dist/devices/memory.store.d.ts +12 -0
  90. package/dist/email/index.cjs +2 -2
  91. package/dist/email/index.js +1 -1
  92. package/dist/email/nodemailer/index.cjs +2 -2
  93. package/dist/email/nodemailer/index.js +1 -1
  94. package/dist/email/resend/index.cjs +2 -2
  95. package/dist/email/resend/index.js +1 -1
  96. package/dist/entities/index.cjs +1 -1
  97. package/dist/entities/index.js +1 -1
  98. package/dist/errors/index.cjs +7 -7
  99. package/dist/errors/index.js +7 -7
  100. package/dist/events/buses.d.ts +27 -0
  101. package/dist/events/events.controller.d.ts +15 -0
  102. package/dist/events/events.module.d.ts +29 -0
  103. package/dist/events/events.options.d.ts +50 -0
  104. package/dist/events/events.service.d.ts +49 -0
  105. package/dist/events/events.types.d.ts +77 -0
  106. package/dist/events/index.cjs +557 -0
  107. package/dist/events/index.d.ts +10 -0
  108. package/dist/events/index.js +557 -0
  109. package/dist/events/memory-ticket.store.d.ts +9 -0
  110. package/dist/google-business/google-business-http.d.ts +41 -0
  111. package/dist/google-business/google-business.errors.d.ts +75 -0
  112. package/dist/google-business/google-business.mappers.d.ts +52 -0
  113. package/dist/google-business/google-business.module.d.ts +26 -0
  114. package/dist/google-business/google-business.options.d.ts +40 -0
  115. package/dist/google-business/google-business.ports.d.ts +18 -0
  116. package/dist/google-business/google-business.service.d.ts +120 -0
  117. package/dist/google-business/google-business.types.d.ts +155 -0
  118. package/dist/google-business/index.cjs +1025 -0
  119. package/dist/google-business/index.d.ts +15 -0
  120. package/dist/google-business/index.js +1025 -0
  121. package/dist/google-business/testing/google-simulator.d.ts +61 -0
  122. package/dist/hardening/body-limits.d.ts +24 -0
  123. package/dist/hardening/http.types.d.ts +26 -0
  124. package/dist/hardening/index.cjs +179 -0
  125. package/dist/hardening/index.d.ts +19 -0
  126. package/dist/hardening/index.js +179 -0
  127. package/dist/hardening/memory-rate-limit.store.d.ts +10 -0
  128. package/dist/hardening/origin-secret.d.ts +29 -0
  129. package/dist/hardening/rate-limit.decorator.d.ts +8 -0
  130. package/dist/hardening/rate-limit.guard.d.ts +18 -0
  131. package/dist/hardening/rate-limit.module.d.ts +23 -0
  132. package/dist/hardening/rate-limit.options.d.ts +35 -0
  133. package/dist/hardening/rate-limit.port.d.ts +11 -0
  134. package/dist/hardening/redis-rate-limit.store.d.ts +23 -0
  135. package/dist/hardening/trust-proxy.d.ts +22 -0
  136. package/dist/health/health.controller.d.ts +32 -0
  137. package/dist/health/health.module.d.ts +15 -0
  138. package/dist/health/health.options.d.ts +24 -0
  139. package/dist/health/index.cjs +103 -0
  140. package/dist/health/index.d.ts +5 -0
  141. package/dist/health/index.js +103 -0
  142. package/dist/i18n/index.cjs +3 -3
  143. package/dist/i18n/index.js +2 -2
  144. package/dist/idempotency/idempotency.interceptor.d.ts +1 -0
  145. package/dist/idempotency/idempotency.options.d.ts +15 -0
  146. package/dist/idempotency/index.cjs +214 -7
  147. package/dist/idempotency/index.d.ts +5 -0
  148. package/dist/idempotency/index.js +210 -3
  149. package/dist/idempotency/no-idempotency.decorator.d.ts +8 -0
  150. package/dist/idempotency/postgres.store.d.ts +49 -0
  151. package/dist/idempotency/redis.store.d.ts +59 -0
  152. package/dist/index.cjs +21 -20
  153. package/dist/index.js +31 -30
  154. package/dist/invoicing/index.cjs +2 -2
  155. package/dist/invoicing/index.js +1 -1
  156. package/dist/jobs/defer-job.d.ts +10 -0
  157. package/dist/jobs/index.cjs +318 -0
  158. package/dist/jobs/index.d.ts +8 -0
  159. package/dist/jobs/index.js +318 -0
  160. package/dist/jobs/jobs-admin.controller.d.ts +18 -0
  161. package/dist/jobs/jobs.module.d.ts +33 -0
  162. package/dist/jobs/jobs.options.d.ts +62 -0
  163. package/dist/jobs/jobs.service.d.ts +53 -0
  164. package/dist/jobs/jobs.sql.d.ts +11 -0
  165. package/dist/media/index.cjs +14 -14
  166. package/dist/media/index.js +1 -1
  167. package/dist/meta/index.cjs +3 -3
  168. package/dist/meta/index.js +1 -1
  169. package/dist/notifications/index.cjs +375 -0
  170. package/dist/notifications/index.d.ts +8 -0
  171. package/dist/notifications/index.js +375 -0
  172. package/dist/notifications/memory.stores.d.ts +23 -0
  173. package/dist/notifications/notifications.controller.d.ts +11 -0
  174. package/dist/notifications/notifications.module.d.ts +31 -0
  175. package/dist/notifications/notifications.options.d.ts +33 -0
  176. package/dist/notifications/notifications.port.d.ts +97 -0
  177. package/dist/notifications/notifier.service.d.ts +31 -0
  178. package/dist/payments/index.cjs +7 -7
  179. package/dist/payments/index.js +1 -1
  180. package/dist/pinterest/index.cjs +3 -3
  181. package/dist/pinterest/index.js +1 -1
  182. package/dist/privacy/anonymizer.d.ts +14 -0
  183. package/dist/privacy/index.cjs +768 -0
  184. package/dist/privacy/index.d.ts +13 -0
  185. package/dist/privacy/index.js +768 -0
  186. package/dist/privacy/memory.store.d.ts +15 -0
  187. package/dist/privacy/privacy.module.d.ts +30 -0
  188. package/dist/privacy/privacy.options.d.ts +43 -0
  189. package/dist/privacy/privacy.port.d.ts +25 -0
  190. package/dist/privacy/privacy.service.d.ts +69 -0
  191. package/dist/privacy/privacy.types.d.ts +125 -0
  192. package/dist/privacy/sql.d.ts +7 -0
  193. package/dist/privacy/sql.store.d.ts +21 -0
  194. package/dist/privacy/zip.d.ts +23 -0
  195. package/dist/push/index.cjs +13 -13
  196. package/dist/push/index.js +5 -5
  197. package/dist/resilience/alert-channels.d.ts +39 -0
  198. package/dist/resilience/alert-errors.interceptor.d.ts +10 -0
  199. package/dist/resilience/alert-on-failure.decorator.d.ts +10 -0
  200. package/dist/resilience/alert.service.d.ts +77 -0
  201. package/dist/resilience/index.cjs +863 -0
  202. package/dist/resilience/index.d.ts +18 -0
  203. package/dist/resilience/index.js +863 -0
  204. package/dist/resilience/memory-alert-store.d.ts +26 -0
  205. package/dist/resilience/provider-health.controller.d.ts +14 -0
  206. package/dist/resilience/provider-unavailable.exception.d.ts +11 -0
  207. package/dist/resilience/resilience.module.d.ts +34 -0
  208. package/dist/resilience/resilience.options.d.ts +28 -0
  209. package/dist/resilience/resilience.types.d.ts +167 -0
  210. package/dist/resilience/resilient-fetch.d.ts +38 -0
  211. package/dist/resilience/runtime.d.ts +24 -0
  212. package/dist/resilience/typeorm/alert.entity.d.ts +21 -0
  213. package/dist/resilience/typeorm/index.cjs +102 -0
  214. package/dist/resilience/typeorm/index.d.ts +3 -0
  215. package/dist/resilience/typeorm/index.js +102 -0
  216. package/dist/resilience/typeorm/typeorm-alert-store.d.ts +39 -0
  217. package/dist/resilience/validate-destination.d.ts +63 -0
  218. package/dist/response/index.cjs +3 -3
  219. package/dist/response/index.js +2 -2
  220. package/dist/scheduling/cron-lock.service.d.ts +36 -0
  221. package/dist/scheduling/cron-unico.decorator.d.ts +27 -0
  222. package/dist/scheduling/fallback.store.d.ts +34 -0
  223. package/dist/scheduling/index.cjs +392 -0
  224. package/dist/scheduling/index.d.ts +18 -0
  225. package/dist/scheduling/index.js +392 -0
  226. package/dist/scheduling/lock-store.port.d.ts +19 -0
  227. package/dist/scheduling/memory.store.d.ts +15 -0
  228. package/dist/scheduling/redis.module.d.ts +31 -0
  229. package/dist/scheduling/redis.store.d.ts +24 -0
  230. package/dist/scheduling/scheduling.module.d.ts +24 -0
  231. package/dist/scheduling/scheduling.options.d.ts +27 -0
  232. package/dist/scheduling/sql.store.d.ts +26 -0
  233. package/dist/secrets/index.cjs +274 -0
  234. package/dist/secrets/index.d.ts +8 -0
  235. package/dist/secrets/index.js +274 -0
  236. package/dist/secrets/secrets.errors.d.ts +6 -0
  237. package/dist/secrets/secrets.module.d.ts +21 -0
  238. package/dist/secrets/secrets.options.d.ts +32 -0
  239. package/dist/secrets/secrets.service.d.ts +54 -0
  240. package/dist/secrets/secrets.transformer.d.ts +33 -0
  241. package/dist/security/hash.d.ts +8 -0
  242. package/dist/security/index.cjs +119 -2
  243. package/dist/security/index.d.ts +5 -0
  244. package/dist/security/index.js +119 -2
  245. package/dist/security/mask.d.ts +22 -0
  246. package/dist/security/signed-grant.d.ts +30 -0
  247. package/dist/storage/index.cjs +2 -2
  248. package/dist/storage/index.js +1 -1
  249. package/dist/stripe/index.cjs +7 -7
  250. package/dist/stripe/index.js +1 -1
  251. package/dist/telegram/index.cjs +2 -2
  252. package/dist/telegram/index.js +1 -1
  253. package/dist/tenancy/app-role.d.ts +24 -0
  254. package/dist/tenancy/db-helpers.d.ts +12 -0
  255. package/dist/tenancy/index.cjs +205 -0
  256. package/dist/tenancy/index.d.ts +14 -0
  257. package/dist/tenancy/index.js +205 -0
  258. package/dist/tenancy/pg/index.cjs +34 -0
  259. package/dist/tenancy/pg/index.d.ts +2 -0
  260. package/dist/tenancy/pg/index.js +34 -0
  261. package/dist/tenancy/pg/with-tenant.d.ts +23 -0
  262. package/dist/tenancy/request-context.d.ts +18 -0
  263. package/dist/tenancy/rls-guardrail.d.ts +38 -0
  264. package/dist/tenancy/scope.d.ts +5 -0
  265. package/dist/tenancy/tenancy.errors.d.ts +5 -0
  266. package/dist/tenancy/tenancy.middleware.d.ts +8 -0
  267. package/dist/tenancy/tenancy.module.d.ts +37 -0
  268. package/dist/tenancy/tenancy.options.d.ts +34 -0
  269. package/dist/tenancy/typeorm/index.cjs +41 -0
  270. package/dist/tenancy/typeorm/index.d.ts +2 -0
  271. package/dist/tenancy/typeorm/index.js +41 -0
  272. package/dist/tenancy/typeorm/with-tenant.d.ts +23 -0
  273. package/dist/tiktok/index.cjs +3 -3
  274. package/dist/tiktok/index.js +1 -1
  275. package/dist/tracking/index.cjs +3 -3
  276. package/dist/tracking/index.js +2 -2
  277. package/dist/umami/index.cjs +4 -4
  278. package/dist/umami/index.js +1 -1
  279. package/dist/whatsapp/index.cjs +2 -2
  280. package/dist/whatsapp/index.js +1 -1
  281. package/package.json +107 -2
@@ -0,0 +1,41 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkLGFHLAY3cjs = require('../../chunk-LGFHLAY3.cjs');
4
+ require('../../chunk-LRX7AMSS.cjs');
5
+
6
+ // src/tenancy/typeorm/with-tenant.ts
7
+ async function run(ds, isolation, scope, fn, options) {
8
+ const runner = ds.createQueryRunner();
9
+ await runner.connect();
10
+ try {
11
+ await runner.startTransaction(isolation);
12
+ } catch (error) {
13
+ await runner.release();
14
+ throw error;
15
+ }
16
+ try {
17
+ if (isolation) await runner.query("SET TRANSACTION READ ONLY");
18
+ await _chunkLGFHLAY3cjs.applyScope.call(void 0, (sql, params) => runner.query(sql, params), scope, options);
19
+ const result = await fn(runner.manager);
20
+ await runner.commitTransaction();
21
+ return result;
22
+ } catch (error) {
23
+ try {
24
+ await runner.rollbackTransaction();
25
+ } catch (e) {
26
+ }
27
+ throw error;
28
+ } finally {
29
+ await runner.release();
30
+ }
31
+ }
32
+ function withTenant(ds, scope, fn, options) {
33
+ return run(ds, void 0, scope, fn, options);
34
+ }
35
+ function withTenantSnapshot(ds, scope, fn, options) {
36
+ return run(ds, "REPEATABLE READ", scope, fn, options);
37
+ }
38
+
39
+
40
+
41
+ exports.withTenant = withTenant; exports.withTenantSnapshot = withTenantSnapshot;
@@ -0,0 +1,2 @@
1
+ export { withTenant, withTenantSnapshot } from './with-tenant.js';
2
+ export type { DataSourceLike, QueryRunnerLike } from './with-tenant.js';
@@ -0,0 +1,41 @@
1
+ import {
2
+ applyScope
3
+ } from "../../chunk-FBNV5X6C.js";
4
+ import "../../chunk-D3DDJWUD.js";
5
+
6
+ // src/tenancy/typeorm/with-tenant.ts
7
+ async function run(ds, isolation, scope, fn, options) {
8
+ const runner = ds.createQueryRunner();
9
+ await runner.connect();
10
+ try {
11
+ await runner.startTransaction(isolation);
12
+ } catch (error) {
13
+ await runner.release();
14
+ throw error;
15
+ }
16
+ try {
17
+ if (isolation) await runner.query("SET TRANSACTION READ ONLY");
18
+ await applyScope((sql, params) => runner.query(sql, params), scope, options);
19
+ const result = await fn(runner.manager);
20
+ await runner.commitTransaction();
21
+ return result;
22
+ } catch (error) {
23
+ try {
24
+ await runner.rollbackTransaction();
25
+ } catch {
26
+ }
27
+ throw error;
28
+ } finally {
29
+ await runner.release();
30
+ }
31
+ }
32
+ function withTenant(ds, scope, fn, options) {
33
+ return run(ds, void 0, scope, fn, options);
34
+ }
35
+ function withTenantSnapshot(ds, scope, fn, options) {
36
+ return run(ds, "REPEATABLE READ", scope, fn, options);
37
+ }
38
+ export {
39
+ withTenant,
40
+ withTenantSnapshot
41
+ };
@@ -0,0 +1,23 @@
1
+ import type { ScopeOptions, TenantScope } from '../tenancy.options.js';
2
+ /** Structural `EntityManager`: the caller gets their real one back through the generic. */
3
+ export interface QueryRunnerLike<M = any> {
4
+ manager: M;
5
+ connect(): Promise<unknown>;
6
+ startTransaction(isolationLevel?: string): Promise<void>;
7
+ commitTransaction(): Promise<void>;
8
+ rollbackTransaction(): Promise<void>;
9
+ release(): Promise<void>;
10
+ query(sql: string, params?: any[]): Promise<unknown>;
11
+ }
12
+ /** Structural `DataSource`. */
13
+ export interface DataSourceLike<M = any> {
14
+ createQueryRunner(): QueryRunnerLike<M>;
15
+ }
16
+ /**
17
+ * TypeORM flavour. Same contract as `database/typeorm#withTenantScope` but takes `{tenantId,
18
+ * actorId}` + GUC names instead of a free-form map, and fails closed without a tenant. The manager
19
+ * handed to `fn` is bound to that one connection/transaction: never leak it past the callback.
20
+ */
21
+ export declare function withTenant<T, M = any>(ds: DataSourceLike<M>, scope: TenantScope, fn: (manager: M) => Promise<T>, options?: ScopeOptions): Promise<T>;
22
+ /** Read-only `REPEATABLE READ` snapshot (see the `pg` flavour). */
23
+ export declare function withTenantSnapshot<T, M = any>(ds: DataSourceLike<M>, scope: TenantScope, fn: (manager: M) => Promise<T>, options?: ScopeOptions): Promise<T>;
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk2REOCMUDcjs = require('../chunk-2REOCMUD.cjs');
3
+ var _chunkLRX7AMSScjs = require('../chunk-LRX7AMSS.cjs');
4
4
 
5
5
  // src/tiktok/tiktok.service.ts
6
6
  var _common = require('@nestjs/common');
@@ -126,7 +126,7 @@ var TikTokService = class {
126
126
  return json.data;
127
127
  }
128
128
  };
129
- TikTokService = exports.TikTokService = _chunk2REOCMUDcjs.__decorateClass.call(void 0, [
129
+ TikTokService = exports.TikTokService = _chunkLRX7AMSScjs.__decorateClass.call(void 0, [
130
130
  _common.Injectable.call(void 0, )
131
131
  ], TikTokService);
132
132
 
@@ -156,7 +156,7 @@ var TikTokModule = class {
156
156
  };
157
157
  }
158
158
  };
159
- TikTokModule = exports.TikTokModule = _chunk2REOCMUDcjs.__decorateClass.call(void 0, [
159
+ TikTokModule = exports.TikTokModule = _chunkLRX7AMSScjs.__decorateClass.call(void 0, [
160
160
  _common.Module.call(void 0, {})
161
161
  ], TikTokModule);
162
162
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __decorateClass
3
- } from "../chunk-4MGIQFAJ.js";
3
+ } from "../chunk-D3DDJWUD.js";
4
4
 
5
5
  // src/tiktok/tiktok.service.ts
6
6
  import { Injectable } from "@nestjs/common";
@@ -2,14 +2,14 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkHVHYZXBBcjs = require('../chunk-HVHYZXBB.cjs');
5
+ var _chunkKNU5RN3Ocjs = require('../chunk-KNU5RN3O.cjs');
6
6
 
7
7
 
8
8
  var _chunkSDWHKPXIcjs = require('../chunk-SDWHKPXI.cjs');
9
- require('../chunk-2REOCMUD.cjs');
9
+ require('../chunk-LRX7AMSS.cjs');
10
10
 
11
11
 
12
12
 
13
13
 
14
14
 
15
- exports.REQUEST_ID_HEADER = _chunkHVHYZXBBcjs.REQUEST_ID_HEADER; exports.RequestContext = _chunkSDWHKPXIcjs.RequestContext; exports.RequestIdMiddleware = _chunkHVHYZXBBcjs.RequestIdMiddleware; exports.TrackingModule = _chunkHVHYZXBBcjs.TrackingModule;
15
+ exports.REQUEST_ID_HEADER = _chunkKNU5RN3Ocjs.REQUEST_ID_HEADER; exports.RequestContext = _chunkSDWHKPXIcjs.RequestContext; exports.RequestIdMiddleware = _chunkKNU5RN3Ocjs.RequestIdMiddleware; exports.TrackingModule = _chunkKNU5RN3Ocjs.TrackingModule;
@@ -2,11 +2,11 @@ import {
2
2
  REQUEST_ID_HEADER,
3
3
  RequestIdMiddleware,
4
4
  TrackingModule
5
- } from "../chunk-4PFAKLT3.js";
5
+ } from "../chunk-MUWHGBIB.js";
6
6
  import {
7
7
  RequestContext
8
8
  } from "../chunk-ETRUVZTJ.js";
9
- import "../chunk-4MGIQFAJ.js";
9
+ import "../chunk-D3DDJWUD.js";
10
10
  export {
11
11
  REQUEST_ID_HEADER,
12
12
  RequestContext,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk2REOCMUDcjs = require('../chunk-2REOCMUD.cjs');
4
+ var _chunkLRX7AMSScjs = require('../chunk-LRX7AMSS.cjs');
5
5
 
6
6
  // src/umami/umami.module.ts
7
7
  var _common = require('@nestjs/common');
@@ -81,9 +81,9 @@ var UmamiService = class {
81
81
  }
82
82
  }
83
83
  };
84
- UmamiService = exports.UmamiService = _chunk2REOCMUDcjs.__decorateClass.call(void 0, [
84
+ UmamiService = exports.UmamiService = _chunkLRX7AMSScjs.__decorateClass.call(void 0, [
85
85
  _common.Injectable.call(void 0, ),
86
- _chunk2REOCMUDcjs.__decorateParam.call(void 0, 0, _common.Inject.call(void 0, UMAMI_OPTIONS))
86
+ _chunkLRX7AMSScjs.__decorateParam.call(void 0, 0, _common.Inject.call(void 0, UMAMI_OPTIONS))
87
87
  ], UmamiService);
88
88
 
89
89
  // src/umami/umami.module.ts
@@ -99,7 +99,7 @@ var UmamiModule = class {
99
99
  };
100
100
  }
101
101
  };
102
- UmamiModule = exports.UmamiModule = _chunk2REOCMUDcjs.__decorateClass.call(void 0, [
102
+ UmamiModule = exports.UmamiModule = _chunkLRX7AMSScjs.__decorateClass.call(void 0, [
103
103
  _common.Module.call(void 0, {})
104
104
  ], UmamiModule);
105
105
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __decorateClass,
3
3
  __decorateParam
4
- } from "../chunk-4MGIQFAJ.js";
4
+ } from "../chunk-D3DDJWUD.js";
5
5
 
6
6
  // src/umami/umami.module.ts
7
7
  import { Module } from "@nestjs/common";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk2REOCMUDcjs = require('../chunk-2REOCMUD.cjs');
3
+ var _chunkLRX7AMSScjs = require('../chunk-LRX7AMSS.cjs');
4
4
 
5
5
  // src/whatsapp/whatsapp.module.ts
6
6
  var _common = require('@nestjs/common');
@@ -46,7 +46,7 @@ function requireEnv(name) {
46
46
  }
47
47
  var WhatsAppModule = class {
48
48
  };
49
- WhatsAppModule = exports.WhatsAppModule = _chunk2REOCMUDcjs.__decorateClass.call(void 0, [
49
+ WhatsAppModule = exports.WhatsAppModule = _chunkLRX7AMSScjs.__decorateClass.call(void 0, [
50
50
  _common.Module.call(void 0, {
51
51
  providers: [
52
52
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __decorateClass
3
- } from "../chunk-4MGIQFAJ.js";
3
+ } from "../chunk-D3DDJWUD.js";
4
4
 
5
5
  // src/whatsapp/whatsapp.module.ts
6
6
  import { Module } from "@nestjs/common";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miguelmorales13/nestkit",
3
- "version": "0.25.0",
3
+ "version": "0.28.0",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -175,6 +175,101 @@
175
175
  "types": "./dist/audit/index.d.ts",
176
176
  "import": "./dist/audit/index.js",
177
177
  "require": "./dist/audit/index.cjs"
178
+ },
179
+ "./consent": {
180
+ "types": "./dist/consent/index.d.ts",
181
+ "import": "./dist/consent/index.js",
182
+ "require": "./dist/consent/index.cjs"
183
+ },
184
+ "./consent/shared": {
185
+ "types": "./dist/consent/shared/index.d.ts",
186
+ "import": "./dist/consent/shared/index.js",
187
+ "require": "./dist/consent/shared/index.cjs"
188
+ },
189
+ "./consent/guard": {
190
+ "types": "./dist/consent/guard/index.d.ts",
191
+ "import": "./dist/consent/guard/index.js",
192
+ "require": "./dist/consent/guard/index.cjs"
193
+ },
194
+ "./resilience": {
195
+ "types": "./dist/resilience/index.d.ts",
196
+ "import": "./dist/resilience/index.js",
197
+ "require": "./dist/resilience/index.cjs"
198
+ },
199
+ "./resilience/typeorm": {
200
+ "types": "./dist/resilience/typeorm/index.d.ts",
201
+ "import": "./dist/resilience/typeorm/index.js",
202
+ "require": "./dist/resilience/typeorm/index.cjs"
203
+ },
204
+ "./google-business": {
205
+ "types": "./dist/google-business/index.d.ts",
206
+ "import": "./dist/google-business/index.js",
207
+ "require": "./dist/google-business/index.cjs"
208
+ },
209
+ "./scheduling": {
210
+ "types": "./dist/scheduling/index.d.ts",
211
+ "import": "./dist/scheduling/index.js",
212
+ "require": "./dist/scheduling/index.cjs"
213
+ },
214
+ "./secrets": {
215
+ "types": "./dist/secrets/index.d.ts",
216
+ "import": "./dist/secrets/index.js",
217
+ "require": "./dist/secrets/index.cjs"
218
+ },
219
+ "./alerts": {
220
+ "types": "./dist/alerts/index.d.ts",
221
+ "import": "./dist/alerts/index.js",
222
+ "require": "./dist/alerts/index.cjs"
223
+ },
224
+ "./hardening": {
225
+ "types": "./dist/hardening/index.d.ts",
226
+ "import": "./dist/hardening/index.js",
227
+ "require": "./dist/hardening/index.cjs"
228
+ },
229
+ "./health": {
230
+ "types": "./dist/health/index.d.ts",
231
+ "import": "./dist/health/index.js",
232
+ "require": "./dist/health/index.cjs"
233
+ },
234
+ "./tenancy": {
235
+ "types": "./dist/tenancy/index.d.ts",
236
+ "import": "./dist/tenancy/index.js",
237
+ "require": "./dist/tenancy/index.cjs"
238
+ },
239
+ "./tenancy/pg": {
240
+ "types": "./dist/tenancy/pg/index.d.ts",
241
+ "import": "./dist/tenancy/pg/index.js",
242
+ "require": "./dist/tenancy/pg/index.cjs"
243
+ },
244
+ "./tenancy/typeorm": {
245
+ "types": "./dist/tenancy/typeorm/index.d.ts",
246
+ "import": "./dist/tenancy/typeorm/index.js",
247
+ "require": "./dist/tenancy/typeorm/index.cjs"
248
+ },
249
+ "./jobs": {
250
+ "types": "./dist/jobs/index.d.ts",
251
+ "import": "./dist/jobs/index.js",
252
+ "require": "./dist/jobs/index.cjs"
253
+ },
254
+ "./events": {
255
+ "types": "./dist/events/index.d.ts",
256
+ "import": "./dist/events/index.js",
257
+ "require": "./dist/events/index.cjs"
258
+ },
259
+ "./notifications": {
260
+ "types": "./dist/notifications/index.d.ts",
261
+ "import": "./dist/notifications/index.js",
262
+ "require": "./dist/notifications/index.cjs"
263
+ },
264
+ "./devices": {
265
+ "types": "./dist/devices/index.d.ts",
266
+ "import": "./dist/devices/index.js",
267
+ "require": "./dist/devices/index.cjs"
268
+ },
269
+ "./privacy": {
270
+ "types": "./dist/privacy/index.d.ts",
271
+ "import": "./dist/privacy/index.js",
272
+ "require": "./dist/privacy/index.cjs"
178
273
  }
179
274
  },
180
275
  "scripts": {
@@ -203,7 +298,9 @@
203
298
  "@aws-sdk/lib-storage": "^3.0.0",
204
299
  "typeorm": "^0.3.0 || ^1.0.0",
205
300
  "@simplewebauthn/server": "^13.0.0 || ^14.0.0",
206
- "web-push": "^3.6.0"
301
+ "web-push": "^3.6.0",
302
+ "@nestjs/schedule": "",
303
+ "undici": ""
207
304
  },
208
305
  "peerDependenciesMeta": {
209
306
  "web-push": {
@@ -253,6 +350,12 @@
253
350
  },
254
351
  "typeorm": {
255
352
  "optional": true
353
+ },
354
+ "@nestjs/schedule": {
355
+ "optional": true
356
+ },
357
+ "undici": {
358
+ "optional": true
256
359
  }
257
360
  },
258
361
  "dependencies": {
@@ -266,6 +369,7 @@
266
369
  "@aws-sdk/s3-request-presigner": "^3.1121.0",
267
370
  "@nestjs/common": "^11.0.0",
268
371
  "@nestjs/core": "^11.0.0",
372
+ "@nestjs/schedule": "^6.0.0",
269
373
  "@nestjs/swagger": "^11.0.0",
270
374
  "@simplewebauthn/server": "^14.0.2",
271
375
  "@supabase/supabase-js": "^2.45.0",
@@ -290,6 +394,7 @@
290
394
  "tsup": "^8.5.1",
291
395
  "typeorm": "^1.1.0",
292
396
  "typescript": "^5.6.0",
397
+ "undici": "^7.0.0",
293
398
  "web-push": "^3.6.7"
294
399
  },
295
400
  "overrides": {