@@ -11,15 +11,15 @@ export function injectSharedHelpers({
1111 fragmentName,
1212 trimString,
1313 primaryKeyIdField,
14- typescriptCodegenOutputRelativePath
14+ typescriptCodegenOutputPath
1515} : {
1616 contentArray : string [ ] ;
1717 importArray : string [ ] ;
1818 entityName : string ;
1919 fragmentName : string ;
2020 trimString ?: string ;
2121 primaryKeyIdField : FieldDefinitionNode ;
22- typescriptCodegenOutputRelativePath : string ;
22+ typescriptCodegenOutputPath : string ;
2323} ) {
2424 const primaryKeyIdTypeScriptFieldType = getIdTypeScriptFieldType ( primaryKeyIdField ) ;
2525
@@ -29,14 +29,14 @@ export function injectSharedHelpers({
2929 ` ) ;
3030
3131 if ( ! primaryKeyIdTypeScriptFieldType . isNative ) {
32- const typeImport = makeImportStatement ( `${ primaryKeyIdTypeScriptFieldType . typeName } ` , typescriptCodegenOutputRelativePath ) ;
32+ const typeImport = makeImportStatement ( `${ primaryKeyIdTypeScriptFieldType . typeName } ` , typescriptCodegenOutputPath ) ;
3333 if ( ! importArray . includes ( typeImport ) ) {
3434 importArray . push ( typeImport ) ;
3535 }
3636 }
3737
3838 const fragmentTypeScriptTypeName = makeFragmentTypeScriptTypeName ( fragmentName ) ;
39- importArray . push ( makeImportStatement ( fragmentTypeScriptTypeName , typescriptCodegenOutputRelativePath ) ) ;
39+ importArray . push ( makeImportStatement ( fragmentTypeScriptTypeName , typescriptCodegenOutputPath ) ) ;
4040}
4141
4242// ---------------------------------
@@ -48,15 +48,15 @@ export function injectFetchHelpers({
4848 fragmentName,
4949 trimString,
5050 primaryKeyIdField,
51- typescriptCodegenOutputRelativePath
51+ typescriptCodegenOutputPath
5252} : {
5353 contentArray : string [ ] ;
5454 importArray : string [ ] ;
5555 entityName : string ;
5656 fragmentName : string ;
5757 trimString ?: string ;
5858 primaryKeyIdField : FieldDefinitionNode ;
59- typescriptCodegenOutputRelativePath : string ;
59+ typescriptCodegenOutputPath : string ;
6060} ) {
6161 const entityShortCamelCaseName = makeShortCamelCaseName ( entityName , trimString ) ;
6262 const entityModelName = makeModelName ( entityName , trimString ) ;
@@ -83,11 +83,11 @@ export function injectFetchHelpers({
8383 return ${ entityShortCamelCaseName } Result.data.${ entityName } ;
8484 }
8585 ` ) ;
86- importArray . push ( makeImportStatement ( `Fetch${ fragmentName } ByIdQuery` , typescriptCodegenOutputRelativePath ) ) ;
87- importArray . push ( makeImportStatement ( `Fetch${ fragmentName } ByIdDocument` , typescriptCodegenOutputRelativePath ) ) ;
88- importArray . push ( makeImportStatement ( `Fetch${ fragmentName } Query` , typescriptCodegenOutputRelativePath ) ) ;
89- importArray . push ( makeImportStatement ( `Fetch${ fragmentName } Document` , typescriptCodegenOutputRelativePath ) ) ;
90- importArray . push ( makeImportStatement ( `Fetch${ fragmentName } QueryVariables` , typescriptCodegenOutputRelativePath ) ) ;
86+ importArray . push ( makeImportStatement ( `Fetch${ fragmentName } ByIdQuery` , typescriptCodegenOutputPath ) ) ;
87+ importArray . push ( makeImportStatement ( `Fetch${ fragmentName } ByIdDocument` , typescriptCodegenOutputPath ) ) ;
88+ importArray . push ( makeImportStatement ( `Fetch${ fragmentName } Query` , typescriptCodegenOutputPath ) ) ;
89+ importArray . push ( makeImportStatement ( `Fetch${ fragmentName } Document` , typescriptCodegenOutputPath ) ) ;
90+ importArray . push ( makeImportStatement ( `Fetch${ fragmentName } QueryVariables` , typescriptCodegenOutputPath ) ) ;
9191}
9292
9393// ---------------------------------
@@ -99,15 +99,15 @@ export function injectInsertHelpers({
9999 fragmentName,
100100 trimString,
101101 primaryKeyIdField,
102- typescriptCodegenOutputRelativePath
102+ typescriptCodegenOutputPath
103103} : {
104104 contentArray : string [ ] ;
105105 importArray : string [ ] ;
106106 entityName : string ;
107107 fragmentName : string ;
108108 trimString ?: string ;
109109 primaryKeyIdField : FieldDefinitionNode ;
110- typescriptCodegenOutputRelativePath : string ;
110+ typescriptCodegenOutputPath : string ;
111111} ) {
112112 const entityShortCamelCaseName = makeShortCamelCaseName ( entityName , trimString ) ;
113113 const entityModelName = makeModelName ( entityName , trimString ) ;
@@ -130,9 +130,9 @@ export function injectInsertHelpers({
130130 }
131131 ` ) ;
132132
133- importArray . push ( makeImportStatement ( `Insert${ fragmentName } Mutation` , typescriptCodegenOutputRelativePath ) ) ;
134- importArray . push ( makeImportStatement ( `Insert${ fragmentName } MutationVariables` , typescriptCodegenOutputRelativePath ) ) ;
135- importArray . push ( makeImportStatement ( `Insert${ fragmentName } Document` , typescriptCodegenOutputRelativePath ) ) ;
133+ importArray . push ( makeImportStatement ( `Insert${ fragmentName } Mutation` , typescriptCodegenOutputPath ) ) ;
134+ importArray . push ( makeImportStatement ( `Insert${ fragmentName } MutationVariables` , typescriptCodegenOutputPath ) ) ;
135+ importArray . push ( makeImportStatement ( `Insert${ fragmentName } Document` , typescriptCodegenOutputPath ) ) ;
136136}
137137
138138// ---------------------------------
@@ -144,15 +144,15 @@ export function injectUpdateHelpers({
144144 fragmentName,
145145 trimString,
146146 primaryKeyIdField,
147- typescriptCodegenOutputRelativePath
147+ typescriptCodegenOutputPath
148148} : {
149149 contentArray : string [ ] ;
150150 importArray : string [ ] ;
151151 entityName : string ;
152152 fragmentName : string ;
153153 trimString ?: string ;
154154 primaryKeyIdField : FieldDefinitionNode ;
155- typescriptCodegenOutputRelativePath : string ;
155+ typescriptCodegenOutputPath : string ;
156156} ) {
157157 const entityShortName = makeShortName ( entityName ) ;
158158 const entityShortCamelCaseName = makeShortCamelCaseName ( entityName , trimString ) ;
@@ -192,13 +192,13 @@ export function injectUpdateHelpers({
192192 }
193193 ` ) ;
194194
195- importArray . push ( makeImportStatement ( `${ entityShortName } _Set_Input` , typescriptCodegenOutputRelativePath ) ) ;
196- importArray . push ( makeImportStatement ( `Update${ fragmentName } ByIdMutation` , typescriptCodegenOutputRelativePath ) ) ;
197- importArray . push ( makeImportStatement ( `Update${ fragmentName } ByIdMutationVariables` , typescriptCodegenOutputRelativePath ) ) ;
198- importArray . push ( makeImportStatement ( `Update${ fragmentName } ByIdDocument` , typescriptCodegenOutputRelativePath ) ) ;
199- importArray . push ( makeImportStatement ( `Update${ fragmentName } Mutation` , typescriptCodegenOutputRelativePath ) ) ;
200- importArray . push ( makeImportStatement ( `Update${ fragmentName } MutationVariables` , typescriptCodegenOutputRelativePath ) ) ;
201- importArray . push ( makeImportStatement ( `Update${ fragmentName } Document` , typescriptCodegenOutputRelativePath ) ) ;
195+ importArray . push ( makeImportStatement ( `${ entityShortName } _Set_Input` , typescriptCodegenOutputPath ) ) ;
196+ importArray . push ( makeImportStatement ( `Update${ fragmentName } ByIdMutation` , typescriptCodegenOutputPath ) ) ;
197+ importArray . push ( makeImportStatement ( `Update${ fragmentName } ByIdMutationVariables` , typescriptCodegenOutputPath ) ) ;
198+ importArray . push ( makeImportStatement ( `Update${ fragmentName } ByIdDocument` , typescriptCodegenOutputPath ) ) ;
199+ importArray . push ( makeImportStatement ( `Update${ fragmentName } Mutation` , typescriptCodegenOutputPath ) ) ;
200+ importArray . push ( makeImportStatement ( `Update${ fragmentName } MutationVariables` , typescriptCodegenOutputPath ) ) ;
201+ importArray . push ( makeImportStatement ( `Update${ fragmentName } Document` , typescriptCodegenOutputPath ) ) ;
202202}
203203
204204// ---------------------------------
@@ -210,15 +210,15 @@ export function injectDeleteHelpers({
210210 fragmentName,
211211 trimString,
212212 primaryKeyIdField,
213- typescriptCodegenOutputRelativePath
213+ typescriptCodegenOutputPath
214214} : {
215215 contentArray : string [ ] ;
216216 importArray : string [ ] ;
217217 entityName : string ;
218218 fragmentName : string ;
219219 trimString ?: string ;
220220 primaryKeyIdField : FieldDefinitionNode ;
221- typescriptCodegenOutputRelativePath : string ;
221+ typescriptCodegenOutputPath : string ;
222222} ) {
223223 const entityShortCamelCaseName = makeShortCamelCaseName ( entityName , trimString ) ;
224224 const entityModelName = makeModelName ( entityName , trimString ) ;
@@ -256,10 +256,10 @@ export function injectDeleteHelpers({
256256 }
257257 ` ) ;
258258
259- importArray . push ( makeImportStatement ( `Remove${ entityModelName } Mutation` , typescriptCodegenOutputRelativePath ) ) ;
260- importArray . push ( makeImportStatement ( `Remove${ entityModelName } MutationVariables` , typescriptCodegenOutputRelativePath ) ) ;
261- importArray . push ( makeImportStatement ( `Remove${ entityModelName } Document` , typescriptCodegenOutputRelativePath ) ) ;
262- importArray . push ( makeImportStatement ( `Remove${ entityModelName } ByIdMutation` , typescriptCodegenOutputRelativePath ) ) ;
263- importArray . push ( makeImportStatement ( `Remove${ entityModelName } ByIdMutationVariables` , typescriptCodegenOutputRelativePath ) ) ;
264- importArray . push ( makeImportStatement ( `Remove${ entityModelName } ByIdDocument` , typescriptCodegenOutputRelativePath ) ) ;
259+ importArray . push ( makeImportStatement ( `Remove${ entityModelName } Mutation` , typescriptCodegenOutputPath ) ) ;
260+ importArray . push ( makeImportStatement ( `Remove${ entityModelName } MutationVariables` , typescriptCodegenOutputPath ) ) ;
261+ importArray . push ( makeImportStatement ( `Remove${ entityModelName } Document` , typescriptCodegenOutputPath ) ) ;
262+ importArray . push ( makeImportStatement ( `Remove${ entityModelName } ByIdMutation` , typescriptCodegenOutputPath ) ) ;
263+ importArray . push ( makeImportStatement ( `Remove${ entityModelName } ByIdMutationVariables` , typescriptCodegenOutputPath ) ) ;
264+ importArray . push ( makeImportStatement ( `Remove${ entityModelName } ByIdDocument` , typescriptCodegenOutputPath ) ) ;
265265}
0 commit comments