@os.io/nest-kit 0.0.1-alpha.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.
- package/LICENSE +21 -0
- package/README.md +111 -0
- package/dist/auth/auth.constants.d.ts +19 -0
- package/dist/auth/auth.constants.d.ts.map +1 -0
- package/dist/auth/auth.constants.js +19 -0
- package/dist/auth/auth.constants.js.map +1 -0
- package/dist/auth/auth.guard.d.ts +20 -0
- package/dist/auth/auth.guard.d.ts.map +1 -0
- package/dist/auth/auth.guard.js +84 -0
- package/dist/auth/auth.guard.js.map +1 -0
- package/dist/auth/auth.module.d.ts +26 -0
- package/dist/auth/auth.module.d.ts.map +1 -0
- package/dist/auth/auth.module.js +344 -0
- package/dist/auth/auth.module.js.map +1 -0
- package/dist/auth/auth.options.d.ts +179 -0
- package/dist/auth/auth.options.d.ts.map +1 -0
- package/dist/auth/auth.options.js +2 -0
- package/dist/auth/auth.options.js.map +1 -0
- package/dist/auth/auth.service.d.ts +57 -0
- package/dist/auth/auth.service.d.ts.map +1 -0
- package/dist/auth/auth.service.js +175 -0
- package/dist/auth/auth.service.js.map +1 -0
- package/dist/auth/authorization/index.d.ts +3 -0
- package/dist/auth/authorization/index.d.ts.map +1 -0
- package/dist/auth/authorization/index.js +3 -0
- package/dist/auth/authorization/index.js.map +1 -0
- package/dist/auth/authorization/pbac/index.d.ts +6 -0
- package/dist/auth/authorization/pbac/index.d.ts.map +1 -0
- package/dist/auth/authorization/pbac/index.js +4 -0
- package/dist/auth/authorization/pbac/index.js.map +1 -0
- package/dist/auth/authorization/pbac/pbac.decorator.d.ts +18 -0
- package/dist/auth/authorization/pbac/pbac.decorator.d.ts.map +1 -0
- package/dist/auth/authorization/pbac/pbac.decorator.js +14 -0
- package/dist/auth/authorization/pbac/pbac.decorator.js.map +1 -0
- package/dist/auth/authorization/pbac/pbac.guard.d.ts +19 -0
- package/dist/auth/authorization/pbac/pbac.guard.d.ts.map +1 -0
- package/dist/auth/authorization/pbac/pbac.guard.js +60 -0
- package/dist/auth/authorization/pbac/pbac.guard.js.map +1 -0
- package/dist/auth/authorization/pbac/pbac.service.d.ts +44 -0
- package/dist/auth/authorization/pbac/pbac.service.d.ts.map +1 -0
- package/dist/auth/authorization/pbac/pbac.service.js +146 -0
- package/dist/auth/authorization/pbac/pbac.service.js.map +1 -0
- package/dist/auth/authorization/pbac/pbac.types.d.ts +47 -0
- package/dist/auth/authorization/pbac/pbac.types.d.ts.map +1 -0
- package/dist/auth/authorization/pbac/pbac.types.js +2 -0
- package/dist/auth/authorization/pbac/pbac.types.js.map +1 -0
- package/dist/auth/authorization/rbac/index.d.ts +4 -0
- package/dist/auth/authorization/rbac/index.d.ts.map +1 -0
- package/dist/auth/authorization/rbac/index.js +4 -0
- package/dist/auth/authorization/rbac/index.js.map +1 -0
- package/dist/auth/authorization/rbac/rbac.decorator.d.ts +18 -0
- package/dist/auth/authorization/rbac/rbac.decorator.d.ts.map +1 -0
- package/dist/auth/authorization/rbac/rbac.decorator.js +25 -0
- package/dist/auth/authorization/rbac/rbac.decorator.js.map +1 -0
- package/dist/auth/authorization/rbac/rbac.guard.d.ts +19 -0
- package/dist/auth/authorization/rbac/rbac.guard.d.ts.map +1 -0
- package/dist/auth/authorization/rbac/rbac.guard.js +50 -0
- package/dist/auth/authorization/rbac/rbac.guard.js.map +1 -0
- package/dist/auth/authorization/rbac/rbac.service.d.ts +43 -0
- package/dist/auth/authorization/rbac/rbac.service.d.ts.map +1 -0
- package/dist/auth/authorization/rbac/rbac.service.js +95 -0
- package/dist/auth/authorization/rbac/rbac.service.js.map +1 -0
- package/dist/auth/decorators/current-user.decorator.d.ts +17 -0
- package/dist/auth/decorators/current-user.decorator.d.ts.map +1 -0
- package/dist/auth/decorators/current-user.decorator.js +23 -0
- package/dist/auth/decorators/current-user.decorator.js.map +1 -0
- package/dist/auth/decorators/index.d.ts +3 -0
- package/dist/auth/decorators/index.d.ts.map +1 -0
- package/dist/auth/decorators/index.js +3 -0
- package/dist/auth/decorators/index.js.map +1 -0
- package/dist/auth/decorators/public.decorator.d.ts +13 -0
- package/dist/auth/decorators/public.decorator.d.ts.map +1 -0
- package/dist/auth/decorators/public.decorator.js +15 -0
- package/dist/auth/decorators/public.decorator.js.map +1 -0
- package/dist/auth/index.d.ts +63 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +65 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/interfaces/auth-request.interface.d.ts +18 -0
- package/dist/auth/interfaces/auth-request.interface.d.ts.map +1 -0
- package/dist/auth/interfaces/auth-request.interface.js +2 -0
- package/dist/auth/interfaces/auth-request.interface.js.map +1 -0
- package/dist/auth/interfaces/auth-result.interface.d.ts +28 -0
- package/dist/auth/interfaces/auth-result.interface.d.ts.map +1 -0
- package/dist/auth/interfaces/auth-result.interface.js +2 -0
- package/dist/auth/interfaces/auth-result.interface.js.map +1 -0
- package/dist/auth/interfaces/auth-strategy.interface.d.ts +37 -0
- package/dist/auth/interfaces/auth-strategy.interface.d.ts.map +1 -0
- package/dist/auth/interfaces/auth-strategy.interface.js +16 -0
- package/dist/auth/interfaces/auth-strategy.interface.js.map +1 -0
- package/dist/auth/interfaces/auth-user.interface.d.ts +25 -0
- package/dist/auth/interfaces/auth-user.interface.d.ts.map +1 -0
- package/dist/auth/interfaces/auth-user.interface.js +2 -0
- package/dist/auth/interfaces/auth-user.interface.js.map +1 -0
- package/dist/auth/interfaces/cache-service.interface.d.ts +30 -0
- package/dist/auth/interfaces/cache-service.interface.d.ts.map +1 -0
- package/dist/auth/interfaces/cache-service.interface.js +2 -0
- package/dist/auth/interfaces/cache-service.interface.js.map +1 -0
- package/dist/auth/interfaces/index.d.ts +8 -0
- package/dist/auth/interfaces/index.d.ts.map +1 -0
- package/dist/auth/interfaces/index.js +2 -0
- package/dist/auth/interfaces/index.js.map +1 -0
- package/dist/auth/interfaces/user-service.interface.d.ts +34 -0
- package/dist/auth/interfaces/user-service.interface.d.ts.map +1 -0
- package/dist/auth/interfaces/user-service.interface.js +2 -0
- package/dist/auth/interfaces/user-service.interface.js.map +1 -0
- package/dist/auth/password/password.service.d.ts +23 -0
- package/dist/auth/password/password.service.d.ts.map +1 -0
- package/dist/auth/password/password.service.js +52 -0
- package/dist/auth/password/password.service.js.map +1 -0
- package/dist/auth/session/device-session.service.d.ts +43 -0
- package/dist/auth/session/device-session.service.d.ts.map +1 -0
- package/dist/auth/session/device-session.service.js +72 -0
- package/dist/auth/session/device-session.service.js.map +1 -0
- package/dist/auth/session/index.d.ts +5 -0
- package/dist/auth/session/index.d.ts.map +1 -0
- package/dist/auth/session/index.js +4 -0
- package/dist/auth/session/index.js.map +1 -0
- package/dist/auth/session/jwt.service.d.ts +37 -0
- package/dist/auth/session/jwt.service.d.ts.map +1 -0
- package/dist/auth/session/jwt.service.js +119 -0
- package/dist/auth/session/jwt.service.js.map +1 -0
- package/dist/auth/session/token-blacklist.service.d.ts +37 -0
- package/dist/auth/session/token-blacklist.service.d.ts.map +1 -0
- package/dist/auth/session/token-blacklist.service.js +70 -0
- package/dist/auth/session/token-blacklist.service.js.map +1 -0
- package/dist/auth/strategies/anonymous/anonymous.strategy.d.ts +19 -0
- package/dist/auth/strategies/anonymous/anonymous.strategy.d.ts.map +1 -0
- package/dist/auth/strategies/anonymous/anonymous.strategy.js +49 -0
- package/dist/auth/strategies/anonymous/anonymous.strategy.js.map +1 -0
- package/dist/auth/strategies/base/base.strategy.d.ts +11 -0
- package/dist/auth/strategies/base/base.strategy.d.ts.map +1 -0
- package/dist/auth/strategies/base/base.strategy.js +6 -0
- package/dist/auth/strategies/base/base.strategy.js.map +1 -0
- package/dist/auth/strategies/credentials/credentials.strategy.d.ts +21 -0
- package/dist/auth/strategies/credentials/credentials.strategy.d.ts.map +1 -0
- package/dist/auth/strategies/credentials/credentials.strategy.js +67 -0
- package/dist/auth/strategies/credentials/credentials.strategy.js.map +1 -0
- package/dist/auth/strategies/index.d.ts +12 -0
- package/dist/auth/strategies/index.d.ts.map +1 -0
- package/dist/auth/strategies/index.js +12 -0
- package/dist/auth/strategies/index.js.map +1 -0
- package/dist/auth/strategies/magic-link/magic-link.strategy.d.ts +31 -0
- package/dist/auth/strategies/magic-link/magic-link.strategy.d.ts.map +1 -0
- package/dist/auth/strategies/magic-link/magic-link.strategy.js +88 -0
- package/dist/auth/strategies/magic-link/magic-link.strategy.js.map +1 -0
- package/dist/auth/strategies/oauth/index.d.ts +3 -0
- package/dist/auth/strategies/oauth/index.d.ts.map +1 -0
- package/dist/auth/strategies/oauth/index.js +3 -0
- package/dist/auth/strategies/oauth/index.js.map +1 -0
- package/dist/auth/strategies/oauth/oauth-provider-registry.d.ts +13 -0
- package/dist/auth/strategies/oauth/oauth-provider-registry.d.ts.map +1 -0
- package/dist/auth/strategies/oauth/oauth-provider-registry.js +20 -0
- package/dist/auth/strategies/oauth/oauth-provider-registry.js.map +1 -0
- package/dist/auth/strategies/oauth/oauth.strategy.d.ts +23 -0
- package/dist/auth/strategies/oauth/oauth.strategy.d.ts.map +1 -0
- package/dist/auth/strategies/oauth/oauth.strategy.js +79 -0
- package/dist/auth/strategies/oauth/oauth.strategy.js.map +1 -0
- package/dist/auth/strategies/onetap/onetap.strategy.d.ts +24 -0
- package/dist/auth/strategies/onetap/onetap.strategy.d.ts.map +1 -0
- package/dist/auth/strategies/onetap/onetap.strategy.js +77 -0
- package/dist/auth/strategies/onetap/onetap.strategy.js.map +1 -0
- package/dist/auth/strategies/otp/otp.strategy.d.ts +31 -0
- package/dist/auth/strategies/otp/otp.strategy.d.ts.map +1 -0
- package/dist/auth/strategies/otp/otp.strategy.js +93 -0
- package/dist/auth/strategies/otp/otp.strategy.js.map +1 -0
- package/dist/auth/strategies/passkey/passkey.strategy.d.ts +32 -0
- package/dist/auth/strategies/passkey/passkey.strategy.d.ts.map +1 -0
- package/dist/auth/strategies/passkey/passkey.strategy.js +102 -0
- package/dist/auth/strategies/passkey/passkey.strategy.js.map +1 -0
- package/dist/auth/strategies/sso/sso.strategy.d.ts +25 -0
- package/dist/auth/strategies/sso/sso.strategy.d.ts.map +1 -0
- package/dist/auth/strategies/sso/sso.strategy.js +80 -0
- package/dist/auth/strategies/sso/sso.strategy.js.map +1 -0
- package/dist/auth/strategies/totp/totp.strategy.d.ts +37 -0
- package/dist/auth/strategies/totp/totp.strategy.d.ts.map +1 -0
- package/dist/auth/strategies/totp/totp.strategy.js +109 -0
- package/dist/auth/strategies/totp/totp.strategy.js.map +1 -0
- package/dist/auth/throttling/index.d.ts +2 -0
- package/dist/auth/throttling/index.d.ts.map +1 -0
- package/dist/auth/throttling/index.js +2 -0
- package/dist/auth/throttling/index.js.map +1 -0
- package/dist/auth/throttling/throttle.service.d.ts +27 -0
- package/dist/auth/throttling/throttle.service.d.ts.map +1 -0
- package/dist/auth/throttling/throttle.service.js +63 -0
- package/dist/auth/throttling/throttle.service.js.map +1 -0
- package/dist/bootstrap/cache/config.d.ts +135 -0
- package/dist/bootstrap/cache/config.d.ts.map +1 -0
- package/dist/bootstrap/cache/config.js +189 -0
- package/dist/bootstrap/cache/config.js.map +1 -0
- package/dist/bootstrap/cache/index.d.ts +11 -0
- package/dist/bootstrap/cache/index.d.ts.map +1 -0
- package/dist/bootstrap/cache/index.js +11 -0
- package/dist/bootstrap/cache/index.js.map +1 -0
- package/dist/bootstrap/index.d.ts +21 -0
- package/dist/bootstrap/index.d.ts.map +1 -0
- package/dist/bootstrap/index.js +21 -0
- package/dist/bootstrap/index.js.map +1 -0
- package/dist/bootstrap/scalar/api-docs.d.ts +39 -0
- package/dist/bootstrap/scalar/api-docs.d.ts.map +1 -0
- package/dist/bootstrap/scalar/api-docs.js +41 -0
- package/dist/bootstrap/scalar/api-docs.js.map +1 -0
- package/dist/bootstrap/scalar/index.d.ts +39 -0
- package/dist/bootstrap/scalar/index.d.ts.map +1 -0
- package/dist/bootstrap/scalar/index.js +41 -0
- package/dist/bootstrap/scalar/index.js.map +1 -0
- package/dist/bootstrap/swagger/api-docs.d.ts +73 -0
- package/dist/bootstrap/swagger/api-docs.d.ts.map +1 -0
- package/dist/bootstrap/swagger/api-docs.js +87 -0
- package/dist/bootstrap/swagger/api-docs.js.map +1 -0
- package/dist/bootstrap/swagger/index.d.ts +37 -0
- package/dist/bootstrap/swagger/index.d.ts.map +1 -0
- package/dist/bootstrap/swagger/index.js +36 -0
- package/dist/bootstrap/swagger/index.js.map +1 -0
- package/dist/bootstrap/typeorm/config/index.d.ts +12 -0
- package/dist/bootstrap/typeorm/config/index.d.ts.map +1 -0
- package/dist/bootstrap/typeorm/config/index.js +62 -0
- package/dist/bootstrap/typeorm/config/index.js.map +1 -0
- package/dist/bootstrap/typeorm/crud/controller.d.ts +13 -0
- package/dist/bootstrap/typeorm/crud/controller.d.ts.map +1 -0
- package/dist/bootstrap/typeorm/crud/controller.js +72 -0
- package/dist/bootstrap/typeorm/crud/controller.js.map +1 -0
- package/dist/bootstrap/typeorm/crud/index.d.ts +4 -0
- package/dist/bootstrap/typeorm/crud/index.d.ts.map +1 -0
- package/dist/bootstrap/typeorm/crud/index.js +3 -0
- package/dist/bootstrap/typeorm/crud/index.js.map +1 -0
- package/dist/bootstrap/typeorm/crud/service.d.ts +10 -0
- package/dist/bootstrap/typeorm/crud/service.d.ts.map +1 -0
- package/dist/bootstrap/typeorm/crud/service.js +21 -0
- package/dist/bootstrap/typeorm/crud/service.js.map +1 -0
- package/dist/bootstrap/typeorm/index.d.ts +18 -0
- package/dist/bootstrap/typeorm/index.d.ts.map +1 -0
- package/dist/bootstrap/typeorm/index.js +18 -0
- package/dist/bootstrap/typeorm/index.js.map +1 -0
- package/dist/bootstrap/typeorm/uow/factory.d.ts +5 -0
- package/dist/bootstrap/typeorm/uow/factory.d.ts.map +1 -0
- package/dist/bootstrap/typeorm/uow/factory.js +27 -0
- package/dist/bootstrap/typeorm/uow/factory.js.map +1 -0
- package/dist/bootstrap/typeorm/uow/index.d.ts +4 -0
- package/dist/bootstrap/typeorm/uow/index.d.ts.map +1 -0
- package/dist/bootstrap/typeorm/uow/index.js +4 -0
- package/dist/bootstrap/typeorm/uow/index.js.map +1 -0
- package/dist/bootstrap/typeorm/uow/transactional.decorator.d.ts +62 -0
- package/dist/bootstrap/typeorm/uow/transactional.decorator.d.ts.map +1 -0
- package/dist/bootstrap/typeorm/uow/transactional.decorator.js +114 -0
- package/dist/bootstrap/typeorm/uow/transactional.decorator.js.map +1 -0
- package/dist/bootstrap/typeorm/uow/unit-of-work.d.ts +11 -0
- package/dist/bootstrap/typeorm/uow/unit-of-work.d.ts.map +1 -0
- package/dist/bootstrap/typeorm/uow/unit-of-work.js +23 -0
- package/dist/bootstrap/typeorm/uow/unit-of-work.js.map +1 -0
- package/dist/core/index.d.ts +11 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +11 -0
- package/dist/core/index.js.map +1 -0
- package/dist/infra/audit-log/index.d.ts +12 -0
- package/dist/infra/audit-log/index.d.ts.map +1 -0
- package/dist/infra/audit-log/index.js +13 -0
- package/dist/infra/audit-log/index.js.map +1 -0
- package/dist/infra/index.d.ts +20 -0
- package/dist/infra/index.d.ts.map +1 -0
- package/dist/infra/index.js +21 -0
- package/dist/infra/index.js.map +1 -0
- package/dist/infra/logger/index.d.ts +12 -0
- package/dist/infra/logger/index.d.ts.map +1 -0
- package/dist/infra/logger/index.js +13 -0
- package/dist/infra/logger/index.js.map +1 -0
- package/dist/infra/metrics/index.d.ts +18 -0
- package/dist/infra/metrics/index.d.ts.map +1 -0
- package/dist/infra/metrics/index.js +19 -0
- package/dist/infra/metrics/index.js.map +1 -0
- package/dist/infra/notification/index.d.ts +12 -0
- package/dist/infra/notification/index.d.ts.map +1 -0
- package/dist/infra/notification/index.js +13 -0
- package/dist/infra/notification/index.js.map +1 -0
- package/dist/infra/storage/index.d.ts +12 -0
- package/dist/infra/storage/index.d.ts.map +1 -0
- package/dist/infra/storage/index.js +13 -0
- package/dist/infra/storage/index.js.map +1 -0
- package/dist/infra/stripe/index.d.ts +12 -0
- package/dist/infra/stripe/index.d.ts.map +1 -0
- package/dist/infra/stripe/index.js +13 -0
- package/dist/infra/stripe/index.js.map +1 -0
- package/dist/saas/index.d.ts +18 -0
- package/dist/saas/index.d.ts.map +1 -0
- package/dist/saas/index.js +19 -0
- package/dist/saas/index.js.map +1 -0
- package/package.json +165 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit-of-work.d.ts","sourceRoot":"","sources":["../../../../packages/bootstrap/typeorm/uow/unit-of-work.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAe,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhG,qBAAa,UAAU;IACrB,OAAO,CAAC,WAAW,CAAc;gBAErB,UAAU,EAAE,UAAU;IAI5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,aAAa,CAAC,CAAC,SAAS,aAAa,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;CAG/E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export class UnitOfWork {
|
|
2
|
+
queryRunner;
|
|
3
|
+
constructor(dataSource) {
|
|
4
|
+
this.queryRunner = dataSource.createQueryRunner();
|
|
5
|
+
}
|
|
6
|
+
async start() {
|
|
7
|
+
await this.queryRunner.connect();
|
|
8
|
+
await this.queryRunner.startTransaction();
|
|
9
|
+
}
|
|
10
|
+
async commit() {
|
|
11
|
+
await this.queryRunner.commitTransaction();
|
|
12
|
+
}
|
|
13
|
+
async rollback() {
|
|
14
|
+
await this.queryRunner.rollbackTransaction();
|
|
15
|
+
}
|
|
16
|
+
async release() {
|
|
17
|
+
await this.queryRunner.release();
|
|
18
|
+
}
|
|
19
|
+
getRepository(entity) {
|
|
20
|
+
return this.queryRunner.manager.getRepository(entity);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=unit-of-work.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unit-of-work.js","sourceRoot":"","sources":["../../../../packages/bootstrap/typeorm/uow/unit-of-work.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,UAAU;IACb,WAAW,CAAc;IAEjC,YAAY,UAAsB;QAChC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,iBAAiB,EAAE,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;QACjC,MAAM,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,EAAE,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,MAAM,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;IACnC,CAAC;IAED,aAAa,CAA0B,MAAuB;QAC5D,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../packages/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/audit-log
|
|
3
|
+
*
|
|
4
|
+
* Audit logging for NestJS. Automatically captures and persists user actions,
|
|
5
|
+
* data changes, and security events in a structured format. Supports multiple
|
|
6
|
+
* backends (database, S3, Elasticsearch).
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/audit-log/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/audit-log
|
|
3
|
+
*
|
|
4
|
+
* Audit logging for NestJS. Automatically captures and persists user actions,
|
|
5
|
+
* data changes, and security events in a structured format. Supports multiple
|
|
6
|
+
* backends (database, S3, Elasticsearch).
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
throw new Error('The infra/audit-log module has not been implemented yet. Stay tuned for an upcoming alpha release.');
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/audit-log/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,IAAI,KAAK,CACb,oGAAoG,CACrG,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra
|
|
3
|
+
*
|
|
4
|
+
* Infrastructure & third-party integrations for NestJS applications.
|
|
5
|
+
* Includes Logger, Notification, Storage, Stripe, Audit Log, and Metrics.
|
|
6
|
+
*
|
|
7
|
+
* ## Sub-modules
|
|
8
|
+
*
|
|
9
|
+
* - `@os.io/nest-kit/infra/logger` — Structured logging (Pino, Winston)
|
|
10
|
+
* - `@os.io/nest-kit/infra/notification` — Email, SMS, Push, In-app
|
|
11
|
+
* - `@os.io/nest-kit/infra/storage` — S3, GCS, Azure, local filesystem
|
|
12
|
+
* - `@os.io/nest-kit/infra/stripe` — Webhooks, subscriptions, checkout
|
|
13
|
+
* - `@os.io/nest-kit/infra/audit-log` — Audit trails, data change capture
|
|
14
|
+
* - `@os.io/nest-kit/infra/metrics` — Prometheus, OpenTelemetry, health checks
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
*/
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/infra/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra
|
|
3
|
+
*
|
|
4
|
+
* Infrastructure & third-party integrations for NestJS applications.
|
|
5
|
+
* Includes Logger, Notification, Storage, Stripe, Audit Log, and Metrics.
|
|
6
|
+
*
|
|
7
|
+
* ## Sub-modules
|
|
8
|
+
*
|
|
9
|
+
* - `@os.io/nest-kit/infra/logger` — Structured logging (Pino, Winston)
|
|
10
|
+
* - `@os.io/nest-kit/infra/notification` — Email, SMS, Push, In-app
|
|
11
|
+
* - `@os.io/nest-kit/infra/storage` — S3, GCS, Azure, local filesystem
|
|
12
|
+
* - `@os.io/nest-kit/infra/stripe` — Webhooks, subscriptions, checkout
|
|
13
|
+
* - `@os.io/nest-kit/infra/audit-log` — Audit trails, data change capture
|
|
14
|
+
* - `@os.io/nest-kit/infra/metrics` — Prometheus, OpenTelemetry, health checks
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
*/
|
|
19
|
+
throw new Error('The infra module has not been implemented yet. Stay tuned for an upcoming alpha release.');
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../packages/infra/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,IAAI,KAAK,CACb,0FAA0F,CAC3F,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/logger
|
|
3
|
+
*
|
|
4
|
+
* Structured logging module for NestJS. Wraps popular logger libraries
|
|
5
|
+
* (Pino, Winston, etc.) and provides a NestJS LoggerService implementation
|
|
6
|
+
* with request-id injection, log levels, and transport configuration.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/logger/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/logger
|
|
3
|
+
*
|
|
4
|
+
* Structured logging module for NestJS. Wraps popular logger libraries
|
|
5
|
+
* (Pino, Winston, etc.) and provides a NestJS LoggerService implementation
|
|
6
|
+
* with request-id injection, log levels, and transport configuration.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
throw new Error('The infra/logger module has not been implemented yet. Stay tuned for an upcoming alpha release.');
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/logger/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/metrics
|
|
3
|
+
*
|
|
4
|
+
* Metrics & observability for NestJS. Exposes Prometheus metrics,
|
|
5
|
+
* OpenTelemetry tracing, health checks, and structured monitoring endpoints.
|
|
6
|
+
*
|
|
7
|
+
* ## Roadmap
|
|
8
|
+
*
|
|
9
|
+
* - Prometheus metric exporters (HTTP request duration, DB query duration, …)
|
|
10
|
+
* - OpenTelemetry integration
|
|
11
|
+
* - Health check endpoint builder
|
|
12
|
+
* - Custom metric decorators
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/metrics/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/metrics
|
|
3
|
+
*
|
|
4
|
+
* Metrics & observability for NestJS. Exposes Prometheus metrics,
|
|
5
|
+
* OpenTelemetry tracing, health checks, and structured monitoring endpoints.
|
|
6
|
+
*
|
|
7
|
+
* ## Roadmap
|
|
8
|
+
*
|
|
9
|
+
* - Prometheus metric exporters (HTTP request duration, DB query duration, …)
|
|
10
|
+
* - OpenTelemetry integration
|
|
11
|
+
* - Health check endpoint builder
|
|
12
|
+
* - Custom metric decorators
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
throw new Error('The infra/metrics module has not been implemented yet. Stay tuned for an upcoming alpha release.');
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/metrics/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,IAAI,KAAK,CACb,kGAAkG,CACnG,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/notification
|
|
3
|
+
*
|
|
4
|
+
* Multi-channel notification module for NestJS. Supports email (SMTP,
|
|
5
|
+
* SendGrid, SES), SMS (Twilio), push notifications (FCM, APNs), and
|
|
6
|
+
* in-app notifications.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/notification/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/notification
|
|
3
|
+
*
|
|
4
|
+
* Multi-channel notification module for NestJS. Supports email (SMTP,
|
|
5
|
+
* SendGrid, SES), SMS (Twilio), push notifications (FCM, APNs), and
|
|
6
|
+
* in-app notifications.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
throw new Error('The infra/notification module has not been implemented yet. Stay tuned for an upcoming alpha release.');
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/notification/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,IAAI,KAAK,CACb,uGAAuG,CACxG,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/storage
|
|
3
|
+
*
|
|
4
|
+
* File storage abstraction for NestJS. Provides a unified interface over
|
|
5
|
+
* local filesystem, AWS S3 / S3-compatible, Google Cloud Storage, and
|
|
6
|
+
* Azure Blob Storage.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/storage/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/storage
|
|
3
|
+
*
|
|
4
|
+
* File storage abstraction for NestJS. Provides a unified interface over
|
|
5
|
+
* local filesystem, AWS S3 / S3-compatible, Google Cloud Storage, and
|
|
6
|
+
* Azure Blob Storage.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
throw new Error('The infra/storage module has not been implemented yet. Stay tuned for an upcoming alpha release.');
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/storage/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,IAAI,KAAK,CACb,kGAAkG,CACnG,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/stripe
|
|
3
|
+
*
|
|
4
|
+
* Stripe integration for NestJS. Provides a NestJS-idiomatic wrapper around
|
|
5
|
+
* the Stripe SDK: webhook handling, subscription management, checkout
|
|
6
|
+
* sessions, customer portal, and idempotent request helpers.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/infra/stripe/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/infra/stripe
|
|
3
|
+
*
|
|
4
|
+
* Stripe integration for NestJS. Provides a NestJS-idiomatic wrapper around
|
|
5
|
+
* the Stripe SDK: webhook handling, subscription management, checkout
|
|
6
|
+
* sessions, customer portal, and idempotent request helpers.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
throw new Error('The infra/stripe module has not been implemented yet. Stay tuned for an upcoming alpha release.');
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/infra/stripe/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,IAAI,KAAK,CACb,iGAAiG,CAClG,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/saas
|
|
3
|
+
*
|
|
4
|
+
* SaaS primitives for NestJS applications: Organisation & Team management,
|
|
5
|
+
* multi-tenancy, subscription plans, invitations, and billing integration.
|
|
6
|
+
*
|
|
7
|
+
* ## Roadmap
|
|
8
|
+
*
|
|
9
|
+
* - Organisation & Team CRUD
|
|
10
|
+
* - Multi-tenant data isolation (schema / database per tenant)
|
|
11
|
+
* - Membership & role management
|
|
12
|
+
* - Invitation flows
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/saas/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @os.io/nest-kit/saas
|
|
3
|
+
*
|
|
4
|
+
* SaaS primitives for NestJS applications: Organisation & Team management,
|
|
5
|
+
* multi-tenancy, subscription plans, invitations, and billing integration.
|
|
6
|
+
*
|
|
7
|
+
* ## Roadmap
|
|
8
|
+
*
|
|
9
|
+
* - Organisation & Team CRUD
|
|
10
|
+
* - Multi-tenant data isolation (schema / database per tenant)
|
|
11
|
+
* - Membership & role management
|
|
12
|
+
* - Invitation flows
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
throw new Error('The saas module has not been implemented yet. Stay tuned for an upcoming alpha release.');
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../packages/saas/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,IAAI,KAAK,CACb,yFAAyF,CAC1F,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@os.io/nest-kit",
|
|
3
|
+
"version": "0.0.1-alpha.0",
|
|
4
|
+
"description": "A modular, production-ready NestJS toolkit — Bootstrap, Auth, SaaS, and Infra integrations in a single package.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"nestjs",
|
|
7
|
+
"nest-kit",
|
|
8
|
+
"toolkit",
|
|
9
|
+
"bootstrap",
|
|
10
|
+
"authentication",
|
|
11
|
+
"authorization",
|
|
12
|
+
"saas",
|
|
13
|
+
"multi-tenant",
|
|
14
|
+
"logger",
|
|
15
|
+
"storage",
|
|
16
|
+
"stripe",
|
|
17
|
+
"audit",
|
|
18
|
+
"metrics",
|
|
19
|
+
"typescript"
|
|
20
|
+
],
|
|
21
|
+
"homepage": "https://github.com/oxpo-io/nest-kit#readme",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/oxpo-io/nest-kit/issues"
|
|
24
|
+
},
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"author": "Wind Blade <vn.chemgio@yahoo.com> (https://github.com/oxpo-io)",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/oxpo-io/nest-kit.git"
|
|
30
|
+
},
|
|
31
|
+
"main": "./dist/core/index.js",
|
|
32
|
+
"types": "./dist/core/index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist/core/index.d.ts",
|
|
36
|
+
"import": "./dist/core/index.js",
|
|
37
|
+
"require": "./dist/core/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./core": {
|
|
40
|
+
"types": "./dist/core/index.d.ts",
|
|
41
|
+
"import": "./dist/core/index.js",
|
|
42
|
+
"require": "./dist/core/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./bootstrap": {
|
|
45
|
+
"types": "./dist/bootstrap/index.d.ts",
|
|
46
|
+
"import": "./dist/bootstrap/index.js",
|
|
47
|
+
"require": "./dist/bootstrap/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./auth": {
|
|
50
|
+
"types": "./dist/auth/index.d.ts",
|
|
51
|
+
"import": "./dist/auth/index.js",
|
|
52
|
+
"require": "./dist/auth/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./saas": {
|
|
55
|
+
"types": "./dist/saas/index.d.ts",
|
|
56
|
+
"import": "./dist/saas/index.js",
|
|
57
|
+
"require": "./dist/saas/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./infra": {
|
|
60
|
+
"types": "./dist/infra/index.d.ts",
|
|
61
|
+
"import": "./dist/infra/index.js",
|
|
62
|
+
"require": "./dist/infra/index.js"
|
|
63
|
+
},
|
|
64
|
+
"./infra/logger": {
|
|
65
|
+
"types": "./dist/infra/logger/index.d.ts",
|
|
66
|
+
"import": "./dist/infra/logger/index.js",
|
|
67
|
+
"require": "./dist/infra/logger/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./infra/notification": {
|
|
70
|
+
"types": "./dist/infra/notification/index.d.ts",
|
|
71
|
+
"import": "./dist/infra/notification/index.js",
|
|
72
|
+
"require": "./dist/infra/notification/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./infra/storage": {
|
|
75
|
+
"types": "./dist/infra/storage/index.d.ts",
|
|
76
|
+
"import": "./dist/infra/storage/index.js",
|
|
77
|
+
"require": "./dist/infra/storage/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./infra/stripe": {
|
|
80
|
+
"types": "./dist/infra/stripe/index.d.ts",
|
|
81
|
+
"import": "./dist/infra/stripe/index.js",
|
|
82
|
+
"require": "./dist/infra/stripe/index.js"
|
|
83
|
+
},
|
|
84
|
+
"./infra/audit-log": {
|
|
85
|
+
"types": "./dist/infra/audit-log/index.d.ts",
|
|
86
|
+
"import": "./dist/infra/audit-log/index.js",
|
|
87
|
+
"require": "./dist/infra/audit-log/index.js"
|
|
88
|
+
},
|
|
89
|
+
"./infra/metrics": {
|
|
90
|
+
"types": "./dist/infra/metrics/index.d.ts",
|
|
91
|
+
"import": "./dist/infra/metrics/index.js",
|
|
92
|
+
"require": "./dist/infra/metrics/index.js"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"files": [
|
|
96
|
+
"dist",
|
|
97
|
+
"README.md",
|
|
98
|
+
"LICENSE"
|
|
99
|
+
],
|
|
100
|
+
"scripts": {
|
|
101
|
+
"build": "tsc -p tsconfig.build.json",
|
|
102
|
+
"clean": "rm -rf dist",
|
|
103
|
+
"format": "prettier --write \"packages/**/*.ts\" \"*.{md,json}\"",
|
|
104
|
+
"format:check": "prettier --check \"packages/**/*.ts\" \"*.{md,json}\"",
|
|
105
|
+
"lint": "eslint \"packages/**/*.ts\" --fix",
|
|
106
|
+
"lint:check": "eslint \"packages/**/*.ts\"",
|
|
107
|
+
"test": "jest --passWithNoTests",
|
|
108
|
+
"test:watch": "jest --watch",
|
|
109
|
+
"test:cov": "jest --coverage",
|
|
110
|
+
"prepare": "husky",
|
|
111
|
+
"docs:dev": "vitepress dev docs",
|
|
112
|
+
"docs:build": "vitepress build docs",
|
|
113
|
+
"docs:preview": "vitepress preview docs"
|
|
114
|
+
},
|
|
115
|
+
"publishConfig": {
|
|
116
|
+
"access": "public",
|
|
117
|
+
"registry": "https://registry.npmjs.org"
|
|
118
|
+
},
|
|
119
|
+
"engines": {
|
|
120
|
+
"node": ">=18.0.0"
|
|
121
|
+
},
|
|
122
|
+
"jest": {
|
|
123
|
+
"moduleFileExtensions": [
|
|
124
|
+
"js",
|
|
125
|
+
"json",
|
|
126
|
+
"ts"
|
|
127
|
+
],
|
|
128
|
+
"rootDir": ".",
|
|
129
|
+
"testMatch": [
|
|
130
|
+
"<rootDir>/packages/**/*.spec.ts"
|
|
131
|
+
],
|
|
132
|
+
"transform": {
|
|
133
|
+
"^.+\\.(t|j)s$": "ts-jest"
|
|
134
|
+
},
|
|
135
|
+
"collectCoverageFrom": [
|
|
136
|
+
"packages/**/*.(t|j)s"
|
|
137
|
+
],
|
|
138
|
+
"coverageDirectory": "./coverage",
|
|
139
|
+
"testEnvironment": "node"
|
|
140
|
+
},
|
|
141
|
+
"devDependencies": {
|
|
142
|
+
"@commitlint/cli": "^19.6.0",
|
|
143
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
144
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
145
|
+
"@eslint/js": "^9.18.0",
|
|
146
|
+
"@nestjs/common": "^11.0.1",
|
|
147
|
+
"@nestjs/core": "^11.0.1",
|
|
148
|
+
"@nestjs/testing": "^11.0.1",
|
|
149
|
+
"@types/jest": "^30.0.0",
|
|
150
|
+
"@types/node": "^22.10.7",
|
|
151
|
+
"eslint": "^9.18.0",
|
|
152
|
+
"eslint-config-prettier": "^10.0.1",
|
|
153
|
+
"eslint-plugin-prettier": "^5.2.2",
|
|
154
|
+
"globals": "^16.0.0",
|
|
155
|
+
"husky": "^9.1.0",
|
|
156
|
+
"jest": "^30.0.0",
|
|
157
|
+
"prettier": "^3.4.2",
|
|
158
|
+
"reflect-metadata": "^0.2.2",
|
|
159
|
+
"rxjs": "^7.8.1",
|
|
160
|
+
"ts-jest": "^29.2.5",
|
|
161
|
+
"typescript": "^5.7.3",
|
|
162
|
+
"typescript-eslint": "^8.20.0",
|
|
163
|
+
"vitepress": "^1.5.0"
|
|
164
|
+
}
|
|
165
|
+
}
|