Skip to content

Commit

Permalink
Merge pull request #4074 from activepieces/chore/fix-typo
Browse files Browse the repository at this point in the history
chore: fix typo
  • Loading branch information
abuaboud committed Mar 3, 2024
2 parents 6c46673 + 49b53db commit a239cf9
Show file tree
Hide file tree
Showing 21 changed files with 60 additions and 57 deletions.
Expand Up @@ -2,7 +2,7 @@ import { FastifyRequest } from 'fastify'
import { webhookService } from '../webhooks/webhook-service'
import { appEventRoutingService } from './app-event-routing.service'
import { logger } from 'server-shared'
import { ALL_PRINICPAL_TYPES, isNil } from '@activepieces/shared'
import { ALL_PRINCIPAL_TYPES, isNil } from '@activepieces/shared'
import {
ActivepiecesError,
ErrorCode,
Expand Down Expand Up @@ -40,7 +40,7 @@ export const appEventRoutingController: FastifyPluginAsyncTypebox = async (
{
config: {
rawBody: true,
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
logLevel: 'silent',
},
Expand Down
Expand Up @@ -7,7 +7,7 @@ import {
ApEdition,
SignUpRequest,
SignInRequest,
ALL_PRINICPAL_TYPES,
ALL_PRINCIPAL_TYPES,
} from '@activepieces/shared'
import { system, SystemProp } from 'server-shared'
import { Provider } from './authentication-service/hooks/authentication-service-hooks'
Expand Down Expand Up @@ -65,7 +65,7 @@ const rateLimitOptions: RateLimitOptions = {

const SignUpRequestOptions = {
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
rateLimit: rateLimitOptions,
},
schema: {
Expand All @@ -75,7 +75,7 @@ const SignUpRequestOptions = {

const SignInRequestOptions = {
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
rateLimit: rateLimitOptions,
},
schema: {
Expand Down
@@ -1,6 +1,6 @@
import { FastifyRequest } from 'fastify'
import { StatusCodes } from 'http-status-codes'
import { ALL_PRINICPAL_TYPES, SeekPage } from '@activepieces/shared'
import { ALL_PRINCIPAL_TYPES, SeekPage } from '@activepieces/shared'
import { appCredentialService } from './app-credentials.service'
import {
ListAppCredentialsRequest,
Expand All @@ -24,7 +24,7 @@ const appCredentialController: FastifyPluginAsyncTypebox = async (fastify) => {
'/',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
querystring: ListAppCredentialsRequest,
Expand Down
Expand Up @@ -4,7 +4,7 @@ import {
ResetPasswordRequestBody,
VerifyEmailRequestBody,
} from '@activepieces/ee-shared'
import { ALL_PRINICPAL_TYPES } from '@activepieces/shared'
import { ALL_PRINCIPAL_TYPES } from '@activepieces/shared'
import { eventsHooks } from '../../../helper/application-events'
import { ApplicationEventName } from '@activepieces/ee-shared'

Expand All @@ -30,7 +30,7 @@ export const enterpriseLocalAuthnController: FastifyPluginAsyncTypebox = async (

const VerifyEmailRequest = {
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
body: VerifyEmailRequestBody,
Expand All @@ -39,7 +39,7 @@ const VerifyEmailRequest = {

const ResetPasswordRequest = {
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
body: ResetPasswordRequestBody,
Expand Down
Expand Up @@ -9,7 +9,7 @@ import {
import {
ClaimTokenRequest,
ThirdPartyAuthnProviderEnum,
ALL_PRINICPAL_TYPES,
ALL_PRINCIPAL_TYPES,
assertNotNullOrUndefined,
} from '@activepieces/shared'
import { resolvePlatformIdForRequest } from '../../../platform/platform-utils'
Expand Down Expand Up @@ -51,7 +51,7 @@ export const federatedAuthnController: FastifyPluginAsyncTypebox = async (

const LoginRequestSchema = {
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
querystring: Type.Object({
Expand All @@ -62,7 +62,7 @@ const LoginRequestSchema = {

const ClaimTokenRequestSchema = {
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
body: ClaimTokenRequest,
Expand Down
Expand Up @@ -4,7 +4,7 @@ import { StatusCodes } from 'http-status-codes'
import { appsumoService } from './appsumo.service'
import { SystemProp, system } from 'server-shared'
import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox'
import { ALL_PRINICPAL_TYPES } from '@activepieces/shared'
import { ALL_PRINCIPAL_TYPES } from '@activepieces/shared'

export const appSumoModule: FastifyPluginAsyncTypebox = async (app) => {
await app.register(appsumoController, { prefix: '/v1/appsumo' })
Expand Down Expand Up @@ -41,7 +41,7 @@ const appsumoController: FastifyPluginAsyncTypebox = async (
'/token',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
body: ExchangeTokenRequest,
Expand Down Expand Up @@ -71,7 +71,7 @@ const appsumoController: FastifyPluginAsyncTypebox = async (
'/action',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
headers: AuthorizationHeaders,
Expand Down
@@ -1,6 +1,6 @@
import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox'
import { TASKS_PAYG_PRICE_ID, stripeHelper, stripeWebhookSecret } from './stripe-helper'
import { ALL_PRINICPAL_TYPES, FlowRun, PrincipalType, assertNotNullOrUndefined, isNil } from '@activepieces/shared'
import { ALL_PRINCIPAL_TYPES, FlowRun, PrincipalType, assertNotNullOrUndefined, isNil } from '@activepieces/shared'
import { projectBillingService } from './project-billing.service'
import { FastifyRequest } from 'fastify'
import { exceptionHandler, logger } from 'server-shared'
Expand Down Expand Up @@ -114,7 +114,7 @@ const projectBillingController: FastifyPluginAsyncTypebox = async (fastify) => {
'/stripe/webhook',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
rawBody: true,
},
},
Expand Down
Expand Up @@ -10,7 +10,7 @@ import { connectionKeyService } from './connection-key.service'
import { StatusCodes } from 'http-status-codes'
import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox'
import { appConnectionService } from '../../app-connection/app-connection-service/app-connection-service'
import { ALL_PRINICPAL_TYPES } from '@activepieces/shared'
import { ALL_PRINCIPAL_TYPES } from '@activepieces/shared'

export const connectionKeyModule: FastifyPluginAsyncTypebox = async (app) => {
await app.register(connectionKeyController, {
Expand All @@ -25,7 +25,7 @@ const connectionKeyController: FastifyPluginAsyncTypebox = async (fastify) => {
'/app-connections',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
querystring: GetOrDeleteConnectionFromTokenRequest,
Expand All @@ -52,7 +52,7 @@ const connectionKeyController: FastifyPluginAsyncTypebox = async (fastify) => {
'/app-connections',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
querystring: GetOrDeleteConnectionFromTokenRequest,
Expand All @@ -71,7 +71,7 @@ const connectionKeyController: FastifyPluginAsyncTypebox = async (fastify) => {
'/app-connections',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
body: UpsertConnectionFromToken,
Expand Down
@@ -1,7 +1,7 @@
import { flowTemplateService } from './flow-template.service'
import {
ListFlowTemplatesRequest,
ALL_PRINICPAL_TYPES,
ALL_PRINCIPAL_TYPES,
PrincipalType,
TemplateType,
ActivepiecesError,
Expand Down Expand Up @@ -32,7 +32,7 @@ const flowTemplateController: FastifyPluginAsyncTypebox = async (fastify) => {
'/:id',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
params: GetIdParams,
Expand All @@ -47,7 +47,7 @@ const flowTemplateController: FastifyPluginAsyncTypebox = async (fastify) => {
'/',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
querystring: ListFlowTemplatesRequest,
Expand Down
@@ -1,5 +1,5 @@
import {
ALL_PRINICPAL_TYPES,
ALL_PRINCIPAL_TYPES,
AuthenticationResponse,
} from '@activepieces/shared'
import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox'
Expand Down Expand Up @@ -34,7 +34,7 @@ export const managedAuthnController: FastifyPluginAsyncTypebox = async (

const ManagedAuthnRequest = {
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
body: ManagedAuthnRequestBody,
Expand Down
4 changes: 2 additions & 2 deletions packages/server/api/src/app/ee/otp/otp-controller.ts
Expand Up @@ -3,7 +3,7 @@ import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox'
import { otpService } from './otp-service'
import { resolvePlatformIdForRequest } from '../../platform/platform-utils'
import { StatusCodes } from 'http-status-codes'
import { ALL_PRINICPAL_TYPES, assertNotNullOrUndefined } from '@activepieces/shared'
import { ALL_PRINCIPAL_TYPES, assertNotNullOrUndefined } from '@activepieces/shared'

export const otpController: FastifyPluginAsyncTypebox = async (app) => {
app.post('/', CreateOtpRequest, async (req, res) => {
Expand All @@ -19,7 +19,7 @@ export const otpController: FastifyPluginAsyncTypebox = async (app) => {

const CreateOtpRequest = {
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
body: CreateOtpRequestBody,
Expand Down
Expand Up @@ -6,7 +6,7 @@ import {
ProjectMemberStatus,
} from '@activepieces/ee-shared'
import {
ALL_PRINICPAL_TYPES,
ALL_PRINCIPAL_TYPES,
ActivepiecesError,
ErrorCode,
Permission,
Expand Down Expand Up @@ -128,7 +128,7 @@ const AddProjectMemberRequest = {

const AcceptProjectMemberRequest = {
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
body: Type.Object({
Expand Down
4 changes: 2 additions & 2 deletions packages/server/api/src/app/flags/flag.module.ts
Expand Up @@ -2,7 +2,7 @@ import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox'
import { flagService } from './flag.service'
import { FastifyRequest } from 'fastify'
import { flagHooks } from './flags.hooks'
import { ALL_PRINICPAL_TYPES } from '@activepieces/shared'
import { ALL_PRINCIPAL_TYPES } from '@activepieces/shared'

export const flagModule: FastifyPluginAsyncTypebox = async (app) => {
await app.register(flagController, { prefix: '/v1/flags' })
Expand All @@ -13,7 +13,7 @@ export const flagController: FastifyPluginAsyncTypebox = async (app) => {
'/',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
logLevel: 'silent',
},
Expand Down
@@ -1,6 +1,6 @@
import {
ListFlowTemplatesRequest,
ALL_PRINICPAL_TYPES,
ALL_PRINCIPAL_TYPES,
isNil,
} from '@activepieces/shared'
import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox'
Expand All @@ -18,7 +18,7 @@ const flowTemplateController: FastifyPluginAsyncTypebox = async (fastify) => {
'/',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
querystring: ListFlowTemplatesRequest,
Expand Down
Expand Up @@ -7,7 +7,7 @@ import {
FlowRunId,
ListFlowRunsRequestQuery,
ApId,
ALL_PRINICPAL_TYPES,
ALL_PRINCIPAL_TYPES,
ExecutionType,
} from '@activepieces/shared'
import {
Expand All @@ -25,7 +25,7 @@ type GetOnePathParams = {

const ResumeFlowRunRequest = {
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
params: Type.Object({
Expand Down Expand Up @@ -104,7 +104,7 @@ export const flowRunController: FastifyPluginCallbackTypebox = (
executionType: ExecutionType.RESUME,
})
})


app.post('/:id/retry', RetryFlowRequest, async (req) => {
await flowRunService.retry({
Expand Down
Expand Up @@ -3,7 +3,7 @@ import { entitiesMustBeOwnedByCurrentProject } from '../../authentication/author
import { Type } from '@sinclair/typebox'
import { stepFileService } from './step-file.service'
import {
ALL_PRINICPAL_TYPES,
ALL_PRINCIPAL_TYPES,
PrincipalType,
StepFileUpsert,
} from '@activepieces/shared'
Expand All @@ -19,7 +19,7 @@ export const stepFileController: FastifyPluginAsyncTypebox = async (app) => {
'/signed',
{
config: {
allowedPrincipals: ALL_PRINICPAL_TYPES,
allowedPrincipals: ALL_PRINCIPAL_TYPES,
},
schema: {
querystring: Type.Object({
Expand Down

0 comments on commit a239cf9

Please sign in to comment.