@@ -5241,7 +5241,7 @@ var templateExportHook = {"1":function(container,depth0,helpers,partials,data) {
5241
5241
return undefined
5242
5242
} ;
5243
5243
5244
- return ( ( stack1 = lookupProperty ( helpers , "equals" ) . call ( depth0 != null ? depth0 : ( container . nullContext || { } ) , lookupProperty ( depth0 , "method" ) , "GET" , { "name" :"equals" , "hash" :{ } , "fn" :container . program ( 5 , data , 0 ) , "inverse" :container . program ( 15 , data , 0 ) , "data" :data , "loc" :{ "start" :{ "line" :15 , "column" :2 } , "end" :{ "line" :35 , "column" :13 } } } ) ) != null ? stack1 : "" ) ;
5244
+ return ( ( stack1 = lookupProperty ( helpers , "equals" ) . call ( depth0 != null ? depth0 : ( container . nullContext || { } ) , lookupProperty ( depth0 , "method" ) , "GET" , { "name" :"equals" , "hash" :{ } , "fn" :container . program ( 5 , data , 0 ) , "inverse" :container . program ( 18 , data , 0 ) , "data" :data , "loc" :{ "start" :{ "line" :15 , "column" :2 } , "end" :{ "line" :46 , "column" :13 } } } ) ) != null ? stack1 : "" ) ;
5245
5245
} , "5" :function ( container , depth0 , helpers , partials , data ) {
5246
5246
var stack1 , alias1 = depth0 != null ? depth0 : ( container . nullContext || { } ) , lookupProperty = container . lookupProperty || function ( parent , propertyName ) {
5247
5247
if ( Object . prototype . hasOwnProperty . call ( parent , propertyName ) ) {
@@ -5258,19 +5258,19 @@ var templateExportHook = {"1":function(container,depth0,helpers,partials,data) {
5258
5258
+ ( ( stack1 = container . invokePartial ( lookupProperty ( partials , "result" ) , depth0 , { "name" :"result" , "data" :data , "helpers" :helpers , "partials" :partials , "decorators" :container . decorators } ) ) != null ? stack1 : "" )
5259
5259
+ ">) => {\n return useQuery<"
5260
5260
+ ( ( stack1 = container . invokePartial ( lookupProperty ( partials , "result" ) , depth0 , { "name" :"result" , "data" :data , "helpers" :helpers , "partials" :partials , "decorators" :container . decorators } ) ) != null ? stack1 : "" )
5261
- + ">(['"
5262
- + ( ( stack1 = lookupProperty ( helpers , "camelCase" ) . call ( alias1 , lookupProperty ( depth0 , "service" ) , { "name" :"camelCase" , "hash" :{ } , "data" :data , "loc" :{ "start" :{ "line" :17 , "column" :35 } , "end" :{ "line" :17 , "column" :57 } } } ) ) != null ? stack1 : "" )
5261
+ + ">({\n queryKey: ['"
5262
+ + ( ( stack1 = lookupProperty ( helpers , "camelCase" ) . call ( alias1 , lookupProperty ( depth0 , "service" ) , { "name" :"camelCase" , "hash" :{ } , "data" :data , "loc" :{ "start" :{ "line" :18 , "column" :17 } , "end" :{ "line" :18 , "column" :39 } } } ) ) != null ? stack1 : "" )
5263
5263
+ "', '"
5264
- + ( ( stack1 = lookupProperty ( helpers , "camelCase" ) . call ( alias1 , lookupProperty ( depth0 , "name" ) , { "name" :"camelCase" , "hash" :{ } , "data" :data , "loc" :{ "start" :{ "line" :17 , "column" :61 } , "end" :{ "line" :17 , "column" :81 } } } ) ) != null ? stack1 : "" )
5264
+ + ( ( stack1 = lookupProperty ( helpers , "camelCase" ) . call ( alias1 , lookupProperty ( depth0 , "name" ) , { "name" :"camelCase" , "hash" :{ } , "data" :data , "loc" :{ "start" :{ "line" :18 , "column" :43 } , "end" :{ "line" :18 , "column" :63 } } } ) ) != null ? stack1 : "" )
5265
5265
+ "', "
5266
- + ( ( stack1 = lookupProperty ( helpers , "each" ) . call ( alias1 , lookupProperty ( depth0 , "parameters" ) , { "name" :"each" , "hash" :{ } , "fn" :container . program ( 10 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :17 , "column" :84 } , "end" :{ "line" :17 , "column" :123 } } } ) ) != null ? stack1 : "" )
5267
- + "], async () => {\n return client."
5268
- + ( ( stack1 = lookupProperty ( helpers , "camelCase" ) . call ( alias1 , lookupProperty ( depth0 , "service" ) , { "name" :"camelCase" , "hash" :{ } , "data" :data , "loc" :{ "start" :{ "line" :18 , "column" :19 } , "end" :{ "line" :18 , "column" :40 } } } ) ) != null ? stack1 : "" )
5266
+ + ( ( stack1 = lookupProperty ( helpers , "each" ) . call ( alias1 , lookupProperty ( depth0 , "parameters" ) , { "name" :"each" , "hash" :{ } , "fn" :container . program ( 10 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :18 , "column" :66 } , "end" :{ "line" :18 , "column" :105 } } } ) ) != null ? stack1 : "" )
5267
+ + "],\n queryFn: async () => {\n return client."
5268
+ + ( ( stack1 = lookupProperty ( helpers , "camelCase" ) . call ( alias1 , lookupProperty ( depth0 , "service" ) , { "name" :"camelCase" , "hash" :{ } , "data" :data , "loc" :{ "start" :{ "line" :20 , "column" :21 } , "end" :{ "line" :20 , "column" :42 } } } ) ) != null ? stack1 : "" )
5269
5269
+ "."
5270
- + ( ( stack1 = container . lambda ( container . strict ( depth0 , "name" , { "start" :{ "line" :18 , "column" :43 } , "end" :{ "line" :18 , "column" :47 } } ) , depth0 ) ) != null ? stack1 : "" )
5270
+ + ( ( stack1 = container . lambda ( container . strict ( depth0 , "name" , { "start" :{ "line" :20 , "column" :45 } , "end" :{ "line" :20 , "column" :49 } } ) , depth0 ) ) != null ? stack1 : "" )
5271
5271
+ "("
5272
- + ( ( stack1 = lookupProperty ( helpers , "if" ) . call ( alias1 , lookupProperty ( depth0 , "parameters" ) , { "name" :"if" , "hash" :{ } , "fn" :container . program ( 12 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :18 , "column" :50 } , "end" :{ "line" :22 , "column" :13 } } } ) ) != null ? stack1 : "" )
5273
- + ");\n }, options);\n };\n" ;
5272
+ + ( ( stack1 = lookupProperty ( helpers , "if" ) . call ( alias1 , lookupProperty ( depth0 , "parameters" ) , { "name" :"if" , "hash" :{ } , "fn" :container . program ( 12 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :20 , "column" :52 } , "end" :{ "line" :28 , "column" :18 } } } ) ) != null ? stack1 : "" )
5273
+ + ");\n },\n ... options\n } );\n };\n" ;
5274
5274
} , "6" :function ( container , depth0 , helpers , partials , data ) {
5275
5275
var stack1 , lookupProperty = container . lookupProperty || function ( parent , propertyName ) {
5276
5276
if ( Object . prototype . hasOwnProperty . call ( parent , propertyName ) ) {
@@ -5285,7 +5285,7 @@ var templateExportHook = {"1":function(container,depth0,helpers,partials,data) {
5285
5285
} , "10" :function ( container , depth0 , helpers , partials , data ) {
5286
5286
var stack1 ;
5287
5287
5288
- return ( ( stack1 = container . lambda ( container . strict ( depth0 , "name" , { "start" :{ "line" :17 , "column" :106 } , "end" :{ "line" :17 , "column" :110 } } ) , depth0 ) ) != null ? stack1 : "" )
5288
+ return ( ( stack1 = container . lambda ( container . strict ( depth0 , "name" , { "start" :{ "line" :18 , "column" :88 } , "end" :{ "line" :18 , "column" :92 } } ) , depth0 ) ) != null ? stack1 : "" )
5289
5289
+ ", " ;
5290
5290
} , "12" :function ( container , depth0 , helpers , partials , data ) {
5291
5291
var stack1 , lookupProperty = container . lookupProperty || function ( parent , propertyName ) {
@@ -5296,15 +5296,26 @@ var templateExportHook = {"1":function(container,depth0,helpers,partials,data) {
5296
5296
} ;
5297
5297
5298
5298
return "{\n"
5299
- + ( ( stack1 = lookupProperty ( helpers , "each" ) . call ( depth0 != null ? depth0 : ( container . nullContext || { } ) , lookupProperty ( depth0 , "parameters" ) , { "name" :"each" , "hash" :{ } , "fn" :container . program ( 13 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :19 , "column" :6 } , "end" :{ "line" :21 , "column" :18 } } } ) ) != null ? stack1 : "" )
5300
- + " }" ;
5299
+ + ( ( stack1 = lookupProperty ( helpers , "each" ) . call ( depth0 != null ? depth0 : ( container . nullContext || { } ) , lookupProperty ( depth0 , "parameters" ) , { "name" :"each" , "hash" :{ } , "fn" :container . program ( 13 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :21 , "column" :9 } , "end" :{ "line" :27 , "column" :18 } } } ) ) != null ? stack1 : "" )
5300
+ + " }" ;
5301
5301
} , "13" :function ( container , depth0 , helpers , partials , data ) {
5302
+ var stack1 , lookupProperty = container . lookupProperty || function ( parent , propertyName ) {
5303
+ if ( Object . prototype . hasOwnProperty . call ( parent , propertyName ) ) {
5304
+ return parent [ propertyName ] ;
5305
+ }
5306
+ return undefined
5307
+ } ;
5308
+
5309
+ return ( ( stack1 = lookupProperty ( helpers , "if" ) . call ( depth0 != null ? depth0 : ( container . nullContext || { } ) , lookupProperty ( depth0 , "name" ) , { "name" :"if" , "hash" :{ } , "fn" :container . program ( 14 , data , 0 ) , "inverse" :container . program ( 16 , data , 0 ) , "data" :data , "loc" :{ "start" :{ "line" :22 , "column" :11 } , "end" :{ "line" :26 , "column" :18 } } } ) ) != null ? stack1 : "" ) ;
5310
+ } , "14" :function ( container , depth0 , helpers , partials , data ) {
5302
5311
var stack1 ;
5303
5312
5304
- return " "
5305
- + ( ( stack1 = container . lambda ( container . strict ( depth0 , "name" , { "start" :{ "line" :20 , "column" :9 } , "end" :{ "line" :20 , "column" :13 } } ) , depth0 ) ) != null ? stack1 : "" )
5313
+ return " "
5314
+ + ( ( stack1 = container . lambda ( container . strict ( depth0 , "name" , { "start" :{ "line" :23 , "column" :15 } , "end" :{ "line" :23 , "column" :19 } } ) , depth0 ) ) != null ? stack1 : "" )
5306
5315
+ ",\n" ;
5307
- } , "15" :function ( container , depth0 , helpers , partials , data ) {
5316
+ } , "16" :function ( container , depth0 , helpers , partials , data ) {
5317
+ return " _,\n" ;
5318
+ } , "18" :function ( container , depth0 , helpers , partials , data ) {
5308
5319
var stack1 , alias1 = depth0 != null ? depth0 : ( container . nullContext || { } ) , lookupProperty = container . lookupProperty || function ( parent , propertyName ) {
5309
5320
if ( Object . prototype . hasOwnProperty . call ( parent , propertyName ) ) {
5310
5321
return parent [ propertyName ] ;
@@ -5313,21 +5324,21 @@ var templateExportHook = {"1":function(container,depth0,helpers,partials,data) {
5313
5324
} ;
5314
5325
5315
5326
return " export const use"
5316
- + ( ( stack1 = lookupProperty ( helpers , "pascalCase" ) . call ( alias1 , lookupProperty ( depth0 , "name" ) , { "name" :"pascalCase" , "hash" :{ } , "data" :data , "loc" :{ "start" :{ "line" :26 , "column" :19 } , "end" :{ "line" :26 , "column" :38 } } } ) ) != null ? stack1 : "" )
5327
+ + ( ( stack1 = lookupProperty ( helpers , "pascalCase" ) . call ( alias1 , lookupProperty ( depth0 , "name" ) , { "name" :"pascalCase" , "hash" :{ } , "data" :data , "loc" :{ "start" :{ "line" :34 , "column" :19 } , "end" :{ "line" :34 , "column" :38 } } } ) ) != null ? stack1 : "" )
5317
5328
+ " = (options?: UseMutationOptions<"
5318
5329
+ ( ( stack1 = container . invokePartial ( lookupProperty ( partials , "result" ) , depth0 , { "name" :"result" , "data" :data , "helpers" :helpers , "partials" :partials , "decorators" :container . decorators } ) ) != null ? stack1 : "" )
5319
5330
+ ">) => {\n return useMutation<"
5320
5331
+ ( ( stack1 = container . invokePartial ( lookupProperty ( partials , "result" ) , depth0 , { "name" :"result" , "data" :data , "helpers" :helpers , "partials" :partials , "decorators" :container . decorators } ) ) != null ? stack1 : "" )
5321
- + ", any, any>(async ("
5332
+ + ", any, any>({\n mutationFn: async ("
5322
5333
+ ( ( stack1 = container . invokePartial ( lookupProperty ( partials , "parameters" ) , depth0 , { "name" :"parameters" , "data" :data , "helpers" :helpers , "partials" :partials , "decorators" :container . decorators } ) ) != null ? stack1 : "" )
5323
- + ") => {\n return client."
5324
- + ( ( stack1 = lookupProperty ( helpers , "camelCase" ) . call ( alias1 , lookupProperty ( depth0 , "service" ) , { "name" :"camelCase" , "hash" :{ } , "data" :data , "loc" :{ "start" :{ "line" :28 , "column" :19 } , "end" :{ "line" :28 , "column" :40 } } } ) ) != null ? stack1 : "" )
5334
+ + ") => {\n return client."
5335
+ + ( ( stack1 = lookupProperty ( helpers , "camelCase" ) . call ( alias1 , lookupProperty ( depth0 , "service" ) , { "name" :"camelCase" , "hash" :{ } , "data" :data , "loc" :{ "start" :{ "line" :37 , "column" :21 } , "end" :{ "line" :37 , "column" :42 } } } ) ) != null ? stack1 : "" )
5325
5336
+ "."
5326
- + ( ( stack1 = container . lambda ( container . strict ( depth0 , "name" , { "start" :{ "line" :28 , "column" :43 } , "end" :{ "line" :28 , "column" :47 } } ) , depth0 ) ) != null ? stack1 : "" )
5337
+ + ( ( stack1 = container . lambda ( container . strict ( depth0 , "name" , { "start" :{ "line" :37 , "column" :45 } , "end" :{ "line" :37 , "column" :49 } } ) , depth0 ) ) != null ? stack1 : "" )
5327
5338
+ "("
5328
- + ( ( stack1 = lookupProperty ( helpers , "if" ) . call ( alias1 , lookupProperty ( depth0 , "parameters" ) , { "name" :"if" , "hash" :{ } , "fn" :container . program ( 16 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :28 , "column" :50 } , "end" :{ "line" :32 , "column" :13 } } } ) ) != null ? stack1 : "" )
5329
- + ");\n }, options);\n };\n" ;
5330
- } , "16 " :function ( container , depth0 , helpers , partials , data ) {
5339
+ + ( ( stack1 = lookupProperty ( helpers , "if" ) . call ( alias1 , lookupProperty ( depth0 , "parameters" ) , { "name" :"if" , "hash" :{ } , "fn" :container . program ( 19 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :37 , "column" :52 } , "end" :{ "line" :41 , "column" :15 } } } ) ) != null ? stack1 : "" )
5340
+ + ");\n },\n ... options\n } );\n };\n" ;
5341
+ } , "19 " :function ( container , depth0 , helpers , partials , data ) {
5331
5342
var stack1 , lookupProperty = container . lookupProperty || function ( parent , propertyName ) {
5332
5343
if ( Object . prototype . hasOwnProperty . call ( parent , propertyName ) ) {
5333
5344
return parent [ propertyName ] ;
@@ -5336,8 +5347,14 @@ var templateExportHook = {"1":function(container,depth0,helpers,partials,data) {
5336
5347
} ;
5337
5348
5338
5349
return "{\n"
5339
- + ( ( stack1 = lookupProperty ( helpers , "each" ) . call ( depth0 != null ? depth0 : ( container . nullContext || { } ) , lookupProperty ( depth0 , "parameters" ) , { "name" :"each" , "hash" :{ } , "fn" :container . program ( 13 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :29 , "column" :6 } , "end" :{ "line" :31 , "column" :15 } } } ) ) != null ? stack1 : "" )
5340
- + " }" ;
5350
+ + ( ( stack1 = lookupProperty ( helpers , "each" ) . call ( depth0 != null ? depth0 : ( container . nullContext || { } ) , lookupProperty ( depth0 , "parameters" ) , { "name" :"each" , "hash" :{ } , "fn" :container . program ( 20 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :38 , "column" :9 } , "end" :{ "line" :40 , "column" :18 } } } ) ) != null ? stack1 : "" )
5351
+ + " }" ;
5352
+ } , "20" :function ( container , depth0 , helpers , partials , data ) {
5353
+ var stack1 ;
5354
+
5355
+ return " "
5356
+ + ( ( stack1 = container . lambda ( container . strict ( depth0 , "name" , { "start" :{ "line" :39 , "column" :13 } , "end" :{ "line" :39 , "column" :17 } } ) , depth0 ) ) != null ? stack1 : "" )
5357
+ + ",\n" ;
5341
5358
} , "compiler" :[ 8 , ">= 4.3.0" ] , "main" :function ( container , depth0 , helpers , partials , data ) {
5342
5359
var stack1 , alias1 = container . strict , alias2 = container . lambda , alias3 = depth0 != null ? depth0 : ( container . nullContext || { } ) , lookupProperty = container . lookupProperty || function ( parent , propertyName ) {
5343
5360
if ( Object . prototype . hasOwnProperty . call ( parent , propertyName ) ) {
@@ -5347,14 +5364,14 @@ var templateExportHook = {"1":function(container,depth0,helpers,partials,data) {
5347
5364
} ;
5348
5365
5349
5366
return ( ( stack1 = container . invokePartial ( lookupProperty ( partials , "header" ) , depth0 , { "name" :"header" , "data" :data , "helpers" :helpers , "partials" :partials , "decorators" :container . decorators } ) ) != null ? stack1 : "" )
5350
- + "\nimport { useQuery, useMutation } from '@anyroad/hooks ';\nimport type { UseQueryOptions, UseMutationOptions } from '@anyroad/hooks'; \nimport { "
5367
+ + "import { useQuery, useMutation } from '@tanstack/react-query ';\nimport type { UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';\n \nimport { "
5351
5368
+ ( ( stack1 = alias2 ( alias1 ( depth0 , "clientName" , { "start" :{ "line" :5 , "column" :11 } , "end" :{ "line" :5 , "column" :21 } } ) , depth0 ) ) != null ? stack1 : "" )
5352
5369
+ " } from '../../client';\n"
5353
5370
+ ( ( stack1 = lookupProperty ( helpers , "if" ) . call ( alias3 , lookupProperty ( depth0 , "imports" ) , { "name" :"if" , "hash" :{ } , "fn" :container . program ( 1 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :6 , "column" :0 } , "end" :{ "line" :10 , "column" :7 } } } ) ) != null ? stack1 : "" )
5354
5371
+ "\nconst client = new "
5355
5372
+ ( ( stack1 = alias2 ( alias1 ( depth0 , "clientName" , { "start" :{ "line" :12 , "column" :21 } , "end" :{ "line" :12 , "column" :31 } } ) , depth0 ) ) != null ? stack1 : "" )
5356
5373
+ "();\n\n"
5357
- + ( ( stack1 = lookupProperty ( helpers , "each" ) . call ( alias3 , lookupProperty ( depth0 , "operations" ) , { "name" :"each" , "hash" :{ } , "fn" :container . program ( 4 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :14 , "column" :0 } , "end" :{ "line" :36 , "column" :9 } } } ) ) != null ? stack1 : "" ) ;
5374
+ + ( ( stack1 = lookupProperty ( helpers , "each" ) . call ( alias3 , lookupProperty ( depth0 , "operations" ) , { "name" :"each" , "hash" :{ } , "fn" :container . program ( 4 , data , 0 ) , "inverse" :container . noop , "data" :data , "loc" :{ "start" :{ "line" :14 , "column" :0 } , "end" :{ "line" :47 , "column" :9 } } } ) ) != null ? stack1 : "" ) ;
5358
5375
} , "usePartial" :true , "useData" :true } ;
5359
5376
5360
5377
var templateIndex = { "1" :function ( container , depth0 , helpers , partials , data ) {
0 commit comments