From 2acea62f906c180fc8503449b803af36ce23f1c6 Mon Sep 17 00:00:00 2001 From: Richard Fontein <32132657+rifont@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:24:14 +0100 Subject: [PATCH] chore(shared): Relocate package from `libs` to `packages` (#6472) --- .cspell.json | 7 +- .github/labeler.yml | 2 +- .github/workflows/dev-deploy-api.yml | 6 +- .github/workflows/dev-deploy-inbound-mail.yml | 2 +- .github/workflows/dev-deploy-web.yml | 2 +- .github/workflows/dev-deploy-webhook.yml | 4 +- .github/workflows/dev-deploy-widget.yml | 2 +- .github/workflows/dev-deploy-worker.yml | 6 +- .gitpod.yml | 2 +- .idea/novu.iml | 4 +- .idea/runConfigurations/SHARED.xml | 4 +- .idea/runConfigurations/SHARED_WEB.xml | 4 +- .source | 2 +- .vscode/launch.json | 2 +- .vscode/tasks.json | 2 +- .../inbound-mail/src/config/env.validators.ts | 2 +- apps/widget/Dockerfile | 2 +- apps/ws/Dockerfile | 2 +- eslint.config.mjs | 2 +- libs/embed/Dockerfile | 2 +- novu.code-workspace | 2 +- {libs => packages}/shared/.dockerignore | 0 {libs => packages}/shared/.gitignore | 0 {libs => packages}/shared/jest.config.js | 0 {libs => packages}/shared/jest.setup.js | 0 {libs => packages}/shared/package.json | 0 .../shared/src/config/contextPath.ts | 0 {libs => packages}/shared/src/config/index.ts | 0 .../shared/src/config/job-queue.ts | 0 .../shared/src/config/processEnv.ts | 0 .../shared/src/config/redisPrefix.ts | 0 .../shared/src/consts/data-retention/index.ts | 0 .../shared/src/consts/filters/filters.ts | 0 .../shared/src/consts/filters/index.ts | 0 .../handlebar-helpers/getTemplateVariables.ts | 0 .../handlebar-helpers/handlebarHelpers.ts | 0 .../src/consts/handlebar-helpers/index.ts | 0 {libs => packages}/shared/src/consts/index.ts | 0 .../src/consts/inviteTeamMemberNudge.ts | 0 .../consts/notification-item-buttons/index.ts | 0 .../notificationItemButton.ts | 0 .../password-helper/PasswordResetFlowEnum.ts | 0 .../src/consts/password-helper/index.ts | 0 .../consts/password-helper/passwordHelper.ts | 0 .../productFeatureEnabledForServiceLevel.ts | 0 .../src/consts/providers/channels/chat.ts | 0 .../src/consts/providers/channels/email.ts | 0 .../src/consts/providers/channels/in-app.ts | 0 .../src/consts/providers/channels/index.ts | 0 .../src/consts/providers/channels/push.ts | 0 .../src/consts/providers/channels/sms.ts | 0 .../src/consts/providers/credentials/index.ts | 0 .../credentials/provider-credentials.ts | 0 .../credentials/secure-credentials.ts | 0 .../shared/src/consts/providers/index.ts | 0 .../src/consts/providers/provider.enum.ts | 0 .../consts/providers/provider.interface.ts | 0 .../shared/src/consts/providers/providers.ts | 0 .../src/consts/rate-limiting/apiRateLimits.ts | 0 .../shared/src/consts/rate-limiting/index.ts | 0 .../shared/src/consts/template-store/index.ts | 0 .../shared/src/dto/controls/controls.dto.ts | 0 .../shared/src/dto/controls/index.ts | 0 .../shared/src/dto/events/event.interface.ts | 0 .../shared/src/dto/events/index.ts | 0 {libs => packages}/shared/src/dto/index.ts | 0 .../construct-integration.interface.ts | 0 .../dto/integration/create-integration.dto.ts | 0 .../shared/src/dto/integration/index.ts | 0 .../dto/integration/update-integration.dto.ts | 0 .../shared/src/dto/layout/index.ts | 0 .../shared/src/dto/layout/layout.dto.ts | 0 .../shared/src/dto/message-template/index.ts | 0 .../message-template/message-template.dto.ts | 0 .../create-template.dto.ts | 0 .../src/dto/notification-templates/index.ts | 0 .../update-template.dto.ts | 0 .../organization/create-organization.dto.ts | 0 .../shared/src/dto/organization/index.ts | 0 .../members/bulk-invite-members.dto.ts | 0 .../organization/members/get-invite.dto.ts | 0 .../update-external-organization.dto.ts | 0 .../shared/src/dto/session/index.ts | 0 .../shared/src/dto/session/session.dto.ts | 0 .../shared/src/dto/shared/index.ts | 0 .../shared/src/dto/shared/shared.ts | 0 .../shared/src/dto/subscriber/index.ts | 0 .../src/dto/subscriber/subscriber.dto.ts | 0 .../src/dto/tenant/create-tenant.dto.ts | 0 .../shared/src/dto/tenant/index.ts | 0 .../src/dto/tenant/update-tenant.dto.ts | 0 .../shared/src/dto/topic/index.ts | 0 .../dto/topic/topic-subscriber.interface.ts | 0 .../shared/src/dto/topic/topic.dto.ts | 0 .../shared/src/dto/widget/index.ts | 0 .../shared/src/dto/widget/notification.dto.ts | 0 .../update-subscriber-preference.dto.ts | 0 .../create-workflow-override-request.dto.ts | 0 .../create-workflow-override-response.dto.ts | 0 .../get-workflow-override-response.dto.ts | 0 .../get-workflow-overrides-response.dto.ts | 0 .../shared/src/dto/workflow-override/index.ts | 0 .../src/dto/workflow-override/shared.ts | 0 .../update-workflow-override-request.dto.ts | 0 .../update-workflow-override-response.dto.ts | 0 .../src/dto/workflows/create-workflow.dto.ts | 0 .../shared/src/dto/workflows/index.ts | 0 .../src/dto/workflows/update-workflow.dto.ts | 0 .../shared/src/dto/workflows/workflow.dto.ts | 0 .../src/entities/apiKeys/apiKeys.interface.ts | 0 .../shared/src/entities/apiKeys/index.ts | 0 .../src/entities/change/change.interface.ts | 0 .../shared/src/entities/change/index.ts | 0 .../environment/environment.interface.ts | 0 .../shared/src/entities/environment/index.ts | 0 .../execution-details.interface.ts | 0 .../src/entities/execution-details/index.ts | 0 .../src/entities/feed/feed.interface.ts | 0 .../integration/credential.interface.ts | 0 .../shared/src/entities/integration/index.ts | 0 .../shared/src/entities/job/index.ts | 0 .../shared/src/entities/job/job.interface.ts | 0 .../shared/src/entities/job/status.enum.ts | 0 .../shared/src/entities/layout/index.ts | 0 .../src/entities/layout/layout.interface.ts | 0 .../shared/src/entities/log/index.ts | 0 .../shared/src/entities/log/log.enums.ts | 0 .../src/entities/message-template/index.ts | 0 .../message-template.interface.ts | 0 .../src/entities/messages/action.enum.ts | 0 .../shared/src/entities/messages/index.ts | 0 .../entities/messages/messages.interface.ts | 0 .../src/entities/notification-group/index.ts | 0 .../notification-group.interface.ts | 0 .../entities/notification-template/index.ts | 0 .../notification-template.interface.ts | 0 .../shared/src/entities/notification/index.ts | 0 .../notification/notification.interface.ts | 0 .../shared/src/entities/organization/index.ts | 0 .../src/entities/organization/member.enum.ts | 0 .../entities/organization/member.interface.ts | 0 .../organization/organization.interface.ts | 0 .../shared/src/entities/step/index.ts | 0 .../entities/subscriber-preference/index.ts | 0 .../subscriber-preference.interface.ts | 0 .../shared/src/entities/subscriber/index.ts | 0 .../subscriber/subscriber.interface.ts | 0 .../shared/src/entities/tenant/index.ts | 0 .../src/entities/tenant/tenant.interface.ts | 0 .../shared/src/entities/user/index.ts | 0 .../user/subscriber-user.interface.ts | 0 .../shared/src/entities/user/user.enums.ts | 0 .../src/entities/user/user.interface.ts | 0 .../src/entities/workflow-override/index.ts | 0 .../workflow-override.interface.ts | 0 {libs => packages}/shared/src/index.ts | 0 .../feature-flags/feature-flags.util.spec.ts | 0 .../feature-flags/feature-flags.util.ts | 0 .../src/services/feature-flags/index.ts | 0 .../shared/src/services/index.ts | 0 .../shared/src/types/analytics/index.ts | 0 .../shared/src/types/auth/auth.types.ts | 0 .../shared/src/types/auth/index.ts | 0 .../shared/src/types/builder/builder.types.ts | 0 .../shared/src/types/builder/filter.types.ts | 0 .../shared/src/types/builder/index.ts | 0 .../shared/src/types/channel/index.ts | 0 .../shared/src/types/clerk/index.ts | 0 .../shared/src/types/clerk/types.ts | 0 .../controls/control-variables-level.enum.ts | 0 .../shared/src/types/controls/index.ts | 0 .../shared/src/types/cron/cron.types.ts | 0 .../shared/src/types/cron/index.ts | 0 .../shared/src/types/environment/index.ts | 0 .../shared/src/types/events/index.ts | 0 .../src/types/feature-flags/feature-flags.ts | 0 .../types/feature-flags/flags.types.spec.ts | 0 .../src/types/feature-flags/flags.types.ts | 0 .../shared/src/types/feature-flags/index.ts | 0 .../feature-flags/system-critical-flags.ts | 0 .../shared/src/types/files/index.ts | 0 .../shared/src/types/http/headers.types.ts | 0 .../shared/src/types/http/index.ts | 0 .../shared/src/types/http/responses.types.ts | 0 .../shared/src/types/http/utils.types.spec.ts | 0 .../shared/src/types/http/utils.types.ts | 0 {libs => packages}/shared/src/types/index.ts | 0 .../shared/src/types/jobs/index.ts | 0 .../shared/src/types/layout/index.ts | 0 .../src/types/message-template/index.ts | 0 .../shared/src/types/messages/index.ts | 0 .../src/types/notification-templates/index.ts | 0 .../shared/src/types/organization/index.ts | 0 .../shared/src/types/pagination/index.ts | 0 .../src/types/product-features/index.ts | 0 .../types/rate-limiting/algorithm.types.ts | 0 .../src/types/rate-limiting/config.types.ts | 0 .../src/types/rate-limiting/cost.types.ts | 0 .../src/types/rate-limiting/env.types.ts | 0 .../shared/src/types/rate-limiting/index.ts | 0 .../src/types/rate-limiting/service.types.ts | 0 .../src/types/resource-limiting/index.ts | 0 .../types/resource-limiting/resource.types.ts | 0 .../shared/src/types/shared/index.ts | 0 .../shared/src/types/storage/index.ts | 0 .../shared/src/types/subscriber/index.ts | 0 .../shared/src/types/tenant/index.ts | 0 .../shared/src/types/timezones/index.ts | 0 .../src/types/timezones/timezones.types.ts | 0 .../shared/src/types/topic/index.ts | 0 .../shared/src/types/user/index.ts | 0 .../shared/src/types/web-sockets/index.ts | 0 .../workflow-channel-preferences/index.ts | 0 .../workflow-channel-preferences/types.ts | 0 .../src/types/workflow-override/index.ts | 0 .../src/types/workflow-override/types.ts | 0 {libs => packages}/shared/src/ui/index.ts | 0 {libs => packages}/shared/src/ui/marketing.ts | 0 {libs => packages}/shared/src/ui/utils.ts | 0 .../shared/src/utils/bridge.utils.ts | 0 .../src/utils/checkIsResponseError.spec.ts | 0 .../shared/src/utils/checkIsResponseError.ts | 0 {libs => packages}/shared/src/utils/env.ts | 0 {libs => packages}/shared/src/utils/index.ts | 0 .../shared/src/utils/normalizeEmail.ts | 0 {libs => packages}/shared/tsconfig.esm.json | 0 {libs => packages}/shared/tsconfig.json | 0 pnpm-lock.yaml | 483 +++++++++--------- 228 files changed, 265 insertions(+), 281 deletions(-) rename {libs => packages}/shared/.dockerignore (100%) rename {libs => packages}/shared/.gitignore (100%) rename {libs => packages}/shared/jest.config.js (100%) rename {libs => packages}/shared/jest.setup.js (100%) rename {libs => packages}/shared/package.json (100%) rename {libs => packages}/shared/src/config/contextPath.ts (100%) rename {libs => packages}/shared/src/config/index.ts (100%) rename {libs => packages}/shared/src/config/job-queue.ts (100%) rename {libs => packages}/shared/src/config/processEnv.ts (100%) rename {libs => packages}/shared/src/config/redisPrefix.ts (100%) rename {libs => packages}/shared/src/consts/data-retention/index.ts (100%) rename {libs => packages}/shared/src/consts/filters/filters.ts (100%) rename {libs => packages}/shared/src/consts/filters/index.ts (100%) rename {libs => packages}/shared/src/consts/handlebar-helpers/getTemplateVariables.ts (100%) rename {libs => packages}/shared/src/consts/handlebar-helpers/handlebarHelpers.ts (100%) rename {libs => packages}/shared/src/consts/handlebar-helpers/index.ts (100%) rename {libs => packages}/shared/src/consts/index.ts (100%) rename {libs => packages}/shared/src/consts/inviteTeamMemberNudge.ts (100%) rename {libs => packages}/shared/src/consts/notification-item-buttons/index.ts (100%) rename {libs => packages}/shared/src/consts/notification-item-buttons/notificationItemButton.ts (100%) rename {libs => packages}/shared/src/consts/password-helper/PasswordResetFlowEnum.ts (100%) rename {libs => packages}/shared/src/consts/password-helper/index.ts (100%) rename {libs => packages}/shared/src/consts/password-helper/passwordHelper.ts (100%) rename {libs => packages}/shared/src/consts/productFeatureEnabledForServiceLevel.ts (100%) rename {libs => packages}/shared/src/consts/providers/channels/chat.ts (100%) rename {libs => packages}/shared/src/consts/providers/channels/email.ts (100%) rename {libs => packages}/shared/src/consts/providers/channels/in-app.ts (100%) rename {libs => packages}/shared/src/consts/providers/channels/index.ts (100%) rename {libs => packages}/shared/src/consts/providers/channels/push.ts (100%) rename {libs => packages}/shared/src/consts/providers/channels/sms.ts (100%) rename {libs => packages}/shared/src/consts/providers/credentials/index.ts (100%) rename {libs => packages}/shared/src/consts/providers/credentials/provider-credentials.ts (100%) rename {libs => packages}/shared/src/consts/providers/credentials/secure-credentials.ts (100%) rename {libs => packages}/shared/src/consts/providers/index.ts (100%) rename {libs => packages}/shared/src/consts/providers/provider.enum.ts (100%) rename {libs => packages}/shared/src/consts/providers/provider.interface.ts (100%) rename {libs => packages}/shared/src/consts/providers/providers.ts (100%) rename {libs => packages}/shared/src/consts/rate-limiting/apiRateLimits.ts (100%) rename {libs => packages}/shared/src/consts/rate-limiting/index.ts (100%) rename {libs => packages}/shared/src/consts/template-store/index.ts (100%) rename {libs => packages}/shared/src/dto/controls/controls.dto.ts (100%) rename {libs => packages}/shared/src/dto/controls/index.ts (100%) rename {libs => packages}/shared/src/dto/events/event.interface.ts (100%) rename {libs => packages}/shared/src/dto/events/index.ts (100%) rename {libs => packages}/shared/src/dto/index.ts (100%) rename {libs => packages}/shared/src/dto/integration/construct-integration.interface.ts (100%) rename {libs => packages}/shared/src/dto/integration/create-integration.dto.ts (100%) rename {libs => packages}/shared/src/dto/integration/index.ts (100%) rename {libs => packages}/shared/src/dto/integration/update-integration.dto.ts (100%) rename {libs => packages}/shared/src/dto/layout/index.ts (100%) rename {libs => packages}/shared/src/dto/layout/layout.dto.ts (100%) rename {libs => packages}/shared/src/dto/message-template/index.ts (100%) rename {libs => packages}/shared/src/dto/message-template/message-template.dto.ts (100%) rename {libs => packages}/shared/src/dto/notification-templates/create-template.dto.ts (100%) rename {libs => packages}/shared/src/dto/notification-templates/index.ts (100%) rename {libs => packages}/shared/src/dto/notification-templates/update-template.dto.ts (100%) rename {libs => packages}/shared/src/dto/organization/create-organization.dto.ts (100%) rename {libs => packages}/shared/src/dto/organization/index.ts (100%) rename {libs => packages}/shared/src/dto/organization/members/bulk-invite-members.dto.ts (100%) rename {libs => packages}/shared/src/dto/organization/members/get-invite.dto.ts (100%) rename {libs => packages}/shared/src/dto/organization/update-external-organization.dto.ts (100%) rename {libs => packages}/shared/src/dto/session/index.ts (100%) rename {libs => packages}/shared/src/dto/session/session.dto.ts (100%) rename {libs => packages}/shared/src/dto/shared/index.ts (100%) rename {libs => packages}/shared/src/dto/shared/shared.ts (100%) rename {libs => packages}/shared/src/dto/subscriber/index.ts (100%) rename {libs => packages}/shared/src/dto/subscriber/subscriber.dto.ts (100%) rename {libs => packages}/shared/src/dto/tenant/create-tenant.dto.ts (100%) rename {libs => packages}/shared/src/dto/tenant/index.ts (100%) rename {libs => packages}/shared/src/dto/tenant/update-tenant.dto.ts (100%) rename {libs => packages}/shared/src/dto/topic/index.ts (100%) rename {libs => packages}/shared/src/dto/topic/topic-subscriber.interface.ts (100%) rename {libs => packages}/shared/src/dto/topic/topic.dto.ts (100%) rename {libs => packages}/shared/src/dto/widget/index.ts (100%) rename {libs => packages}/shared/src/dto/widget/notification.dto.ts (100%) rename {libs => packages}/shared/src/dto/widget/subscriber-preference/update-subscriber-preference.dto.ts (100%) rename {libs => packages}/shared/src/dto/workflow-override/create-workflow-override-request.dto.ts (100%) rename {libs => packages}/shared/src/dto/workflow-override/create-workflow-override-response.dto.ts (100%) rename {libs => packages}/shared/src/dto/workflow-override/get-workflow-override-response.dto.ts (100%) rename {libs => packages}/shared/src/dto/workflow-override/get-workflow-overrides-response.dto.ts (100%) rename {libs => packages}/shared/src/dto/workflow-override/index.ts (100%) rename {libs => packages}/shared/src/dto/workflow-override/shared.ts (100%) rename {libs => packages}/shared/src/dto/workflow-override/update-workflow-override-request.dto.ts (100%) rename {libs => packages}/shared/src/dto/workflow-override/update-workflow-override-response.dto.ts (100%) rename {libs => packages}/shared/src/dto/workflows/create-workflow.dto.ts (100%) rename {libs => packages}/shared/src/dto/workflows/index.ts (100%) rename {libs => packages}/shared/src/dto/workflows/update-workflow.dto.ts (100%) rename {libs => packages}/shared/src/dto/workflows/workflow.dto.ts (100%) rename {libs => packages}/shared/src/entities/apiKeys/apiKeys.interface.ts (100%) rename {libs => packages}/shared/src/entities/apiKeys/index.ts (100%) rename {libs => packages}/shared/src/entities/change/change.interface.ts (100%) rename {libs => packages}/shared/src/entities/change/index.ts (100%) rename {libs => packages}/shared/src/entities/environment/environment.interface.ts (100%) rename {libs => packages}/shared/src/entities/environment/index.ts (100%) rename {libs => packages}/shared/src/entities/execution-details/execution-details.interface.ts (100%) rename {libs => packages}/shared/src/entities/execution-details/index.ts (100%) rename {libs => packages}/shared/src/entities/feed/feed.interface.ts (100%) rename {libs => packages}/shared/src/entities/integration/credential.interface.ts (100%) rename {libs => packages}/shared/src/entities/integration/index.ts (100%) rename {libs => packages}/shared/src/entities/job/index.ts (100%) rename {libs => packages}/shared/src/entities/job/job.interface.ts (100%) rename {libs => packages}/shared/src/entities/job/status.enum.ts (100%) rename {libs => packages}/shared/src/entities/layout/index.ts (100%) rename {libs => packages}/shared/src/entities/layout/layout.interface.ts (100%) rename {libs => packages}/shared/src/entities/log/index.ts (100%) rename {libs => packages}/shared/src/entities/log/log.enums.ts (100%) rename {libs => packages}/shared/src/entities/message-template/index.ts (100%) rename {libs => packages}/shared/src/entities/message-template/message-template.interface.ts (100%) rename {libs => packages}/shared/src/entities/messages/action.enum.ts (100%) rename {libs => packages}/shared/src/entities/messages/index.ts (100%) rename {libs => packages}/shared/src/entities/messages/messages.interface.ts (100%) rename {libs => packages}/shared/src/entities/notification-group/index.ts (100%) rename {libs => packages}/shared/src/entities/notification-group/notification-group.interface.ts (100%) rename {libs => packages}/shared/src/entities/notification-template/index.ts (100%) rename {libs => packages}/shared/src/entities/notification-template/notification-template.interface.ts (100%) rename {libs => packages}/shared/src/entities/notification/index.ts (100%) rename {libs => packages}/shared/src/entities/notification/notification.interface.ts (100%) rename {libs => packages}/shared/src/entities/organization/index.ts (100%) rename {libs => packages}/shared/src/entities/organization/member.enum.ts (100%) rename {libs => packages}/shared/src/entities/organization/member.interface.ts (100%) rename {libs => packages}/shared/src/entities/organization/organization.interface.ts (100%) rename {libs => packages}/shared/src/entities/step/index.ts (100%) rename {libs => packages}/shared/src/entities/subscriber-preference/index.ts (100%) rename {libs => packages}/shared/src/entities/subscriber-preference/subscriber-preference.interface.ts (100%) rename {libs => packages}/shared/src/entities/subscriber/index.ts (100%) rename {libs => packages}/shared/src/entities/subscriber/subscriber.interface.ts (100%) rename {libs => packages}/shared/src/entities/tenant/index.ts (100%) rename {libs => packages}/shared/src/entities/tenant/tenant.interface.ts (100%) rename {libs => packages}/shared/src/entities/user/index.ts (100%) rename {libs => packages}/shared/src/entities/user/subscriber-user.interface.ts (100%) rename {libs => packages}/shared/src/entities/user/user.enums.ts (100%) rename {libs => packages}/shared/src/entities/user/user.interface.ts (100%) rename {libs => packages}/shared/src/entities/workflow-override/index.ts (100%) rename {libs => packages}/shared/src/entities/workflow-override/workflow-override.interface.ts (100%) rename {libs => packages}/shared/src/index.ts (100%) rename {libs => packages}/shared/src/services/feature-flags/feature-flags.util.spec.ts (100%) rename {libs => packages}/shared/src/services/feature-flags/feature-flags.util.ts (100%) rename {libs => packages}/shared/src/services/feature-flags/index.ts (100%) rename {libs => packages}/shared/src/services/index.ts (100%) rename {libs => packages}/shared/src/types/analytics/index.ts (100%) rename {libs => packages}/shared/src/types/auth/auth.types.ts (100%) rename {libs => packages}/shared/src/types/auth/index.ts (100%) rename {libs => packages}/shared/src/types/builder/builder.types.ts (100%) rename {libs => packages}/shared/src/types/builder/filter.types.ts (100%) rename {libs => packages}/shared/src/types/builder/index.ts (100%) rename {libs => packages}/shared/src/types/channel/index.ts (100%) rename {libs => packages}/shared/src/types/clerk/index.ts (100%) rename {libs => packages}/shared/src/types/clerk/types.ts (100%) rename {libs => packages}/shared/src/types/controls/control-variables-level.enum.ts (100%) rename {libs => packages}/shared/src/types/controls/index.ts (100%) rename {libs => packages}/shared/src/types/cron/cron.types.ts (100%) rename {libs => packages}/shared/src/types/cron/index.ts (100%) rename {libs => packages}/shared/src/types/environment/index.ts (100%) rename {libs => packages}/shared/src/types/events/index.ts (100%) rename {libs => packages}/shared/src/types/feature-flags/feature-flags.ts (100%) rename {libs => packages}/shared/src/types/feature-flags/flags.types.spec.ts (100%) rename {libs => packages}/shared/src/types/feature-flags/flags.types.ts (100%) rename {libs => packages}/shared/src/types/feature-flags/index.ts (100%) rename {libs => packages}/shared/src/types/feature-flags/system-critical-flags.ts (100%) rename {libs => packages}/shared/src/types/files/index.ts (100%) rename {libs => packages}/shared/src/types/http/headers.types.ts (100%) rename {libs => packages}/shared/src/types/http/index.ts (100%) rename {libs => packages}/shared/src/types/http/responses.types.ts (100%) rename {libs => packages}/shared/src/types/http/utils.types.spec.ts (100%) rename {libs => packages}/shared/src/types/http/utils.types.ts (100%) rename {libs => packages}/shared/src/types/index.ts (100%) rename {libs => packages}/shared/src/types/jobs/index.ts (100%) rename {libs => packages}/shared/src/types/layout/index.ts (100%) rename {libs => packages}/shared/src/types/message-template/index.ts (100%) rename {libs => packages}/shared/src/types/messages/index.ts (100%) rename {libs => packages}/shared/src/types/notification-templates/index.ts (100%) rename {libs => packages}/shared/src/types/organization/index.ts (100%) rename {libs => packages}/shared/src/types/pagination/index.ts (100%) rename {libs => packages}/shared/src/types/product-features/index.ts (100%) rename {libs => packages}/shared/src/types/rate-limiting/algorithm.types.ts (100%) rename {libs => packages}/shared/src/types/rate-limiting/config.types.ts (100%) rename {libs => packages}/shared/src/types/rate-limiting/cost.types.ts (100%) rename {libs => packages}/shared/src/types/rate-limiting/env.types.ts (100%) rename {libs => packages}/shared/src/types/rate-limiting/index.ts (100%) rename {libs => packages}/shared/src/types/rate-limiting/service.types.ts (100%) rename {libs => packages}/shared/src/types/resource-limiting/index.ts (100%) rename {libs => packages}/shared/src/types/resource-limiting/resource.types.ts (100%) rename {libs => packages}/shared/src/types/shared/index.ts (100%) rename {libs => packages}/shared/src/types/storage/index.ts (100%) rename {libs => packages}/shared/src/types/subscriber/index.ts (100%) rename {libs => packages}/shared/src/types/tenant/index.ts (100%) rename {libs => packages}/shared/src/types/timezones/index.ts (100%) rename {libs => packages}/shared/src/types/timezones/timezones.types.ts (100%) rename {libs => packages}/shared/src/types/topic/index.ts (100%) rename {libs => packages}/shared/src/types/user/index.ts (100%) rename {libs => packages}/shared/src/types/web-sockets/index.ts (100%) rename {libs => packages}/shared/src/types/workflow-channel-preferences/index.ts (100%) rename {libs => packages}/shared/src/types/workflow-channel-preferences/types.ts (100%) rename {libs => packages}/shared/src/types/workflow-override/index.ts (100%) rename {libs => packages}/shared/src/types/workflow-override/types.ts (100%) rename {libs => packages}/shared/src/ui/index.ts (100%) rename {libs => packages}/shared/src/ui/marketing.ts (100%) rename {libs => packages}/shared/src/ui/utils.ts (100%) rename {libs => packages}/shared/src/utils/bridge.utils.ts (100%) rename {libs => packages}/shared/src/utils/checkIsResponseError.spec.ts (100%) rename {libs => packages}/shared/src/utils/checkIsResponseError.ts (100%) rename {libs => packages}/shared/src/utils/env.ts (100%) rename {libs => packages}/shared/src/utils/index.ts (100%) rename {libs => packages}/shared/src/utils/normalizeEmail.ts (100%) rename {libs => packages}/shared/tsconfig.esm.json (100%) rename {libs => packages}/shared/tsconfig.json (100%) diff --git a/.cspell.json b/.cspell.json index 11b0876be50..69f3bb2efa6 100644 --- a/.cspell.json +++ b/.cspell.json @@ -344,6 +344,7 @@ "moby", "Modiin", "modlen", + "Mobishatra", "mongod", "mongosh", "monokai", @@ -749,13 +750,12 @@ ".cspell.json", "package.json", "package-lock.json", - "yarn.lock", "tsconfig.json", "node_modules/**", "pnpm-lock.yaml", "pnpm-workspace.yaml", "novu.code-workspace", - "packages/application-generic/src/.env.test", + "libs/application-generic/src/.env.test", "packages/notification-center/src/i18n/languages/**", "packages/notification-center/rollup.config.mjs", "packages/js/tsup.config.ts", @@ -766,7 +766,7 @@ ".gitignore", "angular.json", "ng-package.json", - "libs/shared/src/types/timezones/timezones.types.ts", + "packages/shared/src/types/timezones/timezones.types.ts", "*.riv", "websockets", ".env", @@ -775,7 +775,6 @@ ".env.production", ".env.test", ".example.env", - "pnpm-lock.yaml", "apps/web/env.sh", "packages/js/src/ui/index.directcss", "unreadRead", diff --git a/.github/labeler.yml b/.github/labeler.yml index 5454832a3aa..259d19e7835 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -17,7 +17,7 @@ '@novu/novui': - libs/novui/**/* '@novu/shared': - - libs/shared/**/* + - packages/shared/**/* '@novu/notification-center': - packages/notification-center/**/* '@novu/notification-center-vue': diff --git a/.github/workflows/dev-deploy-api.yml b/.github/workflows/dev-deploy-api.yml index 1b78da2eb7f..598e0b83995 100644 --- a/.github/workflows/dev-deploy-api.yml +++ b/.github/workflows/dev-deploy-api.yml @@ -10,11 +10,11 @@ on: - main paths: - 'package.json' - - 'yarn.lock' + - 'pnpm-lock.yaml' - 'apps/api/**' - 'libs/dal/**' - - 'libs/shared/**' - - 'packages/application-generic/**' + - 'packages/shared/**' + - 'libs/application-generic/**' env: TF_WORKSPACE: novu-dev diff --git a/.github/workflows/dev-deploy-inbound-mail.yml b/.github/workflows/dev-deploy-inbound-mail.yml index d8dcac968c5..da3bf9e0cad 100644 --- a/.github/workflows/dev-deploy-inbound-mail.yml +++ b/.github/workflows/dev-deploy-inbound-mail.yml @@ -12,7 +12,7 @@ on: - 'package.json' - 'pnpm-lock.yaml' - 'apps/inbound-mail/**' - - 'libs/shared/**' + - 'packages/shared/**' - 'libs/testing/**' env: TF_WORKSPACE: novu-dev diff --git a/.github/workflows/dev-deploy-web.yml b/.github/workflows/dev-deploy-web.yml index 3fdf2492fc8..fd779235a27 100644 --- a/.github/workflows/dev-deploy-web.yml +++ b/.github/workflows/dev-deploy-web.yml @@ -12,7 +12,7 @@ on: - main paths: - 'apps/web/**' - - 'libs/shared/**' + - 'packages/shared/**' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.github/workflows/dev-deploy-webhook.yml b/.github/workflows/dev-deploy-webhook.yml index f1432eb5c5b..a6f8ecb7fdf 100644 --- a/.github/workflows/dev-deploy-webhook.yml +++ b/.github/workflows/dev-deploy-webhook.yml @@ -10,10 +10,10 @@ on: - main paths: - 'package.json' - - 'yarn.lock' + - 'pnpm-lock.yaml' - 'apps/webhook/**' - 'libs/dal/**' - - 'libs/shared/**' + - 'packages/shared/**' jobs: test_webhook: diff --git a/.github/workflows/dev-deploy-widget.yml b/.github/workflows/dev-deploy-widget.yml index bdc48dd9ffc..13dc1ae96bf 100644 --- a/.github/workflows/dev-deploy-widget.yml +++ b/.github/workflows/dev-deploy-widget.yml @@ -13,7 +13,7 @@ on: paths: - 'apps/widget/**' - 'apps/ws/**' - - 'libs/shared/**' + - 'packages/shared/**' # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.github/workflows/dev-deploy-worker.yml b/.github/workflows/dev-deploy-worker.yml index 539437d600a..c9d6c72a768 100644 --- a/.github/workflows/dev-deploy-worker.yml +++ b/.github/workflows/dev-deploy-worker.yml @@ -10,12 +10,12 @@ on: - main paths: - 'package.json' - - 'yarn.lock' + - 'pnpm-lock.yaml' - 'apps/api/**' - 'libs/dal/**' - - 'libs/shared/**' + - 'packages/shared/**' - 'libs/testing/**' - - 'packages/application-generic/**' + - 'libs/application-generic/**' - 'packages/stateless/**' - 'packages/node/**' env: diff --git a/.gitpod.yml b/.gitpod.yml index 3b96d678342..bdb9f418eab 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -7,7 +7,7 @@ tasks: command: redis-server - name: Shared Library init: gp sync-await setup - command: cd libs/shared && pnpm start + command: cd packages/shared && pnpm start - name: DAL init: gp sync-await setup command: cd libs/dal && pnpm start diff --git a/.idea/novu.iml b/.idea/novu.iml index 0c507073a03..c9fb98dae6a 100644 --- a/.idea/novu.iml +++ b/.idea/novu.iml @@ -22,7 +22,7 @@ - + @@ -52,4 +52,4 @@ - \ No newline at end of file + diff --git a/.idea/runConfigurations/SHARED.xml b/.idea/runConfigurations/SHARED.xml index 9f1499e61bd..6509fdd9686 100644 --- a/.idea/runConfigurations/SHARED.xml +++ b/.idea/runConfigurations/SHARED.xml @@ -1,6 +1,6 @@ - +