mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-06 21:54:01 -05:00
fix(jsm): renamed operation (#2651)
* renamed operaiton * revert icons file
This commit is contained in:
@@ -273,7 +273,7 @@ Eine neue Organisation in Jira Service Management erstellen
|
||||
| `name` | string | Name der erstellten Organisation |
|
||||
| `success` | boolean | Ob die Operation erfolgreich war |
|
||||
|
||||
### `jsm_add_organization_to_service_desk`
|
||||
### `jsm_add_organization`
|
||||
|
||||
Eine Organisation zu einem Service Desk in Jira Service Management hinzufügen
|
||||
|
||||
|
||||
@@ -275,7 +275,7 @@ Create a new organization in Jira Service Management
|
||||
| `name` | string | Name of the created organization |
|
||||
| `success` | boolean | Whether the operation succeeded |
|
||||
|
||||
### `jsm_add_organization_to_service_desk`
|
||||
### `jsm_add_organization`
|
||||
|
||||
Add an organization to a service desk in Jira Service Management
|
||||
|
||||
|
||||
@@ -273,7 +273,7 @@ Crear una nueva organización en Jira Service Management
|
||||
| `name` | string | Nombre de la organización creada |
|
||||
| `success` | boolean | Si la operación tuvo éxito |
|
||||
|
||||
### `jsm_add_organization_to_service_desk`
|
||||
### `jsm_add_organization`
|
||||
|
||||
Añadir una organización a un service desk en Jira Service Management
|
||||
|
||||
|
||||
@@ -273,7 +273,7 @@ Créer une nouvelle organisation dans Jira Service Management
|
||||
| `name` | string | Nom de l'organisation créée |
|
||||
| `success` | boolean | Indique si l'opération a réussi |
|
||||
|
||||
### `jsm_add_organization_to_service_desk`
|
||||
### `jsm_add_organization`
|
||||
|
||||
Ajouter une organisation à un service desk dans Jira Service Management
|
||||
|
||||
|
||||
@@ -273,7 +273,7 @@ Jira Service Managementで新しい組織を作成する
|
||||
| `name` | string | 作成された組織の名前 |
|
||||
| `success` | boolean | 操作が成功したかどうか |
|
||||
|
||||
### `jsm_add_organization_to_service_desk`
|
||||
### `jsm_add_organization`
|
||||
|
||||
Jira Service Managementのサービスデスクに組織を追加する
|
||||
|
||||
|
||||
@@ -273,7 +273,7 @@ import { BlockInfoCard } from "@/components/ui/block-info-card"
|
||||
| `name` | string | 已创建组织的名称 |
|
||||
| `success` | boolean | 操作是否成功 |
|
||||
|
||||
### `jsm_add_organization_to_service_desk`
|
||||
### `jsm_add_organization`
|
||||
|
||||
在 Jira Service Management 中将组织添加到服务台
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
|
||||
{ label: 'Add Customer', id: 'add_customer' },
|
||||
{ label: 'Get Organizations', id: 'get_organizations' },
|
||||
{ label: 'Create Organization', id: 'create_organization' },
|
||||
{ label: 'Add Organization to Service Desk', id: 'add_organization_to_service_desk' },
|
||||
{ label: 'Add Organization', id: 'add_organization' },
|
||||
{ label: 'Get Queues', id: 'get_queues' },
|
||||
{ label: 'Get SLA', id: 'get_sla' },
|
||||
{ label: 'Get Transitions', id: 'get_transitions' },
|
||||
@@ -107,7 +107,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
|
||||
'get_customers',
|
||||
'add_customer',
|
||||
'get_organizations',
|
||||
'add_organization_to_service_desk',
|
||||
'add_organization',
|
||||
'get_queues',
|
||||
],
|
||||
},
|
||||
@@ -270,7 +270,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
|
||||
type: 'short-input',
|
||||
required: true,
|
||||
placeholder: 'Enter organization ID',
|
||||
condition: { field: 'operation', value: 'add_organization_to_service_desk' },
|
||||
condition: { field: 'operation', value: 'add_organization' },
|
||||
},
|
||||
{
|
||||
id: 'participantAccountIds',
|
||||
@@ -332,7 +332,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
|
||||
'jsm_add_customer',
|
||||
'jsm_get_organizations',
|
||||
'jsm_create_organization',
|
||||
'jsm_add_organization_to_service_desk',
|
||||
'jsm_add_organization',
|
||||
'jsm_get_queues',
|
||||
'jsm_get_sla',
|
||||
'jsm_get_transitions',
|
||||
@@ -367,8 +367,8 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
|
||||
return 'jsm_get_organizations'
|
||||
case 'create_organization':
|
||||
return 'jsm_create_organization'
|
||||
case 'add_organization_to_service_desk':
|
||||
return 'jsm_add_organization_to_service_desk'
|
||||
case 'add_organization':
|
||||
return 'jsm_add_organization'
|
||||
case 'get_queues':
|
||||
return 'jsm_get_queues'
|
||||
case 'get_sla':
|
||||
@@ -560,7 +560,7 @@ export const JiraServiceManagementBlock: BlockConfig<JsmResponse> = {
|
||||
...baseParams,
|
||||
name: params.organizationName,
|
||||
}
|
||||
case 'add_organization_to_service_desk':
|
||||
case 'add_organization':
|
||||
if (!params.serviceDeskId) {
|
||||
throw new Error('Service Desk ID is required')
|
||||
}
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
import type {
|
||||
JsmAddOrganizationToServiceDeskParams,
|
||||
JsmAddOrganizationToServiceDeskResponse,
|
||||
} from '@/tools/jsm/types'
|
||||
import type { JsmAddOrganizationParams, JsmAddOrganizationResponse } from '@/tools/jsm/types'
|
||||
import type { ToolConfig } from '@/tools/types'
|
||||
|
||||
export const jsmAddOrganizationToServiceDeskTool: ToolConfig<
|
||||
JsmAddOrganizationToServiceDeskParams,
|
||||
JsmAddOrganizationToServiceDeskResponse
|
||||
export const jsmAddOrganizationTool: ToolConfig<
|
||||
JsmAddOrganizationParams,
|
||||
JsmAddOrganizationResponse
|
||||
> = {
|
||||
id: 'jsm_add_organization_to_service_desk',
|
||||
name: 'JSM Add Organization to Service Desk',
|
||||
id: 'jsm_add_organization',
|
||||
name: 'JSM Add Organization',
|
||||
description: 'Add an organization to a service desk in Jira Service Management',
|
||||
version: '1.0.0',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { jsmAddCommentTool } from '@/tools/jsm/add_comment'
|
||||
import { jsmAddCustomerTool } from '@/tools/jsm/add_customer'
|
||||
import { jsmAddOrganizationToServiceDeskTool } from '@/tools/jsm/add_organization_to_service_desk'
|
||||
import { jsmAddOrganizationTool } from '@/tools/jsm/add_organization'
|
||||
import { jsmAddParticipantsTool } from '@/tools/jsm/add_participants'
|
||||
import { jsmAnswerApprovalTool } from '@/tools/jsm/answer_approval'
|
||||
import { jsmCreateOrganizationTool } from '@/tools/jsm/create_organization'
|
||||
@@ -22,7 +22,7 @@ import { jsmTransitionRequestTool } from '@/tools/jsm/transition_request'
|
||||
export {
|
||||
jsmAddCommentTool,
|
||||
jsmAddCustomerTool,
|
||||
jsmAddOrganizationToServiceDeskTool,
|
||||
jsmAddOrganizationTool,
|
||||
jsmAddParticipantsTool,
|
||||
jsmAnswerApprovalTool,
|
||||
jsmCreateOrganizationTool,
|
||||
|
||||
@@ -345,12 +345,12 @@ export interface JsmCreateOrganizationResponse extends ToolResponse {
|
||||
}
|
||||
}
|
||||
|
||||
export interface JsmAddOrganizationToServiceDeskParams extends JsmBaseParams {
|
||||
export interface JsmAddOrganizationParams extends JsmBaseParams {
|
||||
serviceDeskId: string
|
||||
organizationId: string
|
||||
}
|
||||
|
||||
export interface JsmAddOrganizationToServiceDeskResponse extends ToolResponse {
|
||||
export interface JsmAddOrganizationResponse extends ToolResponse {
|
||||
output: {
|
||||
ts: string
|
||||
serviceDeskId: string
|
||||
@@ -462,7 +462,7 @@ export type JsmResponse =
|
||||
| JsmTransitionRequestResponse
|
||||
| JsmGetTransitionsResponse
|
||||
| JsmCreateOrganizationResponse
|
||||
| JsmAddOrganizationToServiceDeskResponse
|
||||
| JsmAddOrganizationResponse
|
||||
| JsmGetParticipantsResponse
|
||||
| JsmAddParticipantsResponse
|
||||
| JsmGetApprovalsResponse
|
||||
|
||||
@@ -494,7 +494,7 @@ import {
|
||||
import {
|
||||
jsmAddCommentTool,
|
||||
jsmAddCustomerTool,
|
||||
jsmAddOrganizationToServiceDeskTool,
|
||||
jsmAddOrganizationTool,
|
||||
jsmAddParticipantsTool,
|
||||
jsmAnswerApprovalTool,
|
||||
jsmCreateOrganizationTool,
|
||||
@@ -1531,7 +1531,7 @@ export const tools: Record<string, ToolConfig> = {
|
||||
jsm_add_customer: jsmAddCustomerTool,
|
||||
jsm_get_organizations: jsmGetOrganizationsTool,
|
||||
jsm_create_organization: jsmCreateOrganizationTool,
|
||||
jsm_add_organization_to_service_desk: jsmAddOrganizationToServiceDeskTool,
|
||||
jsm_add_organization: jsmAddOrganizationTool,
|
||||
jsm_get_queues: jsmGetQueuesTool,
|
||||
jsm_get_sla: jsmGetSlaTool,
|
||||
jsm_get_transitions: jsmGetTransitionsTool,
|
||||
|
||||
Reference in New Issue
Block a user