11import type { IR } from '@hey-api/shared' ;
2- import {
3- applyNaming ,
4- buildSymbolIn ,
5- deduplicateSchema ,
6- operationResponsesMap ,
7- } from '@hey-api/shared' ;
2+ import { buildSymbolIn , deduplicateSchema , operationResponsesMap } from '@hey-api/shared' ;
83
94import { $ } from '../../../../ts-dsl' ;
105import type { HeyApiTypeScriptPlugin } from '../types' ;
@@ -131,7 +126,8 @@ export const operationToType = ({
131126 tags,
132127 tool : 'typescript' ,
133128 } ,
134- name : applyNaming ( operation . id , plugin . config . requests ) ,
129+ name : operation . id ,
130+ naming : plugin . config . requests ,
135131 operation,
136132 plugin,
137133 } ) ,
@@ -168,7 +164,8 @@ export const operationToType = ({
168164 tags,
169165 tool : 'typescript' ,
170166 } ,
171- name : applyNaming ( operation . id , plugin . config . errors ) ,
167+ name : operation . id ,
168+ naming : plugin . config . errors ,
172169 operation,
173170 plugin,
174171 } ) ,
@@ -191,10 +188,11 @@ export const operationToType = ({
191188 tags,
192189 tool : 'typescript' ,
193190 } ,
194- name : applyNaming ( operation . id , {
191+ name : operation . id ,
192+ naming : {
195193 case : plugin . config . errors . case ,
196194 name : plugin . config . errors . error ,
197- } ) ,
195+ } ,
198196 operation,
199197 plugin,
200198 } ) ,
@@ -231,7 +229,8 @@ export const operationToType = ({
231229 tags,
232230 tool : 'typescript' ,
233231 } ,
234- name : applyNaming ( operation . id , plugin . config . responses ) ,
232+ name : operation . id ,
233+ naming : plugin . config . responses ,
235234 operation,
236235 plugin,
237236 } ) ,
@@ -254,10 +253,11 @@ export const operationToType = ({
254253 tags,
255254 tool : 'typescript' ,
256255 } ,
257- name : applyNaming ( operation . id , {
256+ name : operation . id ,
257+ naming : {
258258 case : plugin . config . responses . case ,
259259 name : plugin . config . responses . response ,
260- } ) ,
260+ } ,
261261 operation,
262262 plugin,
263263 } ) ,
0 commit comments