@m5kdev/backend 0.6.0 → 0.8.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/dist/_virtual/_rolldown/runtime.mjs +13 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/api/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/factory.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/get-field-attributes.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/get-id-field.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/types.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/get-tables.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/account.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/rate-limit.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/session.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/shared.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/user.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/verification.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/context.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/helper.d.mts +7 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/init-options.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/plugin-client.d.mts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/plugin.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/dialect-adapter-base.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/dialect-adapter.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/dialect.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mssql/mssql-adapter.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mssql/mssql-dialect.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mssql/mssql-introspector.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mysql/mysql-adapter.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mysql/mysql-dialect.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mysql/mysql-introspector.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-adapter.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-dialect.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-introspector.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-adapter.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-dialect.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-introspector.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/expression/expression-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/index.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/kysely.d.mts +38 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/migration/file-migration-provider.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/migration/migrator.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/binary-operation-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/delete-from-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/expression-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/group-by-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/insert-values-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/join-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/merge-into-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/reference-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/returning-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/select-from-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/select-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/set-operation-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/tuple-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/unary-operation-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/update-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/update-set-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/value-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/with-parser.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/case-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/delete-query-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/having-interface.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/insert-query-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/join-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/merge-query-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/on-conflict-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/output-interface.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/returning-interface.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/select-query-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/update-query-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/where-interface.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-creator.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/default-query-executor.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/noop-query-executor.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/query-executor-base.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/query-executor-provider.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/query-executor.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/raw-builder/raw-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/raw-builder/sql.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-add-foreign-key-constraint-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-add-index-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-drop-constraint-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-executor.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-index-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-schema-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-table-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-type-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-view-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-index-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-schema-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-table-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-type-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-view-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/refresh-materialized-view-builder.d.mts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/schema.d.mts +1 -0
- package/dist/src/lib/posthog.d.mts +7 -0
- package/dist/src/lib/posthog.mjs +7 -0
- package/dist/src/lib/posthog.mjs.map +1 -0
- package/dist/src/lib/sentry.d.mts +1 -0
- package/dist/src/lib/sentry.mjs +10 -0
- package/dist/src/lib/sentry.mjs.map +1 -0
- package/dist/src/modules/access/access.repository.d.mts +2352 -0
- package/dist/src/modules/access/access.repository.mjs +24 -0
- package/dist/src/modules/access/access.repository.mjs.map +1 -0
- package/dist/src/modules/access/access.service.d.mts +25 -0
- package/dist/src/modules/access/access.service.mjs +40 -0
- package/dist/src/modules/access/access.service.mjs.map +1 -0
- package/dist/src/modules/access/access.utils.d.mts +19 -0
- package/dist/src/modules/access/access.utils.mjs +21 -0
- package/dist/src/modules/access/access.utils.mjs.map +1 -0
- package/dist/src/modules/ai/ai.db.d.mts +401 -0
- package/dist/src/modules/ai/ai.db.mjs +38 -0
- package/dist/src/modules/ai/ai.db.mjs.map +1 -0
- package/dist/src/modules/ai/ai.prompt.d.mts +30 -0
- package/dist/src/modules/ai/ai.prompt.mjs +30 -0
- package/dist/src/modules/ai/ai.prompt.mjs.map +1 -0
- package/dist/src/modules/ai/ai.prompts.d.mts +10 -0
- package/dist/src/modules/ai/{ai.prompts.js → ai.prompts.mjs} +17 -15
- package/dist/src/modules/ai/ai.prompts.mjs.map +1 -0
- package/dist/src/modules/ai/ai.repository.d.mts +428 -0
- package/dist/src/modules/ai/ai.repository.mjs +23 -0
- package/dist/src/modules/ai/ai.repository.mjs.map +1 -0
- package/dist/src/modules/ai/ai.router.d.mts +1 -0
- package/dist/src/modules/ai/ai.service.d.mts +128 -0
- package/dist/src/modules/ai/ai.service.mjs +267 -0
- package/dist/src/modules/ai/ai.service.mjs.map +1 -0
- package/dist/src/modules/ai/ai.trpc.d.mts +31 -0
- package/dist/src/modules/ai/ai.trpc.mjs +17 -0
- package/dist/src/modules/ai/ai.trpc.mjs.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.d.mts +11 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.mjs +184 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.mjs.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.d.mts +234 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.mjs +45 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.mjs.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.prompt.d.mts +7 -0
- package/dist/src/modules/ai/ideogram/{ideogram.prompt.js → ideogram.prompt.mjs} +861 -859
- package/dist/src/modules/ai/ideogram/ideogram.prompt.mjs.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.d.mts +11 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.mjs +32 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.mjs.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.d.mts +14 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.mjs +11 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.mjs.map +1 -0
- package/dist/src/modules/auth/auth.db.d.mts +2341 -0
- package/dist/src/modules/auth/auth.db.mjs +169 -0
- package/dist/src/modules/auth/auth.db.mjs.map +1 -0
- package/dist/src/modules/auth/auth.dto.d.mts +70 -0
- package/dist/src/modules/auth/auth.dto.mjs +43 -0
- package/dist/src/modules/auth/auth.dto.mjs.map +1 -0
- package/dist/src/modules/auth/auth.lib.d.mts +4894 -0
- package/dist/src/modules/auth/auth.lib.mjs +232 -0
- package/dist/src/modules/auth/auth.lib.mjs.map +1 -0
- package/dist/src/modules/auth/auth.middleware.d.mts +619 -0
- package/dist/src/modules/auth/auth.middleware.mjs +38 -0
- package/dist/src/modules/auth/auth.middleware.mjs.map +1 -0
- package/dist/src/modules/auth/auth.repository.d.mts +2453 -0
- package/dist/src/modules/auth/auth.repository.mjs +401 -0
- package/dist/src/modules/auth/auth.repository.mjs.map +1 -0
- package/dist/src/modules/auth/auth.service.d.mts +105 -0
- package/dist/src/modules/auth/auth.service.mjs +227 -0
- package/dist/src/modules/auth/auth.service.mjs.map +1 -0
- package/dist/src/modules/auth/auth.trpc.d.mts +303 -0
- package/dist/src/modules/auth/auth.trpc.mjs +108 -0
- package/dist/src/modules/auth/auth.trpc.mjs.map +1 -0
- package/dist/src/modules/auth/auth.utils.d.mts +2356 -0
- package/dist/src/modules/auth/auth.utils.mjs +77 -0
- package/dist/src/modules/auth/auth.utils.mjs.map +1 -0
- package/dist/src/modules/base/base.abstract.d.mts +29 -0
- package/dist/src/modules/base/base.abstract.mjs +60 -0
- package/dist/src/modules/base/base.abstract.mjs.map +1 -0
- package/dist/src/modules/base/base.actor.d.mts +73 -0
- package/dist/src/modules/base/base.actor.mjs +78 -0
- package/dist/src/modules/base/base.actor.mjs.map +1 -0
- package/dist/src/modules/base/base.dto.d.mts +67 -0
- package/dist/src/modules/base/base.dto.mjs +79 -0
- package/dist/src/modules/base/base.dto.mjs.map +1 -0
- package/dist/src/modules/base/base.grants.d.mts +28 -0
- package/dist/src/modules/base/base.grants.mjs +103 -0
- package/dist/src/modules/base/base.grants.mjs.map +1 -0
- package/dist/src/modules/base/base.procedure.d.mts +111 -0
- package/dist/src/modules/base/base.procedure.mjs +252 -0
- package/dist/src/modules/base/base.procedure.mjs.map +1 -0
- package/dist/src/modules/base/base.repository.d.mts +123 -0
- package/dist/src/modules/base/base.repository.mjs +250 -0
- package/dist/src/modules/base/base.repository.mjs.map +1 -0
- package/dist/src/modules/base/base.service.d.mts +44 -0
- package/dist/src/modules/base/base.service.mjs +116 -0
- package/dist/src/modules/base/base.service.mjs.map +1 -0
- package/dist/src/modules/base/base.types.d.mts +5 -0
- package/dist/src/modules/billing/billing.db.d.mts +371 -0
- package/dist/src/modules/billing/billing.db.mjs +31 -0
- package/dist/src/modules/billing/billing.db.mjs.map +1 -0
- package/dist/src/modules/billing/billing.repository.d.mts +2787 -0
- package/dist/src/modules/billing/billing.repository.mjs +188 -0
- package/dist/src/modules/billing/billing.repository.mjs.map +1 -0
- package/dist/src/modules/billing/billing.router.d.mts +9 -0
- package/dist/src/modules/billing/billing.router.mjs +40 -0
- package/dist/src/modules/billing/billing.router.mjs.map +1 -0
- package/dist/src/modules/billing/billing.service.d.mts +53 -0
- package/dist/src/modules/billing/billing.service.mjs +125 -0
- package/dist/src/modules/billing/billing.service.mjs.map +1 -0
- package/dist/src/modules/billing/billing.trpc.d.mts +29 -0
- package/dist/src/modules/billing/billing.trpc.mjs +17 -0
- package/dist/src/modules/billing/billing.trpc.mjs.map +1 -0
- package/dist/src/modules/clay/clay.repository.d.mts +10 -0
- package/dist/src/modules/clay/clay.repository.mjs +27 -0
- package/dist/src/modules/clay/clay.repository.mjs.map +1 -0
- package/dist/src/modules/clay/clay.service.d.mts +32 -0
- package/dist/src/modules/clay/clay.service.mjs +23 -0
- package/dist/src/modules/clay/clay.service.mjs.map +1 -0
- package/dist/src/modules/connect/connect.db.d.mts +362 -0
- package/dist/src/modules/connect/connect.db.mjs +30 -0
- package/dist/src/modules/connect/connect.db.mjs.map +1 -0
- package/dist/src/modules/connect/connect.dto.d.mts +79 -0
- package/dist/src/modules/connect/connect.dto.mjs +38 -0
- package/dist/src/modules/connect/connect.dto.mjs.map +1 -0
- package/dist/src/modules/connect/connect.linkedin.d.mts +7 -0
- package/dist/src/modules/connect/connect.linkedin.mjs +47 -0
- package/dist/src/modules/connect/connect.linkedin.mjs.map +1 -0
- package/dist/src/modules/connect/connect.oauth.d.mts +32 -0
- package/dist/src/modules/connect/connect.oauth.mjs +145 -0
- package/dist/src/modules/connect/connect.oauth.mjs.map +1 -0
- package/dist/src/modules/connect/connect.repository.d.mts +419 -0
- package/dist/src/modules/connect/connect.repository.mjs +40 -0
- package/dist/src/modules/connect/connect.repository.mjs.map +1 -0
- package/dist/src/modules/connect/connect.router.d.mts +9 -0
- package/dist/src/modules/connect/connect.router.mjs +46 -0
- package/dist/src/modules/connect/connect.router.mjs.map +1 -0
- package/dist/src/modules/connect/connect.service.d.mts +103 -0
- package/dist/src/modules/connect/connect.service.mjs +88 -0
- package/dist/src/modules/connect/connect.service.mjs.map +1 -0
- package/dist/src/modules/connect/connect.trpc.d.mts +53 -0
- package/dist/src/modules/connect/connect.trpc.mjs +17 -0
- package/dist/src/modules/connect/connect.trpc.mjs.map +1 -0
- package/dist/src/modules/connect/connect.types.d.mts +29 -0
- package/dist/src/modules/crypto/crypto.db.d.mts +157 -0
- package/dist/src/modules/crypto/crypto.db.mjs +19 -0
- package/dist/src/modules/crypto/crypto.db.mjs.map +1 -0
- package/dist/src/modules/crypto/crypto.repository.d.mts +163 -0
- package/dist/src/modules/crypto/crypto.repository.mjs +9 -0
- package/dist/src/modules/crypto/crypto.repository.mjs.map +1 -0
- package/dist/src/modules/crypto/crypto.service.d.mts +15 -0
- package/dist/src/modules/crypto/crypto.service.mjs +40 -0
- package/dist/src/modules/crypto/crypto.service.mjs.map +1 -0
- package/dist/src/modules/email/email.service.d.mts +62 -0
- package/dist/src/modules/email/email.service.mjs +105 -0
- package/dist/src/modules/email/email.service.mjs.map +1 -0
- package/dist/src/modules/file/file.repository.d.mts +17 -0
- package/dist/src/modules/file/file.repository.mjs +72 -0
- package/dist/src/modules/file/file.repository.mjs.map +1 -0
- package/dist/src/modules/file/{file.router.d.ts → file.router.d.mts} +4 -0
- package/dist/src/modules/file/file.router.mjs +88 -0
- package/dist/src/modules/file/file.router.mjs.map +1 -0
- package/dist/src/modules/file/file.service.d.mts +30 -0
- package/dist/src/modules/file/file.service.mjs +117 -0
- package/dist/src/modules/file/file.service.mjs.map +1 -0
- package/dist/src/modules/recurrence/recurrence.db.d.mts +568 -0
- package/dist/src/modules/recurrence/recurrence.db.mjs +47 -0
- package/dist/src/modules/recurrence/recurrence.db.mjs.map +1 -0
- package/dist/src/modules/recurrence/recurrence.repository.d.mts +588 -0
- package/dist/src/modules/recurrence/recurrence.repository.mjs +28 -0
- package/dist/src/modules/recurrence/recurrence.repository.mjs.map +1 -0
- package/dist/src/modules/recurrence/recurrence.service.d.mts +51 -0
- package/dist/src/modules/recurrence/recurrence.service.mjs +64 -0
- package/dist/src/modules/recurrence/recurrence.service.mjs.map +1 -0
- package/dist/src/modules/recurrence/recurrence.trpc.d.mts +65 -0
- package/dist/src/modules/recurrence/recurrence.trpc.mjs +44 -0
- package/dist/src/modules/recurrence/recurrence.trpc.mjs.map +1 -0
- package/dist/src/modules/social/social.dto.d.mts +39 -0
- package/dist/src/modules/social/social.dto.mjs +22 -0
- package/dist/src/modules/social/social.dto.mjs.map +1 -0
- package/dist/src/modules/social/{social.linkedin.d.ts → social.linkedin.d.mts} +8 -3
- package/dist/src/modules/social/social.linkedin.mjs +346 -0
- package/dist/src/modules/social/social.linkedin.mjs.map +1 -0
- package/dist/src/modules/social/social.service.d.mts +34 -0
- package/dist/src/modules/social/social.service.mjs +55 -0
- package/dist/src/modules/social/social.service.mjs.map +1 -0
- package/dist/src/modules/social/social.types.d.mts +40 -0
- package/dist/src/modules/tag/tag.db.d.mts +352 -0
- package/dist/src/modules/tag/tag.db.mjs +35 -0
- package/dist/src/modules/tag/tag.db.mjs.map +1 -0
- package/dist/src/modules/tag/tag.dto.d.mts +1025 -0
- package/dist/src/modules/tag/tag.dto.mjs +11 -0
- package/dist/src/modules/tag/tag.dto.mjs.map +1 -0
- package/dist/src/modules/tag/tag.repository.d.mts +394 -0
- package/dist/src/modules/tag/tag.repository.mjs +114 -0
- package/dist/src/modules/tag/tag.repository.mjs.map +1 -0
- package/dist/src/modules/tag/tag.service.d.mts +93 -0
- package/dist/src/modules/tag/tag.service.mjs +47 -0
- package/dist/src/modules/tag/tag.service.mjs.map +1 -0
- package/dist/src/modules/tag/tag.trpc.d.mts +109 -0
- package/dist/src/modules/tag/tag.trpc.mjs +30 -0
- package/dist/src/modules/tag/tag.trpc.mjs.map +1 -0
- package/dist/src/modules/utils/{applyPagination.d.ts → applyPagination.d.mts} +5 -1
- package/dist/src/modules/utils/applyPagination.mjs +15 -0
- package/dist/src/modules/utils/applyPagination.mjs.map +1 -0
- package/dist/src/modules/utils/applySorting.d.mts +13 -0
- package/dist/src/modules/utils/applySorting.mjs +18 -0
- package/dist/src/modules/utils/applySorting.mjs.map +1 -0
- package/dist/src/modules/utils/getConditionsFromFilters.d.mts +9 -0
- package/dist/src/modules/utils/getConditionsFromFilters.mjs +150 -0
- package/dist/src/modules/utils/getConditionsFromFilters.mjs.map +1 -0
- package/dist/src/modules/video/video.service.d.mts +12 -0
- package/dist/src/modules/video/video.service.mjs +50 -0
- package/dist/src/modules/video/video.service.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.constants.d.mts +12 -0
- package/dist/src/modules/webhook/webhook.constants.mjs +12 -0
- package/dist/src/modules/webhook/webhook.constants.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.db.d.mts +142 -0
- package/dist/src/modules/webhook/webhook.db.mjs +17 -0
- package/dist/src/modules/webhook/webhook.db.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.dto.d.mts +402 -0
- package/dist/src/modules/webhook/webhook.dto.mjs +9 -0
- package/dist/src/modules/webhook/webhook.dto.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.repository.d.mts +154 -0
- package/dist/src/modules/webhook/webhook.repository.mjs +50 -0
- package/dist/src/modules/webhook/webhook.repository.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.router.d.mts +8 -0
- package/dist/src/modules/webhook/webhook.router.mjs +23 -0
- package/dist/src/modules/webhook/webhook.router.mjs.map +1 -0
- package/dist/src/modules/webhook/webhook.service.d.mts +14 -0
- package/dist/src/modules/webhook/webhook.service.mjs +59 -0
- package/dist/src/modules/webhook/webhook.service.mjs.map +1 -0
- package/dist/src/modules/workflow/workflow.db.d.mts +302 -0
- package/dist/src/modules/workflow/workflow.db.mjs +28 -0
- package/dist/src/modules/workflow/workflow.db.mjs.map +1 -0
- package/dist/src/modules/workflow/workflow.repository.d.mts +371 -0
- package/dist/src/modules/workflow/workflow.repository.mjs +93 -0
- package/dist/src/modules/workflow/workflow.repository.mjs.map +1 -0
- package/dist/src/modules/workflow/workflow.service.d.mts +31 -0
- package/dist/src/modules/workflow/workflow.service.mjs +40 -0
- package/dist/src/modules/workflow/workflow.service.mjs.map +1 -0
- package/dist/src/modules/workflow/workflow.trpc.d.mts +28 -0
- package/dist/src/modules/workflow/workflow.trpc.mjs +17 -0
- package/dist/src/modules/workflow/workflow.trpc.mjs.map +1 -0
- package/dist/src/modules/workflow/workflow.types.d.mts +25 -0
- package/dist/src/modules/workflow/workflow.utils.d.mts +36 -0
- package/dist/src/modules/workflow/workflow.utils.mjs +181 -0
- package/dist/src/modules/workflow/workflow.utils.mjs.map +1 -0
- package/dist/src/types.d.mts +346 -0
- package/dist/src/types.mjs +13 -0
- package/dist/src/types.mjs.map +1 -0
- package/dist/src/utils/errors.d.mts +62 -0
- package/dist/src/utils/errors.mjs +96 -0
- package/dist/src/utils/errors.mjs.map +1 -0
- package/dist/src/utils/logger.d.mts +7 -0
- package/dist/src/utils/logger.mjs +10 -0
- package/dist/src/utils/logger.mjs.map +1 -0
- package/dist/src/utils/posthog.d.mts +17 -0
- package/dist/src/utils/posthog.mjs +25 -0
- package/dist/src/utils/posthog.mjs.map +1 -0
- package/dist/src/utils/trpc.d.mts +54 -0
- package/dist/src/utils/trpc.mjs +146 -0
- package/dist/src/utils/trpc.mjs.map +1 -0
- package/dist/src/utils/types.d.mts +9 -0
- package/package.json +5 -4
- package/dist/src/lib/posthog.d.ts +0 -2
- package/dist/src/lib/posthog.js +0 -7
- package/dist/src/lib/sentry.js +0 -9
- package/dist/src/modules/access/access.repository.d.ts +0 -2347
- package/dist/src/modules/access/access.repository.js +0 -32
- package/dist/src/modules/access/access.service.d.ts +0 -21
- package/dist/src/modules/access/access.service.js +0 -51
- package/dist/src/modules/access/access.test.js +0 -182
- package/dist/src/modules/access/access.utils.d.ts +0 -16
- package/dist/src/modules/access/access.utils.js +0 -20
- package/dist/src/modules/ai/ai.db.d.ts +0 -395
- package/dist/src/modules/ai/ai.db.js +0 -39
- package/dist/src/modules/ai/ai.prompt.d.ts +0 -26
- package/dist/src/modules/ai/ai.prompt.js +0 -30
- package/dist/src/modules/ai/ai.prompts.d.ts +0 -5
- package/dist/src/modules/ai/ai.repository.d.ts +0 -423
- package/dist/src/modules/ai/ai.repository.js +0 -26
- package/dist/src/modules/ai/ai.router.js +0 -132
- package/dist/src/modules/ai/ai.service.d.ts +0 -127
- package/dist/src/modules/ai/ai.service.js +0 -297
- package/dist/src/modules/ai/ai.trpc.d.ts +0 -22
- package/dist/src/modules/ai/ai.trpc.js +0 -20
- package/dist/src/modules/ai/ideogram/ideogram.constants.d.ts +0 -7
- package/dist/src/modules/ai/ideogram/ideogram.constants.js +0 -167
- package/dist/src/modules/ai/ideogram/ideogram.dto.d.ts +0 -229
- package/dist/src/modules/ai/ideogram/ideogram.dto.js +0 -49
- package/dist/src/modules/ai/ideogram/ideogram.prompt.d.ts +0 -2
- package/dist/src/modules/ai/ideogram/ideogram.repository.d.ts +0 -6
- package/dist/src/modules/ai/ideogram/ideogram.repository.js +0 -46
- package/dist/src/modules/ai/ideogram/ideogram.service.d.ts +0 -9
- package/dist/src/modules/ai/ideogram/ideogram.service.js +0 -11
- package/dist/src/modules/auth/auth.db.d.ts +0 -2335
- package/dist/src/modules/auth/auth.db.js +0 -215
- package/dist/src/modules/auth/auth.dto.d.ts +0 -65
- package/dist/src/modules/auth/auth.dto.js +0 -38
- package/dist/src/modules/auth/auth.lib.d.ts +0 -4873
- package/dist/src/modules/auth/auth.lib.js +0 -284
- package/dist/src/modules/auth/auth.middleware.d.ts +0 -614
- package/dist/src/modules/auth/auth.middleware.js +0 -52
- package/dist/src/modules/auth/auth.repository.d.ts +0 -2421
- package/dist/src/modules/auth/auth.repository.js +0 -636
- package/dist/src/modules/auth/auth.service.d.ts +0 -108
- package/dist/src/modules/auth/auth.service.js +0 -246
- package/dist/src/modules/auth/auth.trpc.d.ts +0 -292
- package/dist/src/modules/auth/auth.trpc.js +0 -179
- package/dist/src/modules/auth/auth.utils.d.ts +0 -2351
- package/dist/src/modules/auth/auth.utils.js +0 -97
- package/dist/src/modules/base/base.abstract.d.ts +0 -19
- package/dist/src/modules/base/base.abstract.js +0 -62
- package/dist/src/modules/base/base.dto.d.ts +0 -69
- package/dist/src/modules/base/base.dto.js +0 -112
- package/dist/src/modules/base/base.grants.d.ts +0 -28
- package/dist/src/modules/base/base.grants.js +0 -123
- package/dist/src/modules/base/base.grants.test.js +0 -668
- package/dist/src/modules/base/base.procedure.d.ts +0 -112
- package/dist/src/modules/base/base.procedure.js +0 -289
- package/dist/src/modules/base/base.repository.d.ts +0 -97
- package/dist/src/modules/base/base.repository.js +0 -317
- package/dist/src/modules/base/base.service.d.ts +0 -52
- package/dist/src/modules/base/base.service.js +0 -116
- package/dist/src/modules/base/base.service.test.js +0 -415
- package/dist/src/modules/base/base.types.d.ts +0 -1
- package/dist/src/modules/base/base.types.js +0 -2
- package/dist/src/modules/billing/billing.db.d.ts +0 -365
- package/dist/src/modules/billing/billing.db.js +0 -29
- package/dist/src/modules/billing/billing.repository.d.ts +0 -2763
- package/dist/src/modules/billing/billing.repository.js +0 -235
- package/dist/src/modules/billing/billing.router.d.ts +0 -4
- package/dist/src/modules/billing/billing.router.js +0 -56
- package/dist/src/modules/billing/billing.service.d.ts +0 -59
- package/dist/src/modules/billing/billing.service.js +0 -147
- package/dist/src/modules/billing/billing.trpc.d.ts +0 -38
- package/dist/src/modules/billing/billing.trpc.js +0 -17
- package/dist/src/modules/clay/clay.repository.d.ts +0 -5
- package/dist/src/modules/clay/clay.repository.js +0 -26
- package/dist/src/modules/clay/clay.service.d.ts +0 -28
- package/dist/src/modules/clay/clay.service.js +0 -24
- package/dist/src/modules/connect/connect.db.d.ts +0 -356
- package/dist/src/modules/connect/connect.db.js +0 -30
- package/dist/src/modules/connect/connect.dto.d.ts +0 -74
- package/dist/src/modules/connect/connect.dto.js +0 -36
- package/dist/src/modules/connect/connect.linkedin.d.ts +0 -2
- package/dist/src/modules/connect/connect.linkedin.js +0 -53
- package/dist/src/modules/connect/connect.oauth.d.ts +0 -27
- package/dist/src/modules/connect/connect.oauth.js +0 -198
- package/dist/src/modules/connect/connect.repository.d.ts +0 -413
- package/dist/src/modules/connect/connect.repository.js +0 -54
- package/dist/src/modules/connect/connect.router.d.ts +0 -4
- package/dist/src/modules/connect/connect.router.js +0 -54
- package/dist/src/modules/connect/connect.service.d.ts +0 -88
- package/dist/src/modules/connect/connect.service.js +0 -114
- package/dist/src/modules/connect/connect.trpc.d.ts +0 -44
- package/dist/src/modules/connect/connect.trpc.js +0 -21
- package/dist/src/modules/connect/connect.types.d.ts +0 -25
- package/dist/src/modules/connect/connect.types.js +0 -2
- package/dist/src/modules/crypto/crypto.db.d.ts +0 -151
- package/dist/src/modules/crypto/crypto.db.js +0 -17
- package/dist/src/modules/crypto/crypto.repository.d.ts +0 -159
- package/dist/src/modules/crypto/crypto.repository.js +0 -10
- package/dist/src/modules/crypto/crypto.service.d.ts +0 -10
- package/dist/src/modules/crypto/crypto.service.js +0 -52
- package/dist/src/modules/email/email.service.d.ts +0 -56
- package/dist/src/modules/email/email.service.js +0 -106
- package/dist/src/modules/file/file.repository.d.ts +0 -12
- package/dist/src/modules/file/file.repository.js +0 -79
- package/dist/src/modules/file/file.router.js +0 -99
- package/dist/src/modules/file/file.service.d.ts +0 -24
- package/dist/src/modules/file/file.service.js +0 -150
- package/dist/src/modules/recurrence/recurrence.db.d.ts +0 -562
- package/dist/src/modules/recurrence/recurrence.db.js +0 -66
- package/dist/src/modules/recurrence/recurrence.repository.d.ts +0 -584
- package/dist/src/modules/recurrence/recurrence.repository.js +0 -39
- package/dist/src/modules/recurrence/recurrence.service.d.ts +0 -50
- package/dist/src/modules/recurrence/recurrence.service.js +0 -69
- package/dist/src/modules/recurrence/recurrence.trpc.d.ts +0 -206
- package/dist/src/modules/recurrence/recurrence.trpc.js +0 -65
- package/dist/src/modules/social/social.dto.d.ts +0 -34
- package/dist/src/modules/social/social.dto.js +0 -18
- package/dist/src/modules/social/social.linkedin.js +0 -427
- package/dist/src/modules/social/social.linkedin.test.js +0 -235
- package/dist/src/modules/social/social.service.d.ts +0 -28
- package/dist/src/modules/social/social.service.js +0 -76
- package/dist/src/modules/social/social.types.d.ts +0 -35
- package/dist/src/modules/social/social.types.js +0 -2
- package/dist/src/modules/tag/tag.db.d.ts +0 -346
- package/dist/src/modules/tag/tag.db.js +0 -42
- package/dist/src/modules/tag/tag.dto.d.ts +0 -1018
- package/dist/src/modules/tag/tag.dto.js +0 -9
- package/dist/src/modules/tag/tag.repository.d.ts +0 -383
- package/dist/src/modules/tag/tag.repository.js +0 -156
- package/dist/src/modules/tag/tag.service.d.ts +0 -109
- package/dist/src/modules/tag/tag.service.js +0 -42
- package/dist/src/modules/tag/tag.trpc.d.ts +0 -164
- package/dist/src/modules/tag/tag.trpc.js +0 -53
- package/dist/src/modules/utils/applyPagination.js +0 -16
- package/dist/src/modules/utils/applySorting.d.ts +0 -8
- package/dist/src/modules/utils/applySorting.js +0 -18
- package/dist/src/modules/utils/getConditionsFromFilters.d.ts +0 -4
- package/dist/src/modules/utils/getConditionsFromFilters.js +0 -200
- package/dist/src/modules/video/video.service.d.ts +0 -7
- package/dist/src/modules/video/video.service.js +0 -84
- package/dist/src/modules/webhook/webhook.constants.d.ts +0 -8
- package/dist/src/modules/webhook/webhook.constants.js +0 -10
- package/dist/src/modules/webhook/webhook.db.d.ts +0 -136
- package/dist/src/modules/webhook/webhook.db.js +0 -17
- package/dist/src/modules/webhook/webhook.dto.d.ts +0 -394
- package/dist/src/modules/webhook/webhook.dto.js +0 -7
- package/dist/src/modules/webhook/webhook.repository.d.ts +0 -148
- package/dist/src/modules/webhook/webhook.repository.js +0 -56
- package/dist/src/modules/webhook/webhook.router.d.ts +0 -3
- package/dist/src/modules/webhook/webhook.router.js +0 -30
- package/dist/src/modules/webhook/webhook.service.d.ts +0 -9
- package/dist/src/modules/webhook/webhook.service.js +0 -68
- package/dist/src/modules/workflow/workflow.db.d.ts +0 -296
- package/dist/src/modules/workflow/workflow.db.js +0 -30
- package/dist/src/modules/workflow/workflow.repository.d.ts +0 -343
- package/dist/src/modules/workflow/workflow.repository.js +0 -105
- package/dist/src/modules/workflow/workflow.service.d.ts +0 -21
- package/dist/src/modules/workflow/workflow.service.js +0 -37
- package/dist/src/modules/workflow/workflow.trpc.d.ts +0 -56
- package/dist/src/modules/workflow/workflow.trpc.js +0 -21
- package/dist/src/modules/workflow/workflow.types.d.ts +0 -20
- package/dist/src/modules/workflow/workflow.types.js +0 -2
- package/dist/src/modules/workflow/workflow.utils.d.ts +0 -21
- package/dist/src/modules/workflow/workflow.utils.js +0 -173
- package/dist/src/test/stubs/utils.d.ts +0 -2
- package/dist/src/test/stubs/utils.js +0 -5
- package/dist/src/trpc/context.d.ts +0 -41
- package/dist/src/trpc/context.js +0 -17
- package/dist/src/trpc/index.d.ts +0 -3
- package/dist/src/trpc/index.js +0 -6
- package/dist/src/trpc/procedures.d.ts +0 -233
- package/dist/src/trpc/procedures.js +0 -32
- package/dist/src/trpc/utils.d.ts +0 -4
- package/dist/src/trpc/utils.js +0 -20
- package/dist/src/types.d.ts +0 -358
- package/dist/src/types.js +0 -12
- package/dist/src/utils/errors.d.ts +0 -49
- package/dist/src/utils/errors.js +0 -104
- package/dist/src/utils/logger.d.ts +0 -1
- package/dist/src/utils/logger.js +0 -11
- package/dist/src/utils/posthog.d.ts +0 -13
- package/dist/src/utils/posthog.js +0 -31
- package/dist/src/utils/trpc.d.ts +0 -58
- package/dist/src/utils/trpc.js +0 -63
- package/dist/src/utils/types.d.ts +0 -4
- package/dist/src/utils/types.js +0 -2
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/dist/src/{lib/sentry.d.ts → modules/ai/ai.router.mjs} +0 -0
- /package/dist/src/modules/{access/access.test.d.ts → base/base.types.mjs} +0 -0
- /package/dist/src/modules/{ai/ai.router.d.ts → connect/connect.types.mjs} +0 -0
- /package/dist/src/modules/{base/base.grants.test.d.ts → social/social.types.mjs} +0 -0
- /package/dist/src/modules/{base/base.service.test.d.ts → workflow/workflow.types.mjs} +0 -0
- /package/dist/src/{modules/social/social.linkedin.test.d.ts → utils/types.mjs} +0 -0
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TagService = void 0;
|
|
4
|
-
const base_service_1 = require("../base/base.service");
|
|
5
|
-
class TagService extends base_service_1.BaseService {
|
|
6
|
-
async list(input) {
|
|
7
|
-
return this.repository.tag.list(input);
|
|
8
|
-
}
|
|
9
|
-
async listTaggings(input) {
|
|
10
|
-
return this.repository.tag.listTaggings(input);
|
|
11
|
-
}
|
|
12
|
-
create = this.procedure("create")
|
|
13
|
-
.requireAuth()
|
|
14
|
-
.handle(({ input, ctx }) => {
|
|
15
|
-
return this.repository.tag.create({ ...input, userId: ctx.user.id });
|
|
16
|
-
});
|
|
17
|
-
update = this.procedure("update")
|
|
18
|
-
.requireAuth()
|
|
19
|
-
.handle(({ input, ctx }) => {
|
|
20
|
-
return this.repository.tag.update({ ...input, userId: ctx.user.id });
|
|
21
|
-
});
|
|
22
|
-
link = this.procedure("link")
|
|
23
|
-
.requireAuth()
|
|
24
|
-
.handle(({ input, ctx }) => {
|
|
25
|
-
return this.repository.tag.link({ ...input, userId: ctx.user.id });
|
|
26
|
-
});
|
|
27
|
-
async linkBulk(data) {
|
|
28
|
-
return this.repository.tag.linkBulk(data);
|
|
29
|
-
}
|
|
30
|
-
async set(data) {
|
|
31
|
-
return this.repository.tag.set(data);
|
|
32
|
-
}
|
|
33
|
-
unlink = this.procedure("unlink")
|
|
34
|
-
.requireAuth()
|
|
35
|
-
.handle(({ input, ctx }) => {
|
|
36
|
-
return this.repository.tag.unlink({ ...input, userId: ctx.user.id });
|
|
37
|
-
});
|
|
38
|
-
async delete(data) {
|
|
39
|
-
return this.repository.tag.softDeleteById(data.id);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.TagService = TagService;
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { type TRPCMethods } from "../../utils/trpc";
|
|
2
|
-
import type { TagService } from "./tag.service";
|
|
3
|
-
export declare function createTagTRPC({ router, privateProcedure: procedure }: TRPCMethods, tagService: TagService): import("@trpc/server").TRPCBuiltRouter<{
|
|
4
|
-
ctx: import("../auth/auth.lib").Context;
|
|
5
|
-
meta: any;
|
|
6
|
-
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
7
|
-
transformer: true;
|
|
8
|
-
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
9
|
-
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
10
|
-
input: {
|
|
11
|
-
page?: number | undefined;
|
|
12
|
-
limit?: number | undefined;
|
|
13
|
-
sort?: string | undefined;
|
|
14
|
-
order?: "asc" | "desc" | undefined;
|
|
15
|
-
filters?: {
|
|
16
|
-
columnId: string;
|
|
17
|
-
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
18
|
-
method: "on" | "contains" | "equals" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "intersect" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
|
|
19
|
-
value: string | number | boolean | string[];
|
|
20
|
-
valueTo?: string | undefined;
|
|
21
|
-
endColumnId?: string | undefined;
|
|
22
|
-
}[] | undefined;
|
|
23
|
-
assignableTo?: string | undefined;
|
|
24
|
-
};
|
|
25
|
-
output: {
|
|
26
|
-
rows: {
|
|
27
|
-
id: string;
|
|
28
|
-
createdAt: Date;
|
|
29
|
-
userId: string;
|
|
30
|
-
name: string;
|
|
31
|
-
isEnabled: boolean;
|
|
32
|
-
assignableTo: string[] | null;
|
|
33
|
-
organizationId?: string | null | undefined;
|
|
34
|
-
teamId?: string | null | undefined;
|
|
35
|
-
updatedAt?: Date | null | undefined;
|
|
36
|
-
deletedAt?: Date | null | undefined;
|
|
37
|
-
color?: string | null | undefined;
|
|
38
|
-
type?: string | null | undefined;
|
|
39
|
-
parentId?: string | null | undefined;
|
|
40
|
-
}[];
|
|
41
|
-
total: number;
|
|
42
|
-
};
|
|
43
|
-
meta: any;
|
|
44
|
-
}>;
|
|
45
|
-
listTaggings: import("@trpc/server").TRPCQueryProcedure<{
|
|
46
|
-
input: {
|
|
47
|
-
resourceType: string;
|
|
48
|
-
resourceIds?: {
|
|
49
|
-
columnId: string;
|
|
50
|
-
type: "string" | "number" | "boolean" | "date" | "enum";
|
|
51
|
-
method: "on" | "contains" | "equals" | "starts_with" | "ends_with" | "greater_than" | "less_than" | "between" | "before" | "after" | "oneOf" | "intersect" | "isEmpty" | "isNotEmpty" | "is_null" | "is_not_null";
|
|
52
|
-
value: string | number | boolean | string[];
|
|
53
|
-
valueTo?: string | undefined;
|
|
54
|
-
endColumnId?: string | undefined;
|
|
55
|
-
}[] | undefined;
|
|
56
|
-
};
|
|
57
|
-
output: {
|
|
58
|
-
id: string;
|
|
59
|
-
createdAt: Date;
|
|
60
|
-
tagId: string;
|
|
61
|
-
resourceType: string;
|
|
62
|
-
resourceId: string;
|
|
63
|
-
}[];
|
|
64
|
-
meta: any;
|
|
65
|
-
}>;
|
|
66
|
-
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
67
|
-
input: {
|
|
68
|
-
name: string;
|
|
69
|
-
color: string;
|
|
70
|
-
organizationId?: string | undefined;
|
|
71
|
-
teamId?: string | undefined;
|
|
72
|
-
assignableTo?: string[] | undefined;
|
|
73
|
-
resourceType?: string | undefined;
|
|
74
|
-
resourceId?: string | undefined;
|
|
75
|
-
};
|
|
76
|
-
output: {
|
|
77
|
-
id: string;
|
|
78
|
-
createdAt: Date;
|
|
79
|
-
updatedAt: Date | null;
|
|
80
|
-
deletedAt: Date | null;
|
|
81
|
-
userId: string;
|
|
82
|
-
organizationId: string | null;
|
|
83
|
-
teamId: string | null;
|
|
84
|
-
name: string;
|
|
85
|
-
color: string | null;
|
|
86
|
-
type: string | null;
|
|
87
|
-
isEnabled: boolean;
|
|
88
|
-
parentId: string | null;
|
|
89
|
-
assignableTo: string[];
|
|
90
|
-
};
|
|
91
|
-
meta: any;
|
|
92
|
-
}>;
|
|
93
|
-
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
94
|
-
input: {
|
|
95
|
-
id: string;
|
|
96
|
-
name?: string | undefined;
|
|
97
|
-
color?: string | undefined;
|
|
98
|
-
assignableTo?: string[] | undefined;
|
|
99
|
-
};
|
|
100
|
-
output: {
|
|
101
|
-
id: string;
|
|
102
|
-
createdAt: Date;
|
|
103
|
-
updatedAt: Date | null;
|
|
104
|
-
deletedAt: Date | null;
|
|
105
|
-
userId: string;
|
|
106
|
-
organizationId: string | null;
|
|
107
|
-
teamId: string | null;
|
|
108
|
-
name: string;
|
|
109
|
-
color: string | null;
|
|
110
|
-
type: string | null;
|
|
111
|
-
isEnabled: boolean;
|
|
112
|
-
parentId: string | null;
|
|
113
|
-
assignableTo: string[];
|
|
114
|
-
};
|
|
115
|
-
meta: any;
|
|
116
|
-
}>;
|
|
117
|
-
link: import("@trpc/server").TRPCMutationProcedure<{
|
|
118
|
-
input: {
|
|
119
|
-
tagId: string;
|
|
120
|
-
resourceType: string;
|
|
121
|
-
resourceId: string;
|
|
122
|
-
};
|
|
123
|
-
output: {
|
|
124
|
-
id: string;
|
|
125
|
-
createdAt: Date;
|
|
126
|
-
tagId: string;
|
|
127
|
-
resourceType: string;
|
|
128
|
-
resourceId: string;
|
|
129
|
-
};
|
|
130
|
-
meta: any;
|
|
131
|
-
}>;
|
|
132
|
-
unlink: import("@trpc/server").TRPCMutationProcedure<{
|
|
133
|
-
input: {
|
|
134
|
-
tagId: string;
|
|
135
|
-
resourceType: string;
|
|
136
|
-
resourceId: string;
|
|
137
|
-
};
|
|
138
|
-
output: {
|
|
139
|
-
id: string;
|
|
140
|
-
createdAt: Date;
|
|
141
|
-
updatedAt: Date | null;
|
|
142
|
-
deletedAt: Date | null;
|
|
143
|
-
userId: string;
|
|
144
|
-
organizationId: string | null;
|
|
145
|
-
teamId: string | null;
|
|
146
|
-
name: string;
|
|
147
|
-
color: string | null;
|
|
148
|
-
type: string | null;
|
|
149
|
-
isEnabled: boolean;
|
|
150
|
-
parentId: string | null;
|
|
151
|
-
assignableTo: string[];
|
|
152
|
-
};
|
|
153
|
-
meta: any;
|
|
154
|
-
}>;
|
|
155
|
-
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
156
|
-
input: {
|
|
157
|
-
id: string;
|
|
158
|
-
};
|
|
159
|
-
output: {
|
|
160
|
-
id: string;
|
|
161
|
-
};
|
|
162
|
-
meta: any;
|
|
163
|
-
}>;
|
|
164
|
-
}>>;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTagTRPC = createTagTRPC;
|
|
4
|
-
const tag_schema_1 = require("@m5kdev/commons/modules/tag/tag.schema");
|
|
5
|
-
const trpc_1 = require("../../utils/trpc");
|
|
6
|
-
const tag_dto_1 = require("./tag.dto");
|
|
7
|
-
function createTagTRPC({ router, privateProcedure: procedure }, tagService) {
|
|
8
|
-
const tagListInput = tag_schema_1.tagListInputSchema.extend({
|
|
9
|
-
assignableTo: tag_schema_1.tagListSchema.shape.assignableTo,
|
|
10
|
-
});
|
|
11
|
-
return router({
|
|
12
|
-
list: procedure
|
|
13
|
-
.input(tagListInput)
|
|
14
|
-
.output(tag_schema_1.tagListOutputSchema)
|
|
15
|
-
.query(async ({ input }) => (0, trpc_1.handleTRPCResult)(await tagService.list(input))),
|
|
16
|
-
listTaggings: procedure
|
|
17
|
-
.input(tag_schema_1.taggingSchema
|
|
18
|
-
.pick({ resourceType: true })
|
|
19
|
-
.extend({ resourceIds: tag_schema_1.tagListInputSchema.shape.filters.optional() }))
|
|
20
|
-
.output(tag_dto_1.taggingsSelectOutput.array())
|
|
21
|
-
.query(async ({ input }) => (0, trpc_1.handleTRPCResult)(await tagService.listTaggings(input))),
|
|
22
|
-
create: procedure
|
|
23
|
-
.input(tag_schema_1.tagCreateSchema)
|
|
24
|
-
.output(tag_dto_1.tagsSelectOutput)
|
|
25
|
-
.mutation(async ({ ctx, input }) => {
|
|
26
|
-
return (0, trpc_1.handleTRPCResult)(await tagService.create(input, ctx));
|
|
27
|
-
}),
|
|
28
|
-
update: procedure
|
|
29
|
-
.input(tag_schema_1.tagUpdateSchema)
|
|
30
|
-
.output(tag_dto_1.tagsSelectOutput)
|
|
31
|
-
.mutation(async ({ ctx, input }) => {
|
|
32
|
-
return (0, trpc_1.handleTRPCResult)(await tagService.update(input, ctx));
|
|
33
|
-
}),
|
|
34
|
-
link: procedure
|
|
35
|
-
.input(tag_schema_1.tagLinkSchema)
|
|
36
|
-
.output(tag_dto_1.taggingsSelectOutput)
|
|
37
|
-
.mutation(async ({ ctx, input }) => {
|
|
38
|
-
return (0, trpc_1.handleTRPCResult)(await tagService.link(input, ctx));
|
|
39
|
-
}),
|
|
40
|
-
unlink: procedure
|
|
41
|
-
.input(tag_schema_1.tagLinkSchema)
|
|
42
|
-
.output(tag_dto_1.tagsSelectOutput)
|
|
43
|
-
.mutation(async ({ ctx, input }) => {
|
|
44
|
-
return (0, trpc_1.handleTRPCResult)(await tagService.unlink(input, ctx));
|
|
45
|
-
}),
|
|
46
|
-
delete: procedure
|
|
47
|
-
.input(tag_schema_1.tagDeleteSchema)
|
|
48
|
-
.output(tag_dto_1.tagsSelectOutput.pick({ id: true }))
|
|
49
|
-
.mutation(async ({ input }) => {
|
|
50
|
-
return (0, trpc_1.handleTRPCResult)(await tagService.delete(input));
|
|
51
|
-
}),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Applies pagination (limit and offset) to a drizzle query builder.
|
|
4
|
-
* Returns the query builder with pagination applied, or the original query if no limit is specified.
|
|
5
|
-
* Page is 1-based and only applied if limit is also provided.
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.applyPagination = void 0;
|
|
9
|
-
const applyPagination = (query, limit, page) => {
|
|
10
|
-
if (limit)
|
|
11
|
-
query.limit(limit);
|
|
12
|
-
if (page && page > 1 && limit)
|
|
13
|
-
query.offset((page - 1) * limit);
|
|
14
|
-
return query;
|
|
15
|
-
};
|
|
16
|
-
exports.applyPagination = applyPagination;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SQLiteTableWithColumns } from "drizzle-orm/sqlite-core";
|
|
2
|
-
/**
|
|
3
|
-
* Applies sorting to a drizzle query builder.
|
|
4
|
-
* Returns the query builder with sorting applied.
|
|
5
|
-
* If no sort or order is specified, defaults to createdAt descending.
|
|
6
|
-
* If createdAt column doesn't exist, returns the query unchanged.
|
|
7
|
-
*/
|
|
8
|
-
export declare const applySorting: <TQuery, TTable extends SQLiteTableWithColumns<any>>(query: TQuery, table: TTable, sort?: string, order?: "asc" | "desc") => TQuery;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applySorting = void 0;
|
|
4
|
-
const drizzle_orm_1 = require("drizzle-orm");
|
|
5
|
-
/**
|
|
6
|
-
* Applies sorting to a drizzle query builder.
|
|
7
|
-
* Returns the query builder with sorting applied.
|
|
8
|
-
* If no sort or order is specified, defaults to createdAt descending.
|
|
9
|
-
* If createdAt column doesn't exist, returns the query unchanged.
|
|
10
|
-
*/
|
|
11
|
-
const applySorting = (query, table, sort, order) => {
|
|
12
|
-
const column = sort ? table[sort] : table.createdAt || table.id;
|
|
13
|
-
if (!column)
|
|
14
|
-
throw new Error(`Column ${sort} not found in table ${table.name}`);
|
|
15
|
-
query.orderBy(order === "asc" ? (0, drizzle_orm_1.asc)(column) : (0, drizzle_orm_1.desc)(column));
|
|
16
|
-
return query;
|
|
17
|
-
};
|
|
18
|
-
exports.applySorting = applySorting;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { QueryFilters } from "@m5kdev/commons/modules/schemas/query.schema";
|
|
2
|
-
import type { SQLiteTableWithColumns } from "drizzle-orm/sqlite-core";
|
|
3
|
-
import type { ConditionBuilder } from "../base/base.repository";
|
|
4
|
-
export declare const getConditionsFromFilters: <T extends SQLiteTableWithColumns<any>>(conditions: ConditionBuilder, filters: QueryFilters | undefined, table: T) => ConditionBuilder;
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getConditionsFromFilters = void 0;
|
|
4
|
-
const drizzle_orm_1 = require("drizzle-orm");
|
|
5
|
-
const luxon_1 = require("luxon");
|
|
6
|
-
// Helper: Create UTC date boundaries from ISO string
|
|
7
|
-
const getUTCDateBoundaries = (isoString) => {
|
|
8
|
-
const dateTime = luxon_1.DateTime.fromISO(isoString, { zone: "utc" });
|
|
9
|
-
return {
|
|
10
|
-
start: dateTime.startOf("day").toJSDate(),
|
|
11
|
-
end: dateTime.endOf("day").toJSDate(),
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
const getConditionsFromFilters = (conditions, filters, table) => {
|
|
15
|
-
if (!filters || filters.length === 0) {
|
|
16
|
-
return conditions;
|
|
17
|
-
}
|
|
18
|
-
// Process each filter (maximum one filter per column)
|
|
19
|
-
for (const filter of filters) {
|
|
20
|
-
const { columnId, type, method, value, valueTo } = filter;
|
|
21
|
-
// Get the column from the table using columnId
|
|
22
|
-
const column = table[columnId];
|
|
23
|
-
if (!column) {
|
|
24
|
-
continue; // Skip if column doesn't exist
|
|
25
|
-
}
|
|
26
|
-
// Handle isEmpty/isNotEmpty methods (work across types, ignore value)
|
|
27
|
-
if (method === "isEmpty" || method === "isNotEmpty") {
|
|
28
|
-
switch (type) {
|
|
29
|
-
case "string":
|
|
30
|
-
case "enum":
|
|
31
|
-
// isEmpty: IS NULL OR = ''
|
|
32
|
-
// isNotEmpty: IS NOT NULL AND != ''
|
|
33
|
-
if (method === "isEmpty") {
|
|
34
|
-
conditions.push((0, drizzle_orm_1.or)((0, drizzle_orm_1.isNull)(column), (0, drizzle_orm_1.eq)(column, "")));
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
conditions.push((0, drizzle_orm_1.and)((0, drizzle_orm_1.isNotNull)(column), (0, drizzle_orm_1.ne)(column, "")));
|
|
38
|
-
}
|
|
39
|
-
continue;
|
|
40
|
-
case "number":
|
|
41
|
-
// isEmpty: IS NULL OR = 0
|
|
42
|
-
// isNotEmpty: IS NOT NULL AND != 0
|
|
43
|
-
if (method === "isEmpty") {
|
|
44
|
-
conditions.push((0, drizzle_orm_1.or)((0, drizzle_orm_1.isNull)(column), (0, drizzle_orm_1.eq)(column, 0)));
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
conditions.push((0, drizzle_orm_1.and)((0, drizzle_orm_1.isNotNull)(column), (0, drizzle_orm_1.ne)(column, 0)));
|
|
48
|
-
}
|
|
49
|
-
continue;
|
|
50
|
-
case "boolean":
|
|
51
|
-
// Should not happen per plan, but handle gracefully
|
|
52
|
-
continue;
|
|
53
|
-
default:
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
// Apply filter based on type and method
|
|
58
|
-
switch (type) {
|
|
59
|
-
case "string":
|
|
60
|
-
switch (method) {
|
|
61
|
-
case "contains":
|
|
62
|
-
if (typeof value === "string") {
|
|
63
|
-
conditions.push((0, drizzle_orm_1.like)(column, `%${value}%`));
|
|
64
|
-
}
|
|
65
|
-
break;
|
|
66
|
-
case "equals":
|
|
67
|
-
if (typeof value === "string") {
|
|
68
|
-
conditions.push((0, drizzle_orm_1.eq)(column, value));
|
|
69
|
-
}
|
|
70
|
-
break;
|
|
71
|
-
case "starts_with":
|
|
72
|
-
if (typeof value === "string") {
|
|
73
|
-
conditions.push((0, drizzle_orm_1.like)(column, `${value}%`));
|
|
74
|
-
}
|
|
75
|
-
break;
|
|
76
|
-
case "ends_with":
|
|
77
|
-
if (typeof value === "string") {
|
|
78
|
-
conditions.push((0, drizzle_orm_1.like)(column, `%${value}`));
|
|
79
|
-
}
|
|
80
|
-
break;
|
|
81
|
-
case "is_null":
|
|
82
|
-
conditions.push((0, drizzle_orm_1.isNull)(column));
|
|
83
|
-
break;
|
|
84
|
-
case "is_not_null":
|
|
85
|
-
conditions.push((0, drizzle_orm_1.isNotNull)(column));
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
break;
|
|
89
|
-
case "number":
|
|
90
|
-
switch (method) {
|
|
91
|
-
case "equals":
|
|
92
|
-
if (typeof value === "number") {
|
|
93
|
-
conditions.push((0, drizzle_orm_1.eq)(column, value));
|
|
94
|
-
}
|
|
95
|
-
break;
|
|
96
|
-
case "greater_than":
|
|
97
|
-
if (typeof value === "number") {
|
|
98
|
-
conditions.push((0, drizzle_orm_1.gte)(column, value));
|
|
99
|
-
}
|
|
100
|
-
break;
|
|
101
|
-
case "less_than":
|
|
102
|
-
if (typeof value === "number") {
|
|
103
|
-
conditions.push((0, drizzle_orm_1.lte)(column, value));
|
|
104
|
-
}
|
|
105
|
-
break;
|
|
106
|
-
case "is_null":
|
|
107
|
-
conditions.push((0, drizzle_orm_1.isNull)(column));
|
|
108
|
-
break;
|
|
109
|
-
case "is_not_null":
|
|
110
|
-
conditions.push((0, drizzle_orm_1.isNotNull)(column));
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
break;
|
|
114
|
-
case "date":
|
|
115
|
-
if (typeof value !== "string")
|
|
116
|
-
break;
|
|
117
|
-
switch (method) {
|
|
118
|
-
case "on": {
|
|
119
|
-
const { start, end } = getUTCDateBoundaries(value);
|
|
120
|
-
conditions.push((0, drizzle_orm_1.and)((0, drizzle_orm_1.gte)(column, start), (0, drizzle_orm_1.lte)(column, end)));
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
case "between":
|
|
124
|
-
if (valueTo) {
|
|
125
|
-
const { start } = getUTCDateBoundaries(value);
|
|
126
|
-
const { end } = getUTCDateBoundaries(valueTo);
|
|
127
|
-
conditions.push((0, drizzle_orm_1.between)(column, start, end));
|
|
128
|
-
}
|
|
129
|
-
break;
|
|
130
|
-
case "before": {
|
|
131
|
-
const { end } = getUTCDateBoundaries(value);
|
|
132
|
-
conditions.push((0, drizzle_orm_1.lte)(column, end));
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
case "after": {
|
|
136
|
-
const { start } = getUTCDateBoundaries(value);
|
|
137
|
-
conditions.push((0, drizzle_orm_1.gte)(column, start));
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
|
-
case "intersect": {
|
|
141
|
-
// Interval overlap: [columnId, endColumnId] intersects with [value, valueTo]
|
|
142
|
-
// Logic: columnId <= valueTo AND (endColumnId IS NULL OR endColumnId >= value)
|
|
143
|
-
if (!valueTo || !filter.endColumnId)
|
|
144
|
-
break;
|
|
145
|
-
const endColumn = table[filter.endColumnId];
|
|
146
|
-
if (!endColumn)
|
|
147
|
-
break;
|
|
148
|
-
const { start } = getUTCDateBoundaries(value);
|
|
149
|
-
const { end } = getUTCDateBoundaries(valueTo);
|
|
150
|
-
conditions.push((0, drizzle_orm_1.and)((0, drizzle_orm_1.lte)(column, end), (0, drizzle_orm_1.or)((0, drizzle_orm_1.isNull)(endColumn), (0, drizzle_orm_1.gte)(endColumn, start))));
|
|
151
|
-
break;
|
|
152
|
-
}
|
|
153
|
-
case "is_null":
|
|
154
|
-
conditions.push((0, drizzle_orm_1.isNull)(column));
|
|
155
|
-
break;
|
|
156
|
-
case "is_not_null":
|
|
157
|
-
conditions.push((0, drizzle_orm_1.isNotNull)(column));
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
break;
|
|
161
|
-
case "boolean":
|
|
162
|
-
switch (method) {
|
|
163
|
-
case "equals":
|
|
164
|
-
if (typeof value === "boolean") {
|
|
165
|
-
conditions.push((0, drizzle_orm_1.eq)(column, value));
|
|
166
|
-
}
|
|
167
|
-
break;
|
|
168
|
-
case "is_null":
|
|
169
|
-
conditions.push((0, drizzle_orm_1.isNull)(column));
|
|
170
|
-
break;
|
|
171
|
-
case "is_not_null":
|
|
172
|
-
conditions.push((0, drizzle_orm_1.isNotNull)(column));
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
break;
|
|
176
|
-
case "enum":
|
|
177
|
-
switch (method) {
|
|
178
|
-
case "oneOf":
|
|
179
|
-
if (Array.isArray(value) && value.length > 0) {
|
|
180
|
-
conditions.push((0, drizzle_orm_1.inArray)(column, value));
|
|
181
|
-
}
|
|
182
|
-
break;
|
|
183
|
-
case "equals":
|
|
184
|
-
if (typeof value === "string") {
|
|
185
|
-
conditions.push((0, drizzle_orm_1.eq)(column, value));
|
|
186
|
-
}
|
|
187
|
-
break;
|
|
188
|
-
case "is_null":
|
|
189
|
-
conditions.push((0, drizzle_orm_1.isNull)(column));
|
|
190
|
-
break;
|
|
191
|
-
case "is_not_null":
|
|
192
|
-
conditions.push((0, drizzle_orm_1.isNotNull)(column));
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
return conditions;
|
|
199
|
-
};
|
|
200
|
-
exports.getConditionsFromFilters = getConditionsFromFilters;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ServerResultAsync } from "../base/base.dto";
|
|
2
|
-
import { BaseService } from "../base/base.service";
|
|
3
|
-
export declare class VideoService extends BaseService<never, never> {
|
|
4
|
-
cut(file: string, start: number, end: number): ServerResultAsync<string>;
|
|
5
|
-
webmToWav(input: string, hz?: number): ServerResultAsync<string>;
|
|
6
|
-
extractAudioMp3(input: string, kbps?: number, streamIndex?: number): ServerResultAsync<string>;
|
|
7
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VideoService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const node_fs_1 = require("node:fs");
|
|
6
|
-
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
7
|
-
//
|
|
8
|
-
const ffmpeg_ffprobe_static_1 = tslib_1.__importDefault(require("ffmpeg-ffprobe-static"));
|
|
9
|
-
const fluent_ffmpeg_1 = tslib_1.__importDefault(require("fluent-ffmpeg"));
|
|
10
|
-
const neverthrow_1 = require("neverthrow");
|
|
11
|
-
const uuid_1 = require("uuid");
|
|
12
|
-
const base_service_1 = require("../base/base.service");
|
|
13
|
-
if (!ffmpeg_ffprobe_static_1.default.ffmpegPath || !ffmpeg_ffprobe_static_1.default.ffprobePath) {
|
|
14
|
-
throw new Error("FFmpeg or FFprobe not found");
|
|
15
|
-
}
|
|
16
|
-
fluent_ffmpeg_1.default.setFfmpegPath(ffmpeg_ffprobe_static_1.default.ffmpegPath);
|
|
17
|
-
fluent_ffmpeg_1.default.setFfprobePath(ffmpeg_ffprobe_static_1.default.ffprobePath);
|
|
18
|
-
const uploadsDir = node_path_1.default.join(__dirname, "..", "uploads");
|
|
19
|
-
if (!(0, node_fs_1.existsSync)(uploadsDir)) {
|
|
20
|
-
(0, node_fs_1.mkdirSync)(uploadsDir, { recursive: true });
|
|
21
|
-
}
|
|
22
|
-
class VideoService extends base_service_1.BaseService {
|
|
23
|
-
async cut(file, start, end) {
|
|
24
|
-
return this.throwableAsync(async () => {
|
|
25
|
-
const duration = end - start;
|
|
26
|
-
const output = node_path_1.default.join(uploadsDir, `${(0, uuid_1.v4)()}.mp4`);
|
|
27
|
-
if (!(0, node_fs_1.existsSync)(output)) {
|
|
28
|
-
(0, node_fs_1.closeSync)((0, node_fs_1.openSync)(output, "w"));
|
|
29
|
-
}
|
|
30
|
-
await new Promise((resolve, reject) => {
|
|
31
|
-
(0, fluent_ffmpeg_1.default)(file)
|
|
32
|
-
.seekOutput(start)
|
|
33
|
-
.videoCodec("libx264")
|
|
34
|
-
.audioCodec("copy")
|
|
35
|
-
.outputOptions(["-y", "-movflags +faststart"])
|
|
36
|
-
.duration(duration)
|
|
37
|
-
.on("end", () => resolve())
|
|
38
|
-
.on("error", (e, _stdout, _stderr) => reject(e))
|
|
39
|
-
.save(output);
|
|
40
|
-
}).catch((error) => (0, neverthrow_1.err)(this.handleUnknownError(error)));
|
|
41
|
-
return (0, neverthrow_1.ok)(output);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
async webmToWav(input, hz = 48000) {
|
|
45
|
-
return this.throwableAsync(async () => {
|
|
46
|
-
const output = node_path_1.default.join(uploadsDir, `${(0, uuid_1.v4)()}.wav`);
|
|
47
|
-
if (!(0, node_fs_1.existsSync)(output)) {
|
|
48
|
-
(0, node_fs_1.closeSync)((0, node_fs_1.openSync)(output, "w"));
|
|
49
|
-
}
|
|
50
|
-
await new Promise((resolve, reject) => {
|
|
51
|
-
(0, fluent_ffmpeg_1.default)(input)
|
|
52
|
-
.noVideo()
|
|
53
|
-
.audioCodec("pcm_s16le") // WAV PCM 16-bit
|
|
54
|
-
.audioFrequency(hz) // 48000 or 44100
|
|
55
|
-
.audioChannels(2) // down/up-mix as needed
|
|
56
|
-
.format("wav")
|
|
57
|
-
.outputOptions(["-y"])
|
|
58
|
-
.on("end", () => resolve())
|
|
59
|
-
.on("error", reject)
|
|
60
|
-
.save(output);
|
|
61
|
-
}).catch((error) => (0, neverthrow_1.err)(this.handleUnknownError(error)));
|
|
62
|
-
return (0, neverthrow_1.ok)(output);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
async extractAudioMp3(input, kbps = 192, streamIndex = 0) {
|
|
66
|
-
return this.throwableAsync(async () => {
|
|
67
|
-
const output = node_path_1.default.join(uploadsDir, `${(0, uuid_1.v4)()}.mp3`);
|
|
68
|
-
if (!(0, node_fs_1.existsSync)(output)) {
|
|
69
|
-
(0, node_fs_1.closeSync)((0, node_fs_1.openSync)(output, "w"));
|
|
70
|
-
}
|
|
71
|
-
await new Promise((resolve, reject) => {
|
|
72
|
-
(0, fluent_ffmpeg_1.default)(input)
|
|
73
|
-
.outputOptions(["-y", `-map 0:a:${streamIndex}`])
|
|
74
|
-
.audioCodec("libmp3lame")
|
|
75
|
-
.audioBitrate(kbps)
|
|
76
|
-
.on("end", () => resolve())
|
|
77
|
-
.on("error", reject)
|
|
78
|
-
.save(output);
|
|
79
|
-
}).catch((error) => (0, neverthrow_1.err)(this.handleUnknownError(error)));
|
|
80
|
-
return (0, neverthrow_1.ok)(output);
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
exports.VideoService = VideoService;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const WEBHOOK_STATUS_ENUM: {
|
|
2
|
-
readonly WAITING: "WAITING";
|
|
3
|
-
readonly COMPLETED: "COMPLETED";
|
|
4
|
-
readonly TIMEOUT: "TIMEOUT";
|
|
5
|
-
readonly ERROR_CALLBACK: "ERROR_CALLBACK";
|
|
6
|
-
readonly ERROR_DATA: "ERROR_DATA";
|
|
7
|
-
};
|
|
8
|
-
export type WebhookStatus = (typeof WEBHOOK_STATUS_ENUM)[keyof typeof WEBHOOK_STATUS_ENUM];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WEBHOOK_STATUS_ENUM = void 0;
|
|
4
|
-
exports.WEBHOOK_STATUS_ENUM = {
|
|
5
|
-
WAITING: "WAITING",
|
|
6
|
-
COMPLETED: "COMPLETED",
|
|
7
|
-
TIMEOUT: "TIMEOUT",
|
|
8
|
-
ERROR_CALLBACK: "ERROR_CALLBACK",
|
|
9
|
-
ERROR_DATA: "ERROR_DATA",
|
|
10
|
-
};
|