From 3122cf7409b86b8b538af3c0342d5dec658a610c Mon Sep 17 00:00:00 2001 From: Francis Date: Thu, 12 Dec 2024 16:39:36 +0300 Subject: [PATCH] fix(integrations): updates the model and action name to be consistent with the expected user interface already established --- .../actions/{delete-user.ts => disable-user.ts} | 2 +- integrations/ramp-sandbox/nango.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename integrations/ramp-sandbox/actions/{delete-user.ts => disable-user.ts} (96%) diff --git a/integrations/ramp-sandbox/actions/delete-user.ts b/integrations/ramp-sandbox/actions/disable-user.ts similarity index 96% rename from integrations/ramp-sandbox/actions/delete-user.ts rename to integrations/ramp-sandbox/actions/disable-user.ts index 1e079d7b..8d8822ef 100644 --- a/integrations/ramp-sandbox/actions/delete-user.ts +++ b/integrations/ramp-sandbox/actions/disable-user.ts @@ -1,4 +1,4 @@ -import type { NangoAction, ProxyConfiguration, SuccessResponse, IdEntity } from '../../models'; +import type { NangoAction, ProxyConfiguration, SuccessResponse, IdEntity } from '../../models.js'; import { idEntitySchema } from '../schema.zod.js'; export default async function runAction(nango: NangoAction, input: IdEntity): Promise { diff --git a/integrations/ramp-sandbox/nango.yaml b/integrations/ramp-sandbox/nango.yaml index 2bf7f031..04224fd4 100644 --- a/integrations/ramp-sandbox/nango.yaml +++ b/integrations/ramp-sandbox/nango.yaml @@ -26,10 +26,10 @@ integrations: scopes: - users:write - delete-user: + disable-user: description: Deletes a user in Ramp by id endpoint: - method: PATCH + method: DELETE path: /users group: Users output: SuccessResponse @@ -57,7 +57,7 @@ models: RampCreateUser: __extends: CreateUser - role: string + role?: string departmentId?: string directManagerId?: string idempotencyKey?: string