@aws-amplify/graphql-model-transformer 0.7.0-auth-dir-v-next.1 → 0.7.0-ext10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,7 +107,7 @@ enum ModelSortDirection {
107
107
  }
108
108
 
109
109
  type ModelTestConnection {
110
- items: [Test]
110
+ items: [Test!]!
111
111
  nextToken: String
112
112
  }
113
113
 
@@ -162,7 +162,7 @@ type Subscription {
162
162
  }
163
163
 
164
164
  type ModelEmailConnection {
165
- items: [Email]
165
+ items: [Email!]!
166
166
  nextToken: String
167
167
  }
168
168
 
@@ -356,7 +356,7 @@ input EntityMetadataInput {
356
356
  }
357
357
 
358
358
  type ModelPostConnection {
359
- items: [Post]
359
+ items: [Post!]!
360
360
  nextToken: String
361
361
  }
362
362
 
@@ -463,7 +463,7 @@ type Subscription {
463
463
  }
464
464
 
465
465
  type ModelAuthorConnection {
466
- items: [Author]
466
+ items: [Author!]!
467
467
  nextToken: String
468
468
  }
469
469
 
@@ -501,7 +501,7 @@ input DeleteAuthorInput {
501
501
  }
502
502
 
503
503
  type ModelRequireConnection {
504
- items: [Require]
504
+ items: [Require!]!
505
505
  nextToken: String
506
506
  }
507
507
 
@@ -539,7 +539,7 @@ input DeleteRequireInput {
539
539
  }
540
540
 
541
541
  type ModelCommentConnection {
542
- items: [Comment]
542
+ items: [Comment!]!
543
543
  nextToken: String
544
544
  }
545
545
 
@@ -597,28 +597,12 @@ $util.toJson({
597
597
  })
598
598
  ## [End] Initialization default values. **",
599
599
  "Mutation.createAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
600
- $util.unauthorized()
600
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
601
+ $util.unauthorized()
602
+ #end
603
+ $util.toJson({})
601
604
  ## [End] Sandbox Mode Disabled. **",
602
605
  "Mutation.createAuthor.req.vtl": "## [Start] Create Request template. **
603
- ## Begin - key condition **
604
- #if( $ctx.stash.metadata.modelObjectKey )
605
- #set( $keyConditionExpr = {} )
606
- #set( $keyConditionExprNames = {} )
607
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
608
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
609
- \\"attributeExists\\": false
610
- }))
611
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
612
- #end
613
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
614
- #else
615
- $util.qr($ctx.stash.conditions.add({
616
- \\"id\\": {
617
- \\"attributeExists\\": false
618
- }
619
- }))
620
- #end
621
- ## End - key condition **
622
606
  ## Set the default values to put request **
623
607
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
624
608
  ## copy the values from input **
@@ -703,28 +687,12 @@ $util.toJson({
703
687
  })
704
688
  ## [End] Initialization default values. **",
705
689
  "Mutation.createComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
706
- $util.unauthorized()
690
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
691
+ $util.unauthorized()
692
+ #end
693
+ $util.toJson({})
707
694
  ## [End] Sandbox Mode Disabled. **",
708
695
  "Mutation.createComment.req.vtl": "## [Start] Create Request template. **
709
- ## Begin - key condition **
710
- #if( $ctx.stash.metadata.modelObjectKey )
711
- #set( $keyConditionExpr = {} )
712
- #set( $keyConditionExprNames = {} )
713
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
714
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
715
- \\"attributeExists\\": false
716
- }))
717
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
718
- #end
719
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
720
- #else
721
- $util.qr($ctx.stash.conditions.add({
722
- \\"id\\": {
723
- \\"attributeExists\\": false
724
- }
725
- }))
726
- #end
727
- ## End - key condition **
728
696
  ## Set the default values to put request **
729
697
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
730
698
  ## copy the values from input **
@@ -809,28 +777,12 @@ $util.toJson({
809
777
  })
810
778
  ## [End] Initialization default values. **",
811
779
  "Mutation.createEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
812
- $util.unauthorized()
780
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
781
+ $util.unauthorized()
782
+ #end
783
+ $util.toJson({})
813
784
  ## [End] Sandbox Mode Disabled. **",
814
785
  "Mutation.createEmail.req.vtl": "## [Start] Create Request template. **
815
- ## Begin - key condition **
816
- #if( $ctx.stash.metadata.modelObjectKey )
817
- #set( $keyConditionExpr = {} )
818
- #set( $keyConditionExprNames = {} )
819
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
820
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
821
- \\"attributeExists\\": false
822
- }))
823
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
824
- #end
825
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
826
- #else
827
- $util.qr($ctx.stash.conditions.add({
828
- \\"id\\": {
829
- \\"attributeExists\\": false
830
- }
831
- }))
832
- #end
833
- ## End - key condition **
834
786
  ## Set the default values to put request **
835
787
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
836
788
  ## copy the values from input **
@@ -915,28 +867,12 @@ $util.toJson({
915
867
  })
916
868
  ## [End] Initialization default values. **",
917
869
  "Mutation.createPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
918
- $util.unauthorized()
870
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
871
+ $util.unauthorized()
872
+ #end
873
+ $util.toJson({})
919
874
  ## [End] Sandbox Mode Disabled. **",
920
875
  "Mutation.createPost.req.vtl": "## [Start] Create Request template. **
921
- ## Begin - key condition **
922
- #if( $ctx.stash.metadata.modelObjectKey )
923
- #set( $keyConditionExpr = {} )
924
- #set( $keyConditionExprNames = {} )
925
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
926
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
927
- \\"attributeExists\\": false
928
- }))
929
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
930
- #end
931
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
932
- #else
933
- $util.qr($ctx.stash.conditions.add({
934
- \\"id\\": {
935
- \\"attributeExists\\": false
936
- }
937
- }))
938
- #end
939
- ## End - key condition **
940
876
  ## Set the default values to put request **
941
877
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
942
878
  ## copy the values from input **
@@ -1021,28 +957,12 @@ $util.toJson({
1021
957
  })
1022
958
  ## [End] Initialization default values. **",
1023
959
  "Mutation.createRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1024
- $util.unauthorized()
960
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
961
+ $util.unauthorized()
962
+ #end
963
+ $util.toJson({})
1025
964
  ## [End] Sandbox Mode Disabled. **",
1026
965
  "Mutation.createRequire.req.vtl": "## [Start] Create Request template. **
1027
- ## Begin - key condition **
1028
- #if( $ctx.stash.metadata.modelObjectKey )
1029
- #set( $keyConditionExpr = {} )
1030
- #set( $keyConditionExprNames = {} )
1031
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
1032
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
1033
- \\"attributeExists\\": false
1034
- }))
1035
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
1036
- #end
1037
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
1038
- #else
1039
- $util.qr($ctx.stash.conditions.add({
1040
- \\"id\\": {
1041
- \\"attributeExists\\": false
1042
- }
1043
- }))
1044
- #end
1045
- ## End - key condition **
1046
966
  ## Set the default values to put request **
1047
967
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
1048
968
  ## copy the values from input **
@@ -1127,28 +1047,12 @@ $util.toJson({
1127
1047
  })
1128
1048
  ## [End] Initialization default values. **",
1129
1049
  "Mutation.createTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1130
- $util.unauthorized()
1050
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1051
+ $util.unauthorized()
1052
+ #end
1053
+ $util.toJson({})
1131
1054
  ## [End] Sandbox Mode Disabled. **",
1132
1055
  "Mutation.createTest.req.vtl": "## [Start] Create Request template. **
1133
- ## Begin - key condition **
1134
- #if( $ctx.stash.metadata.modelObjectKey )
1135
- #set( $keyConditionExpr = {} )
1136
- #set( $keyConditionExprNames = {} )
1137
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
1138
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
1139
- \\"attributeExists\\": false
1140
- }))
1141
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
1142
- #end
1143
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
1144
- #else
1145
- $util.qr($ctx.stash.conditions.add({
1146
- \\"id\\": {
1147
- \\"attributeExists\\": false
1148
- }
1149
- }))
1150
- #end
1151
- ## End - key condition **
1152
1056
  ## Set the default values to put request **
1153
1057
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
1154
1058
  ## copy the values from input **
@@ -1233,28 +1137,12 @@ $util.toJson({
1233
1137
  })
1234
1138
  ## [End] Initialization default values. **",
1235
1139
  "Mutation.createUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1236
- $util.unauthorized()
1140
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1141
+ $util.unauthorized()
1142
+ #end
1143
+ $util.toJson({})
1237
1144
  ## [End] Sandbox Mode Disabled. **",
1238
1145
  "Mutation.createUser.req.vtl": "## [Start] Create Request template. **
1239
- ## Begin - key condition **
1240
- #if( $ctx.stash.metadata.modelObjectKey )
1241
- #set( $keyConditionExpr = {} )
1242
- #set( $keyConditionExprNames = {} )
1243
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
1244
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
1245
- \\"attributeExists\\": false
1246
- }))
1247
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
1248
- #end
1249
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
1250
- #else
1251
- $util.qr($ctx.stash.conditions.add({
1252
- \\"id\\": {
1253
- \\"attributeExists\\": false
1254
- }
1255
- }))
1256
- #end
1257
- ## End - key condition **
1258
1146
  ## Set the default values to put request **
1259
1147
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
1260
1148
  ## copy the values from input **
@@ -1339,28 +1227,12 @@ $util.toJson({
1339
1227
  })
1340
1228
  ## [End] Initialization default values. **",
1341
1229
  "Mutation.customCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1342
- $util.unauthorized()
1230
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1231
+ $util.unauthorized()
1232
+ #end
1233
+ $util.toJson({})
1343
1234
  ## [End] Sandbox Mode Disabled. **",
1344
1235
  "Mutation.customCreatePost.req.vtl": "## [Start] Create Request template. **
1345
- ## Begin - key condition **
1346
- #if( $ctx.stash.metadata.modelObjectKey )
1347
- #set( $keyConditionExpr = {} )
1348
- #set( $keyConditionExprNames = {} )
1349
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
1350
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
1351
- \\"attributeExists\\": false
1352
- }))
1353
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
1354
- #end
1355
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
1356
- #else
1357
- $util.qr($ctx.stash.conditions.add({
1358
- \\"id\\": {
1359
- \\"attributeExists\\": false
1360
- }
1361
- }))
1362
- #end
1363
- ## End - key condition **
1364
1236
  ## Set the default values to put request **
1365
1237
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
1366
1238
  ## copy the values from input **
@@ -1434,7 +1306,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
1434
1306
  #end
1435
1307
  ## [End] ResponseTemplate. **",
1436
1308
  "Mutation.customDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1437
- $util.unauthorized()
1309
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1310
+ $util.unauthorized()
1311
+ #end
1312
+ $util.toJson({})
1438
1313
  ## [End] Sandbox Mode Disabled. **",
1439
1314
  "Mutation.customDeletePost.req.vtl": "## [Start] Delete Request template. **
1440
1315
  #set( $DeleteRequest = {
@@ -1511,7 +1386,10 @@ $util.toJson({
1511
1386
  })
1512
1387
  ## [End] Initialization default values. **",
1513
1388
  "Mutation.customUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1514
- $util.unauthorized()
1389
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1390
+ $util.unauthorized()
1391
+ #end
1392
+ $util.toJson({})
1515
1393
  ## [End] Sandbox Mode Disabled. **",
1516
1394
  "Mutation.customUpdatePost.req.vtl": "## [Start] Mutation Update resolver. **
1517
1395
  ## Set the default values to put request **
@@ -1651,7 +1529,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
1651
1529
  #end
1652
1530
  ## [End] ResponseTemplate. **",
1653
1531
  "Mutation.deleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1654
- $util.unauthorized()
1532
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1533
+ $util.unauthorized()
1534
+ #end
1535
+ $util.toJson({})
1655
1536
  ## [End] Sandbox Mode Disabled. **",
1656
1537
  "Mutation.deleteAuthor.req.vtl": "## [Start] Delete Request template. **
1657
1538
  #set( $DeleteRequest = {
@@ -1719,7 +1600,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
1719
1600
  #end
1720
1601
  ## [End] ResponseTemplate. **",
1721
1602
  "Mutation.deleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1722
- $util.unauthorized()
1603
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1604
+ $util.unauthorized()
1605
+ #end
1606
+ $util.toJson({})
1723
1607
  ## [End] Sandbox Mode Disabled. **",
1724
1608
  "Mutation.deleteComment.req.vtl": "## [Start] Delete Request template. **
1725
1609
  #set( $DeleteRequest = {
@@ -1787,7 +1671,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
1787
1671
  #end
1788
1672
  ## [End] ResponseTemplate. **",
1789
1673
  "Mutation.deleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1790
- $util.unauthorized()
1674
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1675
+ $util.unauthorized()
1676
+ #end
1677
+ $util.toJson({})
1791
1678
  ## [End] Sandbox Mode Disabled. **",
1792
1679
  "Mutation.deleteEmail.req.vtl": "## [Start] Delete Request template. **
1793
1680
  #set( $DeleteRequest = {
@@ -1855,7 +1742,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
1855
1742
  #end
1856
1743
  ## [End] ResponseTemplate. **",
1857
1744
  "Mutation.deletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1858
- $util.unauthorized()
1745
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1746
+ $util.unauthorized()
1747
+ #end
1748
+ $util.toJson({})
1859
1749
  ## [End] Sandbox Mode Disabled. **",
1860
1750
  "Mutation.deletePost.req.vtl": "## [Start] Delete Request template. **
1861
1751
  #set( $DeleteRequest = {
@@ -1924,7 +1814,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
1924
1814
  #end
1925
1815
  ## [End] ResponseTemplate. **",
1926
1816
  "Mutation.deleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1927
- $util.unauthorized()
1817
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1818
+ $util.unauthorized()
1819
+ #end
1820
+ $util.toJson({})
1928
1821
  ## [End] Sandbox Mode Disabled. **",
1929
1822
  "Mutation.deleteRequire.req.vtl": "## [Start] Delete Request template. **
1930
1823
  #set( $DeleteRequest = {
@@ -1992,7 +1885,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
1992
1885
  #end
1993
1886
  ## [End] ResponseTemplate. **",
1994
1887
  "Mutation.deleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
1995
- $util.unauthorized()
1888
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1889
+ $util.unauthorized()
1890
+ #end
1891
+ $util.toJson({})
1996
1892
  ## [End] Sandbox Mode Disabled. **",
1997
1893
  "Mutation.deleteTest.req.vtl": "## [Start] Delete Request template. **
1998
1894
  #set( $DeleteRequest = {
@@ -2060,7 +1956,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
2060
1956
  #end
2061
1957
  ## [End] ResponseTemplate. **",
2062
1958
  "Mutation.deleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
2063
- $util.unauthorized()
1959
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
1960
+ $util.unauthorized()
1961
+ #end
1962
+ $util.toJson({})
2064
1963
  ## [End] Sandbox Mode Disabled. **",
2065
1964
  "Mutation.deleteUser.req.vtl": "## [Start] Delete Request template. **
2066
1965
  #set( $DeleteRequest = {
@@ -2137,7 +2036,10 @@ $util.toJson({
2137
2036
  })
2138
2037
  ## [End] Initialization default values. **",
2139
2038
  "Mutation.updateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
2140
- $util.unauthorized()
2039
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
2040
+ $util.unauthorized()
2041
+ #end
2042
+ $util.toJson({})
2141
2043
  ## [End] Sandbox Mode Disabled. **",
2142
2044
  "Mutation.updateAuthor.req.vtl": "## [Start] Mutation Update resolver. **
2143
2045
  ## Set the default values to put request **
@@ -2286,7 +2188,10 @@ $util.toJson({
2286
2188
  })
2287
2189
  ## [End] Initialization default values. **",
2288
2190
  "Mutation.updateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
2289
- $util.unauthorized()
2191
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
2192
+ $util.unauthorized()
2193
+ #end
2194
+ $util.toJson({})
2290
2195
  ## [End] Sandbox Mode Disabled. **",
2291
2196
  "Mutation.updateComment.req.vtl": "## [Start] Mutation Update resolver. **
2292
2197
  ## Set the default values to put request **
@@ -2435,7 +2340,10 @@ $util.toJson({
2435
2340
  })
2436
2341
  ## [End] Initialization default values. **",
2437
2342
  "Mutation.updateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
2438
- $util.unauthorized()
2343
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
2344
+ $util.unauthorized()
2345
+ #end
2346
+ $util.toJson({})
2439
2347
  ## [End] Sandbox Mode Disabled. **",
2440
2348
  "Mutation.updateEmail.req.vtl": "## [Start] Mutation Update resolver. **
2441
2349
  ## Set the default values to put request **
@@ -2584,7 +2492,10 @@ $util.toJson({
2584
2492
  })
2585
2493
  ## [End] Initialization default values. **",
2586
2494
  "Mutation.updatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
2587
- $util.unauthorized()
2495
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
2496
+ $util.unauthorized()
2497
+ #end
2498
+ $util.toJson({})
2588
2499
  ## [End] Sandbox Mode Disabled. **",
2589
2500
  "Mutation.updatePost.req.vtl": "## [Start] Mutation Update resolver. **
2590
2501
  ## Set the default values to put request **
@@ -2734,7 +2645,10 @@ $util.toJson({
2734
2645
  })
2735
2646
  ## [End] Initialization default values. **",
2736
2647
  "Mutation.updateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
2737
- $util.unauthorized()
2648
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
2649
+ $util.unauthorized()
2650
+ #end
2651
+ $util.toJson({})
2738
2652
  ## [End] Sandbox Mode Disabled. **",
2739
2653
  "Mutation.updateRequire.req.vtl": "## [Start] Mutation Update resolver. **
2740
2654
  ## Set the default values to put request **
@@ -2883,7 +2797,10 @@ $util.toJson({
2883
2797
  })
2884
2798
  ## [End] Initialization default values. **",
2885
2799
  "Mutation.updateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
2886
- $util.unauthorized()
2800
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
2801
+ $util.unauthorized()
2802
+ #end
2803
+ $util.toJson({})
2887
2804
  ## [End] Sandbox Mode Disabled. **",
2888
2805
  "Mutation.updateTest.req.vtl": "## [Start] Mutation Update resolver. **
2889
2806
  ## Set the default values to put request **
@@ -3032,7 +2949,10 @@ $util.toJson({
3032
2949
  })
3033
2950
  ## [End] Initialization default values. **",
3034
2951
  "Mutation.updateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3035
- $util.unauthorized()
2952
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
2953
+ $util.unauthorized()
2954
+ #end
2955
+ $util.toJson({})
3036
2956
  ## [End] Sandbox Mode Disabled. **",
3037
2957
  "Mutation.updateUser.req.vtl": "## [Start] Mutation Update resolver. **
3038
2958
  ## Set the default values to put request **
@@ -3172,7 +3092,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
3172
3092
  #end
3173
3093
  ## [End] ResponseTemplate. **",
3174
3094
  "Query.customGetPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3175
- $util.unauthorized()
3095
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3096
+ $util.unauthorized()
3097
+ #end
3098
+ $util.toJson({})
3176
3099
  ## [End] Sandbox Mode Disabled. **",
3177
3100
  "Query.customGetPost.req.vtl": "## [Start] Get Request template. **
3178
3101
  #set( $GetRequest = {
@@ -3181,14 +3104,17 @@ $util.unauthorized()
3181
3104
  } )
3182
3105
  #if( $ctx.stash.metadata.modelObjectKey )
3183
3106
  #set( $expression = \\"\\" )
3107
+ #set( $expressionNames = {} )
3184
3108
  #set( $expressionValues = {} )
3185
3109
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
3186
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
3187
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
3110
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
3111
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
3112
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
3188
3113
  #end
3189
3114
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
3190
3115
  #set( $query = {
3191
3116
  \\"expression\\": $expression,
3117
+ \\"expressionNames\\": $expressionNames,
3192
3118
  \\"expressionValues\\": $expressionValues
3193
3119
  } )
3194
3120
  #else
@@ -3219,7 +3145,10 @@ $util.unauthorized()
3219
3145
  #end
3220
3146
  ## [End] Get Response template. **",
3221
3147
  "Query.customListPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3222
- $util.unauthorized()
3148
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3149
+ $util.unauthorized()
3150
+ #end
3151
+ $util.toJson({})
3223
3152
  ## [End] Sandbox Mode Disabled. **",
3224
3153
  "Query.customListPost.req.vtl": "## [Start] List Request. **
3225
3154
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -3233,9 +3162,9 @@ $util.unauthorized()
3233
3162
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
3234
3163
  #set( $filter = $ctx.stash.authFilter )
3235
3164
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
3236
- #set( $filter = [{
3165
+ #set( $filter = {
3237
3166
  \\"and\\": [$filter, $ctx.args.filter]
3238
- }] )
3167
+ } )
3239
3168
  #end
3240
3169
  #else
3241
3170
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -3275,7 +3204,10 @@ $util.toJson($ListRequest)
3275
3204
  #end
3276
3205
  ## [End] ResponseTemplate. **",
3277
3206
  "Query.getAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3278
- $util.unauthorized()
3207
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3208
+ $util.unauthorized()
3209
+ #end
3210
+ $util.toJson({})
3279
3211
  ## [End] Sandbox Mode Disabled. **",
3280
3212
  "Query.getAuthor.req.vtl": "## [Start] Get Request template. **
3281
3213
  #set( $GetRequest = {
@@ -3284,14 +3216,17 @@ $util.unauthorized()
3284
3216
  } )
3285
3217
  #if( $ctx.stash.metadata.modelObjectKey )
3286
3218
  #set( $expression = \\"\\" )
3219
+ #set( $expressionNames = {} )
3287
3220
  #set( $expressionValues = {} )
3288
3221
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
3289
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
3290
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
3222
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
3223
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
3224
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
3291
3225
  #end
3292
3226
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
3293
3227
  #set( $query = {
3294
3228
  \\"expression\\": $expression,
3229
+ \\"expressionNames\\": $expressionNames,
3295
3230
  \\"expressionValues\\": $expressionValues
3296
3231
  } )
3297
3232
  #else
@@ -3322,7 +3257,10 @@ $util.unauthorized()
3322
3257
  #end
3323
3258
  ## [End] Get Response template. **",
3324
3259
  "Query.getComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3325
- $util.unauthorized()
3260
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3261
+ $util.unauthorized()
3262
+ #end
3263
+ $util.toJson({})
3326
3264
  ## [End] Sandbox Mode Disabled. **",
3327
3265
  "Query.getComment.req.vtl": "## [Start] Get Request template. **
3328
3266
  #set( $GetRequest = {
@@ -3331,14 +3269,17 @@ $util.unauthorized()
3331
3269
  } )
3332
3270
  #if( $ctx.stash.metadata.modelObjectKey )
3333
3271
  #set( $expression = \\"\\" )
3272
+ #set( $expressionNames = {} )
3334
3273
  #set( $expressionValues = {} )
3335
3274
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
3336
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
3337
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
3275
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
3276
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
3277
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
3338
3278
  #end
3339
3279
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
3340
3280
  #set( $query = {
3341
3281
  \\"expression\\": $expression,
3282
+ \\"expressionNames\\": $expressionNames,
3342
3283
  \\"expressionValues\\": $expressionValues
3343
3284
  } )
3344
3285
  #else
@@ -3369,7 +3310,10 @@ $util.unauthorized()
3369
3310
  #end
3370
3311
  ## [End] Get Response template. **",
3371
3312
  "Query.getEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3372
- $util.unauthorized()
3313
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3314
+ $util.unauthorized()
3315
+ #end
3316
+ $util.toJson({})
3373
3317
  ## [End] Sandbox Mode Disabled. **",
3374
3318
  "Query.getEmail.req.vtl": "## [Start] Get Request template. **
3375
3319
  #set( $GetRequest = {
@@ -3378,14 +3322,17 @@ $util.unauthorized()
3378
3322
  } )
3379
3323
  #if( $ctx.stash.metadata.modelObjectKey )
3380
3324
  #set( $expression = \\"\\" )
3325
+ #set( $expressionNames = {} )
3381
3326
  #set( $expressionValues = {} )
3382
3327
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
3383
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
3384
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
3328
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
3329
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
3330
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
3385
3331
  #end
3386
3332
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
3387
3333
  #set( $query = {
3388
3334
  \\"expression\\": $expression,
3335
+ \\"expressionNames\\": $expressionNames,
3389
3336
  \\"expressionValues\\": $expressionValues
3390
3337
  } )
3391
3338
  #else
@@ -3416,7 +3363,10 @@ $util.unauthorized()
3416
3363
  #end
3417
3364
  ## [End] Get Response template. **",
3418
3365
  "Query.getEntity.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3419
- $util.unauthorized()
3366
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3367
+ $util.unauthorized()
3368
+ #end
3369
+ $util.toJson({})
3420
3370
  ## [End] Sandbox Mode Disabled. **",
3421
3371
  "Query.getEntity.req.vtl": "## [Start] Get Request template. **
3422
3372
  #set( $GetRequest = {
@@ -3425,14 +3375,17 @@ $util.unauthorized()
3425
3375
  } )
3426
3376
  #if( $ctx.stash.metadata.modelObjectKey )
3427
3377
  #set( $expression = \\"\\" )
3378
+ #set( $expressionNames = {} )
3428
3379
  #set( $expressionValues = {} )
3429
3380
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
3430
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
3431
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
3381
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
3382
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
3383
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
3432
3384
  #end
3433
3385
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
3434
3386
  #set( $query = {
3435
3387
  \\"expression\\": $expression,
3388
+ \\"expressionNames\\": $expressionNames,
3436
3389
  \\"expressionValues\\": $expressionValues
3437
3390
  } )
3438
3391
  #else
@@ -3463,7 +3416,10 @@ $util.unauthorized()
3463
3416
  #end
3464
3417
  ## [End] Get Response template. **",
3465
3418
  "Query.getPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3466
- $util.unauthorized()
3419
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3420
+ $util.unauthorized()
3421
+ #end
3422
+ $util.toJson({})
3467
3423
  ## [End] Sandbox Mode Disabled. **",
3468
3424
  "Query.getPost.req.vtl": "## [Start] Get Request template. **
3469
3425
  #set( $GetRequest = {
@@ -3472,14 +3428,17 @@ $util.unauthorized()
3472
3428
  } )
3473
3429
  #if( $ctx.stash.metadata.modelObjectKey )
3474
3430
  #set( $expression = \\"\\" )
3431
+ #set( $expressionNames = {} )
3475
3432
  #set( $expressionValues = {} )
3476
3433
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
3477
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
3478
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
3434
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
3435
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
3436
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
3479
3437
  #end
3480
3438
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
3481
3439
  #set( $query = {
3482
3440
  \\"expression\\": $expression,
3441
+ \\"expressionNames\\": $expressionNames,
3483
3442
  \\"expressionValues\\": $expressionValues
3484
3443
  } )
3485
3444
  #else
@@ -3510,7 +3469,10 @@ $util.unauthorized()
3510
3469
  #end
3511
3470
  ## [End] Get Response template. **",
3512
3471
  "Query.getRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3513
- $util.unauthorized()
3472
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3473
+ $util.unauthorized()
3474
+ #end
3475
+ $util.toJson({})
3514
3476
  ## [End] Sandbox Mode Disabled. **",
3515
3477
  "Query.getRequire.req.vtl": "## [Start] Get Request template. **
3516
3478
  #set( $GetRequest = {
@@ -3519,14 +3481,17 @@ $util.unauthorized()
3519
3481
  } )
3520
3482
  #if( $ctx.stash.metadata.modelObjectKey )
3521
3483
  #set( $expression = \\"\\" )
3484
+ #set( $expressionNames = {} )
3522
3485
  #set( $expressionValues = {} )
3523
3486
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
3524
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
3525
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
3487
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
3488
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
3489
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
3526
3490
  #end
3527
3491
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
3528
3492
  #set( $query = {
3529
3493
  \\"expression\\": $expression,
3494
+ \\"expressionNames\\": $expressionNames,
3530
3495
  \\"expressionValues\\": $expressionValues
3531
3496
  } )
3532
3497
  #else
@@ -3557,7 +3522,10 @@ $util.unauthorized()
3557
3522
  #end
3558
3523
  ## [End] Get Response template. **",
3559
3524
  "Query.getTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3560
- $util.unauthorized()
3525
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3526
+ $util.unauthorized()
3527
+ #end
3528
+ $util.toJson({})
3561
3529
  ## [End] Sandbox Mode Disabled. **",
3562
3530
  "Query.getTest.req.vtl": "## [Start] Get Request template. **
3563
3531
  #set( $GetRequest = {
@@ -3566,14 +3534,17 @@ $util.unauthorized()
3566
3534
  } )
3567
3535
  #if( $ctx.stash.metadata.modelObjectKey )
3568
3536
  #set( $expression = \\"\\" )
3537
+ #set( $expressionNames = {} )
3569
3538
  #set( $expressionValues = {} )
3570
3539
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
3571
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
3572
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
3540
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
3541
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
3542
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
3573
3543
  #end
3574
3544
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
3575
3545
  #set( $query = {
3576
3546
  \\"expression\\": $expression,
3547
+ \\"expressionNames\\": $expressionNames,
3577
3548
  \\"expressionValues\\": $expressionValues
3578
3549
  } )
3579
3550
  #else
@@ -3604,7 +3575,10 @@ $util.unauthorized()
3604
3575
  #end
3605
3576
  ## [End] Get Response template. **",
3606
3577
  "Query.getUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3607
- $util.unauthorized()
3578
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3579
+ $util.unauthorized()
3580
+ #end
3581
+ $util.toJson({})
3608
3582
  ## [End] Sandbox Mode Disabled. **",
3609
3583
  "Query.getUser.req.vtl": "## [Start] Get Request template. **
3610
3584
  #set( $GetRequest = {
@@ -3613,14 +3587,17 @@ $util.unauthorized()
3613
3587
  } )
3614
3588
  #if( $ctx.stash.metadata.modelObjectKey )
3615
3589
  #set( $expression = \\"\\" )
3590
+ #set( $expressionNames = {} )
3616
3591
  #set( $expressionValues = {} )
3617
3592
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
3618
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
3619
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
3593
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
3594
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
3595
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
3620
3596
  #end
3621
3597
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
3622
3598
  #set( $query = {
3623
3599
  \\"expression\\": $expression,
3600
+ \\"expressionNames\\": $expressionNames,
3624
3601
  \\"expressionValues\\": $expressionValues
3625
3602
  } )
3626
3603
  #else
@@ -3651,7 +3628,10 @@ $util.unauthorized()
3651
3628
  #end
3652
3629
  ## [End] Get Response template. **",
3653
3630
  "Query.listAuthors.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3654
- $util.unauthorized()
3631
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3632
+ $util.unauthorized()
3633
+ #end
3634
+ $util.toJson({})
3655
3635
  ## [End] Sandbox Mode Disabled. **",
3656
3636
  "Query.listAuthors.req.vtl": "## [Start] List Request. **
3657
3637
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -3665,9 +3645,9 @@ $util.unauthorized()
3665
3645
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
3666
3646
  #set( $filter = $ctx.stash.authFilter )
3667
3647
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
3668
- #set( $filter = [{
3648
+ #set( $filter = {
3669
3649
  \\"and\\": [$filter, $ctx.args.filter]
3670
- }] )
3650
+ } )
3671
3651
  #end
3672
3652
  #else
3673
3653
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -3707,7 +3687,10 @@ $util.toJson($ListRequest)
3707
3687
  #end
3708
3688
  ## [End] ResponseTemplate. **",
3709
3689
  "Query.listComments.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3710
- $util.unauthorized()
3690
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3691
+ $util.unauthorized()
3692
+ #end
3693
+ $util.toJson({})
3711
3694
  ## [End] Sandbox Mode Disabled. **",
3712
3695
  "Query.listComments.req.vtl": "## [Start] List Request. **
3713
3696
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -3721,9 +3704,9 @@ $util.unauthorized()
3721
3704
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
3722
3705
  #set( $filter = $ctx.stash.authFilter )
3723
3706
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
3724
- #set( $filter = [{
3707
+ #set( $filter = {
3725
3708
  \\"and\\": [$filter, $ctx.args.filter]
3726
- }] )
3709
+ } )
3727
3710
  #end
3728
3711
  #else
3729
3712
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -3763,7 +3746,10 @@ $util.toJson($ListRequest)
3763
3746
  #end
3764
3747
  ## [End] ResponseTemplate. **",
3765
3748
  "Query.listEmails.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3766
- $util.unauthorized()
3749
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3750
+ $util.unauthorized()
3751
+ #end
3752
+ $util.toJson({})
3767
3753
  ## [End] Sandbox Mode Disabled. **",
3768
3754
  "Query.listEmails.req.vtl": "## [Start] List Request. **
3769
3755
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -3777,9 +3763,9 @@ $util.unauthorized()
3777
3763
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
3778
3764
  #set( $filter = $ctx.stash.authFilter )
3779
3765
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
3780
- #set( $filter = [{
3766
+ #set( $filter = {
3781
3767
  \\"and\\": [$filter, $ctx.args.filter]
3782
- }] )
3768
+ } )
3783
3769
  #end
3784
3770
  #else
3785
3771
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -3819,7 +3805,10 @@ $util.toJson($ListRequest)
3819
3805
  #end
3820
3806
  ## [End] ResponseTemplate. **",
3821
3807
  "Query.listPosts.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3822
- $util.unauthorized()
3808
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3809
+ $util.unauthorized()
3810
+ #end
3811
+ $util.toJson({})
3823
3812
  ## [End] Sandbox Mode Disabled. **",
3824
3813
  "Query.listPosts.req.vtl": "## [Start] List Request. **
3825
3814
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -3833,9 +3822,9 @@ $util.unauthorized()
3833
3822
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
3834
3823
  #set( $filter = $ctx.stash.authFilter )
3835
3824
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
3836
- #set( $filter = [{
3825
+ #set( $filter = {
3837
3826
  \\"and\\": [$filter, $ctx.args.filter]
3838
- }] )
3827
+ } )
3839
3828
  #end
3840
3829
  #else
3841
3830
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -3875,7 +3864,10 @@ $util.toJson($ListRequest)
3875
3864
  #end
3876
3865
  ## [End] ResponseTemplate. **",
3877
3866
  "Query.listRequires.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3878
- $util.unauthorized()
3867
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3868
+ $util.unauthorized()
3869
+ #end
3870
+ $util.toJson({})
3879
3871
  ## [End] Sandbox Mode Disabled. **",
3880
3872
  "Query.listRequires.req.vtl": "## [Start] List Request. **
3881
3873
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -3889,9 +3881,9 @@ $util.unauthorized()
3889
3881
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
3890
3882
  #set( $filter = $ctx.stash.authFilter )
3891
3883
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
3892
- #set( $filter = [{
3884
+ #set( $filter = {
3893
3885
  \\"and\\": [$filter, $ctx.args.filter]
3894
- }] )
3886
+ } )
3895
3887
  #end
3896
3888
  #else
3897
3889
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -3931,7 +3923,10 @@ $util.toJson($ListRequest)
3931
3923
  #end
3932
3924
  ## [End] ResponseTemplate. **",
3933
3925
  "Query.listTests.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3934
- $util.unauthorized()
3926
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3927
+ $util.unauthorized()
3928
+ #end
3929
+ $util.toJson({})
3935
3930
  ## [End] Sandbox Mode Disabled. **",
3936
3931
  "Query.listTests.req.vtl": "## [Start] List Request. **
3937
3932
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -3945,9 +3940,9 @@ $util.unauthorized()
3945
3940
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
3946
3941
  #set( $filter = $ctx.stash.authFilter )
3947
3942
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
3948
- #set( $filter = [{
3943
+ #set( $filter = {
3949
3944
  \\"and\\": [$filter, $ctx.args.filter]
3950
- }] )
3945
+ } )
3951
3946
  #end
3952
3947
  #else
3953
3948
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -3987,7 +3982,10 @@ $util.toJson($ListRequest)
3987
3982
  #end
3988
3983
  ## [End] ResponseTemplate. **",
3989
3984
  "Query.listUsers.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
3990
- $util.unauthorized()
3985
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
3986
+ $util.unauthorized()
3987
+ #end
3988
+ $util.toJson({})
3991
3989
  ## [End] Sandbox Mode Disabled. **",
3992
3990
  "Query.listUsers.req.vtl": "## [Start] List Request. **
3993
3991
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -4001,9 +3999,9 @@ $util.unauthorized()
4001
3999
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
4002
4000
  #set( $filter = $ctx.stash.authFilter )
4003
4001
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
4004
- #set( $filter = [{
4002
+ #set( $filter = {
4005
4003
  \\"and\\": [$filter, $ctx.args.filter]
4006
- }] )
4004
+ } )
4007
4005
  #end
4008
4006
  #else
4009
4007
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -4043,15 +4041,18 @@ $util.toJson($ListRequest)
4043
4041
  #end
4044
4042
  ## [End] ResponseTemplate. **",
4045
4043
  "Query.syncPosts.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4046
- $util.unauthorized()
4044
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4045
+ $util.unauthorized()
4046
+ #end
4047
+ $util.toJson({})
4047
4048
  ## [End] Sandbox Mode Disabled. **",
4048
4049
  "Query.syncPosts.req.vtl": "## [Start] Sync Request template. **
4049
4050
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
4050
4051
  #set( $filter = $ctx.stash.authFilter )
4051
4052
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
4052
- #set( $filter = [{
4053
+ #set( $filter = {
4053
4054
  \\"and\\": [$filter, $ctx.args.filter]
4054
- }] )
4055
+ } )
4055
4056
  #end
4056
4057
  #else
4057
4058
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -4088,7 +4089,10 @@ null
4088
4089
  #end
4089
4090
  ## [End] ResponseTemplate. **",
4090
4091
  "Subscription.onCreateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4091
- $util.unauthorized()
4092
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4093
+ $util.unauthorized()
4094
+ #end
4095
+ $util.toJson({})
4092
4096
  ## [End] Sandbox Mode Disabled. **",
4093
4097
  "Subscription.onCreateAuthor.req.vtl": "## [Start] Subscription Request template. **
4094
4098
  $util.toJson({
@@ -4096,11 +4100,14 @@ $util.toJson({
4096
4100
  \\"payload\\": {}
4097
4101
  })
4098
4102
  ## [End] Subscription Request template. **",
4099
- "Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Resonse template. **
4103
+ "Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Response template. **
4100
4104
  $util.toJson(null)
4101
- ## [End] Subscription Resonse template. **",
4105
+ ## [End] Subscription Response template. **",
4102
4106
  "Subscription.onCreateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4103
- $util.unauthorized()
4107
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4108
+ $util.unauthorized()
4109
+ #end
4110
+ $util.toJson({})
4104
4111
  ## [End] Sandbox Mode Disabled. **",
4105
4112
  "Subscription.onCreateComment.req.vtl": "## [Start] Subscription Request template. **
4106
4113
  $util.toJson({
@@ -4108,11 +4115,14 @@ $util.toJson({
4108
4115
  \\"payload\\": {}
4109
4116
  })
4110
4117
  ## [End] Subscription Request template. **",
4111
- "Subscription.onCreateComment.res.vtl": "## [Start] Subscription Resonse template. **
4118
+ "Subscription.onCreateComment.res.vtl": "## [Start] Subscription Response template. **
4112
4119
  $util.toJson(null)
4113
- ## [End] Subscription Resonse template. **",
4120
+ ## [End] Subscription Response template. **",
4114
4121
  "Subscription.onCreateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4115
- $util.unauthorized()
4122
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4123
+ $util.unauthorized()
4124
+ #end
4125
+ $util.toJson({})
4116
4126
  ## [End] Sandbox Mode Disabled. **",
4117
4127
  "Subscription.onCreateEmail.req.vtl": "## [Start] Subscription Request template. **
4118
4128
  $util.toJson({
@@ -4120,11 +4130,14 @@ $util.toJson({
4120
4130
  \\"payload\\": {}
4121
4131
  })
4122
4132
  ## [End] Subscription Request template. **",
4123
- "Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Resonse template. **
4133
+ "Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Response template. **
4124
4134
  $util.toJson(null)
4125
- ## [End] Subscription Resonse template. **",
4135
+ ## [End] Subscription Response template. **",
4126
4136
  "Subscription.onCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4127
- $util.unauthorized()
4137
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4138
+ $util.unauthorized()
4139
+ #end
4140
+ $util.toJson({})
4128
4141
  ## [End] Sandbox Mode Disabled. **",
4129
4142
  "Subscription.onCreatePost.req.vtl": "## [Start] Subscription Request template. **
4130
4143
  $util.toJson({
@@ -4132,11 +4145,14 @@ $util.toJson({
4132
4145
  \\"payload\\": {}
4133
4146
  })
4134
4147
  ## [End] Subscription Request template. **",
4135
- "Subscription.onCreatePost.res.vtl": "## [Start] Subscription Resonse template. **
4148
+ "Subscription.onCreatePost.res.vtl": "## [Start] Subscription Response template. **
4136
4149
  $util.toJson(null)
4137
- ## [End] Subscription Resonse template. **",
4150
+ ## [End] Subscription Response template. **",
4138
4151
  "Subscription.onCreateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4139
- $util.unauthorized()
4152
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4153
+ $util.unauthorized()
4154
+ #end
4155
+ $util.toJson({})
4140
4156
  ## [End] Sandbox Mode Disabled. **",
4141
4157
  "Subscription.onCreateRequire.req.vtl": "## [Start] Subscription Request template. **
4142
4158
  $util.toJson({
@@ -4144,11 +4160,14 @@ $util.toJson({
4144
4160
  \\"payload\\": {}
4145
4161
  })
4146
4162
  ## [End] Subscription Request template. **",
4147
- "Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Resonse template. **
4163
+ "Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Response template. **
4148
4164
  $util.toJson(null)
4149
- ## [End] Subscription Resonse template. **",
4165
+ ## [End] Subscription Response template. **",
4150
4166
  "Subscription.onCreateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4151
- $util.unauthorized()
4167
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4168
+ $util.unauthorized()
4169
+ #end
4170
+ $util.toJson({})
4152
4171
  ## [End] Sandbox Mode Disabled. **",
4153
4172
  "Subscription.onCreateTest.req.vtl": "## [Start] Subscription Request template. **
4154
4173
  $util.toJson({
@@ -4156,11 +4175,14 @@ $util.toJson({
4156
4175
  \\"payload\\": {}
4157
4176
  })
4158
4177
  ## [End] Subscription Request template. **",
4159
- "Subscription.onCreateTest.res.vtl": "## [Start] Subscription Resonse template. **
4178
+ "Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
4160
4179
  $util.toJson(null)
4161
- ## [End] Subscription Resonse template. **",
4180
+ ## [End] Subscription Response template. **",
4162
4181
  "Subscription.onCreateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4163
- $util.unauthorized()
4182
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4183
+ $util.unauthorized()
4184
+ #end
4185
+ $util.toJson({})
4164
4186
  ## [End] Sandbox Mode Disabled. **",
4165
4187
  "Subscription.onCreateUser.req.vtl": "## [Start] Subscription Request template. **
4166
4188
  $util.toJson({
@@ -4168,11 +4190,14 @@ $util.toJson({
4168
4190
  \\"payload\\": {}
4169
4191
  })
4170
4192
  ## [End] Subscription Request template. **",
4171
- "Subscription.onCreateUser.res.vtl": "## [Start] Subscription Resonse template. **
4193
+ "Subscription.onCreateUser.res.vtl": "## [Start] Subscription Response template. **
4172
4194
  $util.toJson(null)
4173
- ## [End] Subscription Resonse template. **",
4195
+ ## [End] Subscription Response template. **",
4174
4196
  "Subscription.onDeleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4175
- $util.unauthorized()
4197
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4198
+ $util.unauthorized()
4199
+ #end
4200
+ $util.toJson({})
4176
4201
  ## [End] Sandbox Mode Disabled. **",
4177
4202
  "Subscription.onDeleteAuthor.req.vtl": "## [Start] Subscription Request template. **
4178
4203
  $util.toJson({
@@ -4180,11 +4205,14 @@ $util.toJson({
4180
4205
  \\"payload\\": {}
4181
4206
  })
4182
4207
  ## [End] Subscription Request template. **",
4183
- "Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Resonse template. **
4208
+ "Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Response template. **
4184
4209
  $util.toJson(null)
4185
- ## [End] Subscription Resonse template. **",
4210
+ ## [End] Subscription Response template. **",
4186
4211
  "Subscription.onDeleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4187
- $util.unauthorized()
4212
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4213
+ $util.unauthorized()
4214
+ #end
4215
+ $util.toJson({})
4188
4216
  ## [End] Sandbox Mode Disabled. **",
4189
4217
  "Subscription.onDeleteComment.req.vtl": "## [Start] Subscription Request template. **
4190
4218
  $util.toJson({
@@ -4192,11 +4220,14 @@ $util.toJson({
4192
4220
  \\"payload\\": {}
4193
4221
  })
4194
4222
  ## [End] Subscription Request template. **",
4195
- "Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Resonse template. **
4223
+ "Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Response template. **
4196
4224
  $util.toJson(null)
4197
- ## [End] Subscription Resonse template. **",
4225
+ ## [End] Subscription Response template. **",
4198
4226
  "Subscription.onDeleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4199
- $util.unauthorized()
4227
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4228
+ $util.unauthorized()
4229
+ #end
4230
+ $util.toJson({})
4200
4231
  ## [End] Sandbox Mode Disabled. **",
4201
4232
  "Subscription.onDeleteEmail.req.vtl": "## [Start] Subscription Request template. **
4202
4233
  $util.toJson({
@@ -4204,11 +4235,14 @@ $util.toJson({
4204
4235
  \\"payload\\": {}
4205
4236
  })
4206
4237
  ## [End] Subscription Request template. **",
4207
- "Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Resonse template. **
4238
+ "Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Response template. **
4208
4239
  $util.toJson(null)
4209
- ## [End] Subscription Resonse template. **",
4240
+ ## [End] Subscription Response template. **",
4210
4241
  "Subscription.onDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4211
- $util.unauthorized()
4242
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4243
+ $util.unauthorized()
4244
+ #end
4245
+ $util.toJson({})
4212
4246
  ## [End] Sandbox Mode Disabled. **",
4213
4247
  "Subscription.onDeletePost.req.vtl": "## [Start] Subscription Request template. **
4214
4248
  $util.toJson({
@@ -4216,11 +4250,14 @@ $util.toJson({
4216
4250
  \\"payload\\": {}
4217
4251
  })
4218
4252
  ## [End] Subscription Request template. **",
4219
- "Subscription.onDeletePost.res.vtl": "## [Start] Subscription Resonse template. **
4253
+ "Subscription.onDeletePost.res.vtl": "## [Start] Subscription Response template. **
4220
4254
  $util.toJson(null)
4221
- ## [End] Subscription Resonse template. **",
4255
+ ## [End] Subscription Response template. **",
4222
4256
  "Subscription.onDeleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4223
- $util.unauthorized()
4257
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4258
+ $util.unauthorized()
4259
+ #end
4260
+ $util.toJson({})
4224
4261
  ## [End] Sandbox Mode Disabled. **",
4225
4262
  "Subscription.onDeleteRequire.req.vtl": "## [Start] Subscription Request template. **
4226
4263
  $util.toJson({
@@ -4228,11 +4265,14 @@ $util.toJson({
4228
4265
  \\"payload\\": {}
4229
4266
  })
4230
4267
  ## [End] Subscription Request template. **",
4231
- "Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Resonse template. **
4268
+ "Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Response template. **
4232
4269
  $util.toJson(null)
4233
- ## [End] Subscription Resonse template. **",
4270
+ ## [End] Subscription Response template. **",
4234
4271
  "Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4235
- $util.unauthorized()
4272
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4273
+ $util.unauthorized()
4274
+ #end
4275
+ $util.toJson({})
4236
4276
  ## [End] Sandbox Mode Disabled. **",
4237
4277
  "Subscription.onDeleteTest.req.vtl": "## [Start] Subscription Request template. **
4238
4278
  $util.toJson({
@@ -4240,11 +4280,14 @@ $util.toJson({
4240
4280
  \\"payload\\": {}
4241
4281
  })
4242
4282
  ## [End] Subscription Request template. **",
4243
- "Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Resonse template. **
4283
+ "Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
4244
4284
  $util.toJson(null)
4245
- ## [End] Subscription Resonse template. **",
4285
+ ## [End] Subscription Response template. **",
4246
4286
  "Subscription.onDeleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4247
- $util.unauthorized()
4287
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4288
+ $util.unauthorized()
4289
+ #end
4290
+ $util.toJson({})
4248
4291
  ## [End] Sandbox Mode Disabled. **",
4249
4292
  "Subscription.onDeleteUser.req.vtl": "## [Start] Subscription Request template. **
4250
4293
  $util.toJson({
@@ -4252,11 +4295,14 @@ $util.toJson({
4252
4295
  \\"payload\\": {}
4253
4296
  })
4254
4297
  ## [End] Subscription Request template. **",
4255
- "Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Resonse template. **
4298
+ "Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Response template. **
4256
4299
  $util.toJson(null)
4257
- ## [End] Subscription Resonse template. **",
4300
+ ## [End] Subscription Response template. **",
4258
4301
  "Subscription.onUpdateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4259
- $util.unauthorized()
4302
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4303
+ $util.unauthorized()
4304
+ #end
4305
+ $util.toJson({})
4260
4306
  ## [End] Sandbox Mode Disabled. **",
4261
4307
  "Subscription.onUpdateAuthor.req.vtl": "## [Start] Subscription Request template. **
4262
4308
  $util.toJson({
@@ -4264,11 +4310,14 @@ $util.toJson({
4264
4310
  \\"payload\\": {}
4265
4311
  })
4266
4312
  ## [End] Subscription Request template. **",
4267
- "Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Resonse template. **
4313
+ "Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Response template. **
4268
4314
  $util.toJson(null)
4269
- ## [End] Subscription Resonse template. **",
4315
+ ## [End] Subscription Response template. **",
4270
4316
  "Subscription.onUpdateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4271
- $util.unauthorized()
4317
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4318
+ $util.unauthorized()
4319
+ #end
4320
+ $util.toJson({})
4272
4321
  ## [End] Sandbox Mode Disabled. **",
4273
4322
  "Subscription.onUpdateComment.req.vtl": "## [Start] Subscription Request template. **
4274
4323
  $util.toJson({
@@ -4276,11 +4325,14 @@ $util.toJson({
4276
4325
  \\"payload\\": {}
4277
4326
  })
4278
4327
  ## [End] Subscription Request template. **",
4279
- "Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Resonse template. **
4328
+ "Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Response template. **
4280
4329
  $util.toJson(null)
4281
- ## [End] Subscription Resonse template. **",
4330
+ ## [End] Subscription Response template. **",
4282
4331
  "Subscription.onUpdateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4283
- $util.unauthorized()
4332
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4333
+ $util.unauthorized()
4334
+ #end
4335
+ $util.toJson({})
4284
4336
  ## [End] Sandbox Mode Disabled. **",
4285
4337
  "Subscription.onUpdateEmail.req.vtl": "## [Start] Subscription Request template. **
4286
4338
  $util.toJson({
@@ -4288,11 +4340,14 @@ $util.toJson({
4288
4340
  \\"payload\\": {}
4289
4341
  })
4290
4342
  ## [End] Subscription Request template. **",
4291
- "Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Resonse template. **
4343
+ "Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Response template. **
4292
4344
  $util.toJson(null)
4293
- ## [End] Subscription Resonse template. **",
4345
+ ## [End] Subscription Response template. **",
4294
4346
  "Subscription.onUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4295
- $util.unauthorized()
4347
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4348
+ $util.unauthorized()
4349
+ #end
4350
+ $util.toJson({})
4296
4351
  ## [End] Sandbox Mode Disabled. **",
4297
4352
  "Subscription.onUpdatePost.req.vtl": "## [Start] Subscription Request template. **
4298
4353
  $util.toJson({
@@ -4300,11 +4355,14 @@ $util.toJson({
4300
4355
  \\"payload\\": {}
4301
4356
  })
4302
4357
  ## [End] Subscription Request template. **",
4303
- "Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Resonse template. **
4358
+ "Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Response template. **
4304
4359
  $util.toJson(null)
4305
- ## [End] Subscription Resonse template. **",
4360
+ ## [End] Subscription Response template. **",
4306
4361
  "Subscription.onUpdateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4307
- $util.unauthorized()
4362
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4363
+ $util.unauthorized()
4364
+ #end
4365
+ $util.toJson({})
4308
4366
  ## [End] Sandbox Mode Disabled. **",
4309
4367
  "Subscription.onUpdateRequire.req.vtl": "## [Start] Subscription Request template. **
4310
4368
  $util.toJson({
@@ -4312,11 +4370,14 @@ $util.toJson({
4312
4370
  \\"payload\\": {}
4313
4371
  })
4314
4372
  ## [End] Subscription Request template. **",
4315
- "Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Resonse template. **
4373
+ "Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Response template. **
4316
4374
  $util.toJson(null)
4317
- ## [End] Subscription Resonse template. **",
4375
+ ## [End] Subscription Response template. **",
4318
4376
  "Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4319
- $util.unauthorized()
4377
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4378
+ $util.unauthorized()
4379
+ #end
4380
+ $util.toJson({})
4320
4381
  ## [End] Sandbox Mode Disabled. **",
4321
4382
  "Subscription.onUpdateTest.req.vtl": "## [Start] Subscription Request template. **
4322
4383
  $util.toJson({
@@ -4324,11 +4385,14 @@ $util.toJson({
4324
4385
  \\"payload\\": {}
4325
4386
  })
4326
4387
  ## [End] Subscription Request template. **",
4327
- "Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Resonse template. **
4388
+ "Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
4328
4389
  $util.toJson(null)
4329
- ## [End] Subscription Resonse template. **",
4390
+ ## [End] Subscription Response template. **",
4330
4391
  "Subscription.onUpdateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4331
- $util.unauthorized()
4392
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4393
+ $util.unauthorized()
4394
+ #end
4395
+ $util.toJson({})
4332
4396
  ## [End] Sandbox Mode Disabled. **",
4333
4397
  "Subscription.onUpdateUser.req.vtl": "## [Start] Subscription Request template. **
4334
4398
  $util.toJson({
@@ -4336,13 +4400,13 @@ $util.toJson({
4336
4400
  \\"payload\\": {}
4337
4401
  })
4338
4402
  ## [End] Subscription Request template. **",
4339
- "Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Resonse template. **
4403
+ "Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Response template. **
4340
4404
  $util.toJson(null)
4341
- ## [End] Subscription Resonse template. **",
4405
+ ## [End] Subscription Response template. **",
4342
4406
  }
4343
4407
  `;
4344
4408
 
4345
- exports[`ModelTransformer: should generate sync resolver with ConflictHandlerType.Lambda 1`] = `
4409
+ exports[`ModelTransformer: should generate sync resolver with ConflictHandlerType.LAMBDA 1`] = `
4346
4410
  Object {
4347
4411
  "Mutation.createAuthor.init.1.req.vtl": "## [Start] Initialization default values. **
4348
4412
  $util.qr($ctx.stash.put(\\"defaultValues\\", $util.defaultIfNull($ctx.stash.defaultValues, {})))
@@ -4356,28 +4420,12 @@ $util.toJson({
4356
4420
  })
4357
4421
  ## [End] Initialization default values. **",
4358
4422
  "Mutation.createAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4359
- $util.unauthorized()
4423
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4424
+ $util.unauthorized()
4425
+ #end
4426
+ $util.toJson({})
4360
4427
  ## [End] Sandbox Mode Disabled. **",
4361
4428
  "Mutation.createAuthor.req.vtl": "## [Start] Create Request template. **
4362
- ## Begin - key condition **
4363
- #if( $ctx.stash.metadata.modelObjectKey )
4364
- #set( $keyConditionExpr = {} )
4365
- #set( $keyConditionExprNames = {} )
4366
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
4367
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
4368
- \\"attributeExists\\": false
4369
- }))
4370
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
4371
- #end
4372
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
4373
- #else
4374
- $util.qr($ctx.stash.conditions.add({
4375
- \\"id\\": {
4376
- \\"attributeExists\\": false
4377
- }
4378
- }))
4379
- #end
4380
- ## End - key condition **
4381
4429
  ## Set the default values to put request **
4382
4430
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
4383
4431
  ## copy the values from input **
@@ -4462,28 +4510,12 @@ $util.toJson({
4462
4510
  })
4463
4511
  ## [End] Initialization default values. **",
4464
4512
  "Mutation.createComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4465
- $util.unauthorized()
4513
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4514
+ $util.unauthorized()
4515
+ #end
4516
+ $util.toJson({})
4466
4517
  ## [End] Sandbox Mode Disabled. **",
4467
4518
  "Mutation.createComment.req.vtl": "## [Start] Create Request template. **
4468
- ## Begin - key condition **
4469
- #if( $ctx.stash.metadata.modelObjectKey )
4470
- #set( $keyConditionExpr = {} )
4471
- #set( $keyConditionExprNames = {} )
4472
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
4473
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
4474
- \\"attributeExists\\": false
4475
- }))
4476
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
4477
- #end
4478
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
4479
- #else
4480
- $util.qr($ctx.stash.conditions.add({
4481
- \\"id\\": {
4482
- \\"attributeExists\\": false
4483
- }
4484
- }))
4485
- #end
4486
- ## End - key condition **
4487
4519
  ## Set the default values to put request **
4488
4520
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
4489
4521
  ## copy the values from input **
@@ -4568,28 +4600,12 @@ $util.toJson({
4568
4600
  })
4569
4601
  ## [End] Initialization default values. **",
4570
4602
  "Mutation.createEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4571
- $util.unauthorized()
4603
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4604
+ $util.unauthorized()
4605
+ #end
4606
+ $util.toJson({})
4572
4607
  ## [End] Sandbox Mode Disabled. **",
4573
4608
  "Mutation.createEmail.req.vtl": "## [Start] Create Request template. **
4574
- ## Begin - key condition **
4575
- #if( $ctx.stash.metadata.modelObjectKey )
4576
- #set( $keyConditionExpr = {} )
4577
- #set( $keyConditionExprNames = {} )
4578
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
4579
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
4580
- \\"attributeExists\\": false
4581
- }))
4582
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
4583
- #end
4584
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
4585
- #else
4586
- $util.qr($ctx.stash.conditions.add({
4587
- \\"id\\": {
4588
- \\"attributeExists\\": false
4589
- }
4590
- }))
4591
- #end
4592
- ## End - key condition **
4593
4609
  ## Set the default values to put request **
4594
4610
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
4595
4611
  ## copy the values from input **
@@ -4674,28 +4690,12 @@ $util.toJson({
4674
4690
  })
4675
4691
  ## [End] Initialization default values. **",
4676
4692
  "Mutation.createPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4677
- $util.unauthorized()
4693
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4694
+ $util.unauthorized()
4695
+ #end
4696
+ $util.toJson({})
4678
4697
  ## [End] Sandbox Mode Disabled. **",
4679
4698
  "Mutation.createPost.req.vtl": "## [Start] Create Request template. **
4680
- ## Begin - key condition **
4681
- #if( $ctx.stash.metadata.modelObjectKey )
4682
- #set( $keyConditionExpr = {} )
4683
- #set( $keyConditionExprNames = {} )
4684
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
4685
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
4686
- \\"attributeExists\\": false
4687
- }))
4688
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
4689
- #end
4690
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
4691
- #else
4692
- $util.qr($ctx.stash.conditions.add({
4693
- \\"id\\": {
4694
- \\"attributeExists\\": false
4695
- }
4696
- }))
4697
- #end
4698
- ## End - key condition **
4699
4699
  ## Set the default values to put request **
4700
4700
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
4701
4701
  ## copy the values from input **
@@ -4780,28 +4780,12 @@ $util.toJson({
4780
4780
  })
4781
4781
  ## [End] Initialization default values. **",
4782
4782
  "Mutation.createRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4783
- $util.unauthorized()
4783
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4784
+ $util.unauthorized()
4785
+ #end
4786
+ $util.toJson({})
4784
4787
  ## [End] Sandbox Mode Disabled. **",
4785
4788
  "Mutation.createRequire.req.vtl": "## [Start] Create Request template. **
4786
- ## Begin - key condition **
4787
- #if( $ctx.stash.metadata.modelObjectKey )
4788
- #set( $keyConditionExpr = {} )
4789
- #set( $keyConditionExprNames = {} )
4790
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
4791
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
4792
- \\"attributeExists\\": false
4793
- }))
4794
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
4795
- #end
4796
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
4797
- #else
4798
- $util.qr($ctx.stash.conditions.add({
4799
- \\"id\\": {
4800
- \\"attributeExists\\": false
4801
- }
4802
- }))
4803
- #end
4804
- ## End - key condition **
4805
4789
  ## Set the default values to put request **
4806
4790
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
4807
4791
  ## copy the values from input **
@@ -4886,28 +4870,12 @@ $util.toJson({
4886
4870
  })
4887
4871
  ## [End] Initialization default values. **",
4888
4872
  "Mutation.createTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4889
- $util.unauthorized()
4873
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4874
+ $util.unauthorized()
4875
+ #end
4876
+ $util.toJson({})
4890
4877
  ## [End] Sandbox Mode Disabled. **",
4891
4878
  "Mutation.createTest.req.vtl": "## [Start] Create Request template. **
4892
- ## Begin - key condition **
4893
- #if( $ctx.stash.metadata.modelObjectKey )
4894
- #set( $keyConditionExpr = {} )
4895
- #set( $keyConditionExprNames = {} )
4896
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
4897
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
4898
- \\"attributeExists\\": false
4899
- }))
4900
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
4901
- #end
4902
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
4903
- #else
4904
- $util.qr($ctx.stash.conditions.add({
4905
- \\"id\\": {
4906
- \\"attributeExists\\": false
4907
- }
4908
- }))
4909
- #end
4910
- ## End - key condition **
4911
4879
  ## Set the default values to put request **
4912
4880
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
4913
4881
  ## copy the values from input **
@@ -4992,28 +4960,12 @@ $util.toJson({
4992
4960
  })
4993
4961
  ## [End] Initialization default values. **",
4994
4962
  "Mutation.createUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
4995
- $util.unauthorized()
4963
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
4964
+ $util.unauthorized()
4965
+ #end
4966
+ $util.toJson({})
4996
4967
  ## [End] Sandbox Mode Disabled. **",
4997
4968
  "Mutation.createUser.req.vtl": "## [Start] Create Request template. **
4998
- ## Begin - key condition **
4999
- #if( $ctx.stash.metadata.modelObjectKey )
5000
- #set( $keyConditionExpr = {} )
5001
- #set( $keyConditionExprNames = {} )
5002
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
5003
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
5004
- \\"attributeExists\\": false
5005
- }))
5006
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
5007
- #end
5008
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
5009
- #else
5010
- $util.qr($ctx.stash.conditions.add({
5011
- \\"id\\": {
5012
- \\"attributeExists\\": false
5013
- }
5014
- }))
5015
- #end
5016
- ## End - key condition **
5017
4969
  ## Set the default values to put request **
5018
4970
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
5019
4971
  ## copy the values from input **
@@ -5098,28 +5050,12 @@ $util.toJson({
5098
5050
  })
5099
5051
  ## [End] Initialization default values. **",
5100
5052
  "Mutation.customCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5101
- $util.unauthorized()
5053
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5054
+ $util.unauthorized()
5055
+ #end
5056
+ $util.toJson({})
5102
5057
  ## [End] Sandbox Mode Disabled. **",
5103
5058
  "Mutation.customCreatePost.req.vtl": "## [Start] Create Request template. **
5104
- ## Begin - key condition **
5105
- #if( $ctx.stash.metadata.modelObjectKey )
5106
- #set( $keyConditionExpr = {} )
5107
- #set( $keyConditionExprNames = {} )
5108
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
5109
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
5110
- \\"attributeExists\\": false
5111
- }))
5112
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
5113
- #end
5114
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
5115
- #else
5116
- $util.qr($ctx.stash.conditions.add({
5117
- \\"id\\": {
5118
- \\"attributeExists\\": false
5119
- }
5120
- }))
5121
- #end
5122
- ## End - key condition **
5123
5059
  ## Set the default values to put request **
5124
5060
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
5125
5061
  ## copy the values from input **
@@ -5193,7 +5129,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
5193
5129
  #end
5194
5130
  ## [End] ResponseTemplate. **",
5195
5131
  "Mutation.customDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5196
- $util.unauthorized()
5132
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5133
+ $util.unauthorized()
5134
+ #end
5135
+ $util.toJson({})
5197
5136
  ## [End] Sandbox Mode Disabled. **",
5198
5137
  "Mutation.customDeletePost.req.vtl": "## [Start] Delete Request template. **
5199
5138
  #set( $DeleteRequest = {
@@ -5270,7 +5209,10 @@ $util.toJson({
5270
5209
  })
5271
5210
  ## [End] Initialization default values. **",
5272
5211
  "Mutation.customUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5273
- $util.unauthorized()
5212
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5213
+ $util.unauthorized()
5214
+ #end
5215
+ $util.toJson({})
5274
5216
  ## [End] Sandbox Mode Disabled. **",
5275
5217
  "Mutation.customUpdatePost.req.vtl": "## [Start] Mutation Update resolver. **
5276
5218
  ## Set the default values to put request **
@@ -5410,7 +5352,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
5410
5352
  #end
5411
5353
  ## [End] ResponseTemplate. **",
5412
5354
  "Mutation.deleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5413
- $util.unauthorized()
5355
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5356
+ $util.unauthorized()
5357
+ #end
5358
+ $util.toJson({})
5414
5359
  ## [End] Sandbox Mode Disabled. **",
5415
5360
  "Mutation.deleteAuthor.req.vtl": "## [Start] Delete Request template. **
5416
5361
  #set( $DeleteRequest = {
@@ -5478,7 +5423,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
5478
5423
  #end
5479
5424
  ## [End] ResponseTemplate. **",
5480
5425
  "Mutation.deleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5481
- $util.unauthorized()
5426
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5427
+ $util.unauthorized()
5428
+ #end
5429
+ $util.toJson({})
5482
5430
  ## [End] Sandbox Mode Disabled. **",
5483
5431
  "Mutation.deleteComment.req.vtl": "## [Start] Delete Request template. **
5484
5432
  #set( $DeleteRequest = {
@@ -5546,7 +5494,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
5546
5494
  #end
5547
5495
  ## [End] ResponseTemplate. **",
5548
5496
  "Mutation.deleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5549
- $util.unauthorized()
5497
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5498
+ $util.unauthorized()
5499
+ #end
5500
+ $util.toJson({})
5550
5501
  ## [End] Sandbox Mode Disabled. **",
5551
5502
  "Mutation.deleteEmail.req.vtl": "## [Start] Delete Request template. **
5552
5503
  #set( $DeleteRequest = {
@@ -5614,7 +5565,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
5614
5565
  #end
5615
5566
  ## [End] ResponseTemplate. **",
5616
5567
  "Mutation.deletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5617
- $util.unauthorized()
5568
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5569
+ $util.unauthorized()
5570
+ #end
5571
+ $util.toJson({})
5618
5572
  ## [End] Sandbox Mode Disabled. **",
5619
5573
  "Mutation.deletePost.req.vtl": "## [Start] Delete Request template. **
5620
5574
  #set( $DeleteRequest = {
@@ -5683,7 +5637,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
5683
5637
  #end
5684
5638
  ## [End] ResponseTemplate. **",
5685
5639
  "Mutation.deleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5686
- $util.unauthorized()
5640
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5641
+ $util.unauthorized()
5642
+ #end
5643
+ $util.toJson({})
5687
5644
  ## [End] Sandbox Mode Disabled. **",
5688
5645
  "Mutation.deleteRequire.req.vtl": "## [Start] Delete Request template. **
5689
5646
  #set( $DeleteRequest = {
@@ -5751,7 +5708,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
5751
5708
  #end
5752
5709
  ## [End] ResponseTemplate. **",
5753
5710
  "Mutation.deleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5754
- $util.unauthorized()
5711
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5712
+ $util.unauthorized()
5713
+ #end
5714
+ $util.toJson({})
5755
5715
  ## [End] Sandbox Mode Disabled. **",
5756
5716
  "Mutation.deleteTest.req.vtl": "## [Start] Delete Request template. **
5757
5717
  #set( $DeleteRequest = {
@@ -5819,7 +5779,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
5819
5779
  #end
5820
5780
  ## [End] ResponseTemplate. **",
5821
5781
  "Mutation.deleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5822
- $util.unauthorized()
5782
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5783
+ $util.unauthorized()
5784
+ #end
5785
+ $util.toJson({})
5823
5786
  ## [End] Sandbox Mode Disabled. **",
5824
5787
  "Mutation.deleteUser.req.vtl": "## [Start] Delete Request template. **
5825
5788
  #set( $DeleteRequest = {
@@ -5896,7 +5859,10 @@ $util.toJson({
5896
5859
  })
5897
5860
  ## [End] Initialization default values. **",
5898
5861
  "Mutation.updateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
5899
- $util.unauthorized()
5862
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
5863
+ $util.unauthorized()
5864
+ #end
5865
+ $util.toJson({})
5900
5866
  ## [End] Sandbox Mode Disabled. **",
5901
5867
  "Mutation.updateAuthor.req.vtl": "## [Start] Mutation Update resolver. **
5902
5868
  ## Set the default values to put request **
@@ -6045,7 +6011,10 @@ $util.toJson({
6045
6011
  })
6046
6012
  ## [End] Initialization default values. **",
6047
6013
  "Mutation.updateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
6048
- $util.unauthorized()
6014
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
6015
+ $util.unauthorized()
6016
+ #end
6017
+ $util.toJson({})
6049
6018
  ## [End] Sandbox Mode Disabled. **",
6050
6019
  "Mutation.updateComment.req.vtl": "## [Start] Mutation Update resolver. **
6051
6020
  ## Set the default values to put request **
@@ -6194,7 +6163,10 @@ $util.toJson({
6194
6163
  })
6195
6164
  ## [End] Initialization default values. **",
6196
6165
  "Mutation.updateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
6197
- $util.unauthorized()
6166
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
6167
+ $util.unauthorized()
6168
+ #end
6169
+ $util.toJson({})
6198
6170
  ## [End] Sandbox Mode Disabled. **",
6199
6171
  "Mutation.updateEmail.req.vtl": "## [Start] Mutation Update resolver. **
6200
6172
  ## Set the default values to put request **
@@ -6343,7 +6315,10 @@ $util.toJson({
6343
6315
  })
6344
6316
  ## [End] Initialization default values. **",
6345
6317
  "Mutation.updatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
6346
- $util.unauthorized()
6318
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
6319
+ $util.unauthorized()
6320
+ #end
6321
+ $util.toJson({})
6347
6322
  ## [End] Sandbox Mode Disabled. **",
6348
6323
  "Mutation.updatePost.req.vtl": "## [Start] Mutation Update resolver. **
6349
6324
  ## Set the default values to put request **
@@ -6493,7 +6468,10 @@ $util.toJson({
6493
6468
  })
6494
6469
  ## [End] Initialization default values. **",
6495
6470
  "Mutation.updateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
6496
- $util.unauthorized()
6471
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
6472
+ $util.unauthorized()
6473
+ #end
6474
+ $util.toJson({})
6497
6475
  ## [End] Sandbox Mode Disabled. **",
6498
6476
  "Mutation.updateRequire.req.vtl": "## [Start] Mutation Update resolver. **
6499
6477
  ## Set the default values to put request **
@@ -6642,7 +6620,10 @@ $util.toJson({
6642
6620
  })
6643
6621
  ## [End] Initialization default values. **",
6644
6622
  "Mutation.updateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
6645
- $util.unauthorized()
6623
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
6624
+ $util.unauthorized()
6625
+ #end
6626
+ $util.toJson({})
6646
6627
  ## [End] Sandbox Mode Disabled. **",
6647
6628
  "Mutation.updateTest.req.vtl": "## [Start] Mutation Update resolver. **
6648
6629
  ## Set the default values to put request **
@@ -6791,7 +6772,10 @@ $util.toJson({
6791
6772
  })
6792
6773
  ## [End] Initialization default values. **",
6793
6774
  "Mutation.updateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
6794
- $util.unauthorized()
6775
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
6776
+ $util.unauthorized()
6777
+ #end
6778
+ $util.toJson({})
6795
6779
  ## [End] Sandbox Mode Disabled. **",
6796
6780
  "Mutation.updateUser.req.vtl": "## [Start] Mutation Update resolver. **
6797
6781
  ## Set the default values to put request **
@@ -6931,7 +6915,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
6931
6915
  #end
6932
6916
  ## [End] ResponseTemplate. **",
6933
6917
  "Query.customGetPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
6934
- $util.unauthorized()
6918
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
6919
+ $util.unauthorized()
6920
+ #end
6921
+ $util.toJson({})
6935
6922
  ## [End] Sandbox Mode Disabled. **",
6936
6923
  "Query.customGetPost.req.vtl": "## [Start] Get Request template. **
6937
6924
  #set( $GetRequest = {
@@ -6940,14 +6927,17 @@ $util.unauthorized()
6940
6927
  } )
6941
6928
  #if( $ctx.stash.metadata.modelObjectKey )
6942
6929
  #set( $expression = \\"\\" )
6930
+ #set( $expressionNames = {} )
6943
6931
  #set( $expressionValues = {} )
6944
6932
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
6945
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
6946
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
6933
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
6934
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
6935
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
6947
6936
  #end
6948
6937
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
6949
6938
  #set( $query = {
6950
6939
  \\"expression\\": $expression,
6940
+ \\"expressionNames\\": $expressionNames,
6951
6941
  \\"expressionValues\\": $expressionValues
6952
6942
  } )
6953
6943
  #else
@@ -6978,7 +6968,10 @@ $util.unauthorized()
6978
6968
  #end
6979
6969
  ## [End] Get Response template. **",
6980
6970
  "Query.customListPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
6981
- $util.unauthorized()
6971
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
6972
+ $util.unauthorized()
6973
+ #end
6974
+ $util.toJson({})
6982
6975
  ## [End] Sandbox Mode Disabled. **",
6983
6976
  "Query.customListPost.req.vtl": "## [Start] List Request. **
6984
6977
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -6992,9 +6985,9 @@ $util.unauthorized()
6992
6985
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
6993
6986
  #set( $filter = $ctx.stash.authFilter )
6994
6987
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
6995
- #set( $filter = [{
6988
+ #set( $filter = {
6996
6989
  \\"and\\": [$filter, $ctx.args.filter]
6997
- }] )
6990
+ } )
6998
6991
  #end
6999
6992
  #else
7000
6993
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -7034,7 +7027,10 @@ $util.toJson($ListRequest)
7034
7027
  #end
7035
7028
  ## [End] ResponseTemplate. **",
7036
7029
  "Query.getAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7037
- $util.unauthorized()
7030
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7031
+ $util.unauthorized()
7032
+ #end
7033
+ $util.toJson({})
7038
7034
  ## [End] Sandbox Mode Disabled. **",
7039
7035
  "Query.getAuthor.req.vtl": "## [Start] Get Request template. **
7040
7036
  #set( $GetRequest = {
@@ -7043,14 +7039,17 @@ $util.unauthorized()
7043
7039
  } )
7044
7040
  #if( $ctx.stash.metadata.modelObjectKey )
7045
7041
  #set( $expression = \\"\\" )
7042
+ #set( $expressionNames = {} )
7046
7043
  #set( $expressionValues = {} )
7047
7044
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
7048
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
7049
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
7045
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
7046
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
7047
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
7050
7048
  #end
7051
7049
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
7052
7050
  #set( $query = {
7053
7051
  \\"expression\\": $expression,
7052
+ \\"expressionNames\\": $expressionNames,
7054
7053
  \\"expressionValues\\": $expressionValues
7055
7054
  } )
7056
7055
  #else
@@ -7081,7 +7080,10 @@ $util.unauthorized()
7081
7080
  #end
7082
7081
  ## [End] Get Response template. **",
7083
7082
  "Query.getComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7084
- $util.unauthorized()
7083
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7084
+ $util.unauthorized()
7085
+ #end
7086
+ $util.toJson({})
7085
7087
  ## [End] Sandbox Mode Disabled. **",
7086
7088
  "Query.getComment.req.vtl": "## [Start] Get Request template. **
7087
7089
  #set( $GetRequest = {
@@ -7090,14 +7092,17 @@ $util.unauthorized()
7090
7092
  } )
7091
7093
  #if( $ctx.stash.metadata.modelObjectKey )
7092
7094
  #set( $expression = \\"\\" )
7095
+ #set( $expressionNames = {} )
7093
7096
  #set( $expressionValues = {} )
7094
7097
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
7095
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
7096
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
7098
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
7099
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
7100
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
7097
7101
  #end
7098
7102
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
7099
7103
  #set( $query = {
7100
7104
  \\"expression\\": $expression,
7105
+ \\"expressionNames\\": $expressionNames,
7101
7106
  \\"expressionValues\\": $expressionValues
7102
7107
  } )
7103
7108
  #else
@@ -7128,7 +7133,10 @@ $util.unauthorized()
7128
7133
  #end
7129
7134
  ## [End] Get Response template. **",
7130
7135
  "Query.getEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7131
- $util.unauthorized()
7136
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7137
+ $util.unauthorized()
7138
+ #end
7139
+ $util.toJson({})
7132
7140
  ## [End] Sandbox Mode Disabled. **",
7133
7141
  "Query.getEmail.req.vtl": "## [Start] Get Request template. **
7134
7142
  #set( $GetRequest = {
@@ -7137,14 +7145,17 @@ $util.unauthorized()
7137
7145
  } )
7138
7146
  #if( $ctx.stash.metadata.modelObjectKey )
7139
7147
  #set( $expression = \\"\\" )
7148
+ #set( $expressionNames = {} )
7140
7149
  #set( $expressionValues = {} )
7141
7150
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
7142
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
7143
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
7151
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
7152
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
7153
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
7144
7154
  #end
7145
7155
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
7146
7156
  #set( $query = {
7147
7157
  \\"expression\\": $expression,
7158
+ \\"expressionNames\\": $expressionNames,
7148
7159
  \\"expressionValues\\": $expressionValues
7149
7160
  } )
7150
7161
  #else
@@ -7175,7 +7186,10 @@ $util.unauthorized()
7175
7186
  #end
7176
7187
  ## [End] Get Response template. **",
7177
7188
  "Query.getEntity.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7178
- $util.unauthorized()
7189
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7190
+ $util.unauthorized()
7191
+ #end
7192
+ $util.toJson({})
7179
7193
  ## [End] Sandbox Mode Disabled. **",
7180
7194
  "Query.getEntity.req.vtl": "## [Start] Get Request template. **
7181
7195
  #set( $GetRequest = {
@@ -7184,14 +7198,17 @@ $util.unauthorized()
7184
7198
  } )
7185
7199
  #if( $ctx.stash.metadata.modelObjectKey )
7186
7200
  #set( $expression = \\"\\" )
7201
+ #set( $expressionNames = {} )
7187
7202
  #set( $expressionValues = {} )
7188
7203
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
7189
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
7190
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
7204
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
7205
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
7206
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
7191
7207
  #end
7192
7208
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
7193
7209
  #set( $query = {
7194
7210
  \\"expression\\": $expression,
7211
+ \\"expressionNames\\": $expressionNames,
7195
7212
  \\"expressionValues\\": $expressionValues
7196
7213
  } )
7197
7214
  #else
@@ -7222,7 +7239,10 @@ $util.unauthorized()
7222
7239
  #end
7223
7240
  ## [End] Get Response template. **",
7224
7241
  "Query.getPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7225
- $util.unauthorized()
7242
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7243
+ $util.unauthorized()
7244
+ #end
7245
+ $util.toJson({})
7226
7246
  ## [End] Sandbox Mode Disabled. **",
7227
7247
  "Query.getPost.req.vtl": "## [Start] Get Request template. **
7228
7248
  #set( $GetRequest = {
@@ -7231,14 +7251,17 @@ $util.unauthorized()
7231
7251
  } )
7232
7252
  #if( $ctx.stash.metadata.modelObjectKey )
7233
7253
  #set( $expression = \\"\\" )
7254
+ #set( $expressionNames = {} )
7234
7255
  #set( $expressionValues = {} )
7235
7256
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
7236
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
7237
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
7257
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
7258
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
7259
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
7238
7260
  #end
7239
7261
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
7240
7262
  #set( $query = {
7241
7263
  \\"expression\\": $expression,
7264
+ \\"expressionNames\\": $expressionNames,
7242
7265
  \\"expressionValues\\": $expressionValues
7243
7266
  } )
7244
7267
  #else
@@ -7269,7 +7292,10 @@ $util.unauthorized()
7269
7292
  #end
7270
7293
  ## [End] Get Response template. **",
7271
7294
  "Query.getRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7272
- $util.unauthorized()
7295
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7296
+ $util.unauthorized()
7297
+ #end
7298
+ $util.toJson({})
7273
7299
  ## [End] Sandbox Mode Disabled. **",
7274
7300
  "Query.getRequire.req.vtl": "## [Start] Get Request template. **
7275
7301
  #set( $GetRequest = {
@@ -7278,14 +7304,17 @@ $util.unauthorized()
7278
7304
  } )
7279
7305
  #if( $ctx.stash.metadata.modelObjectKey )
7280
7306
  #set( $expression = \\"\\" )
7307
+ #set( $expressionNames = {} )
7281
7308
  #set( $expressionValues = {} )
7282
7309
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
7283
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
7284
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
7310
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
7311
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
7312
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
7285
7313
  #end
7286
7314
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
7287
7315
  #set( $query = {
7288
7316
  \\"expression\\": $expression,
7317
+ \\"expressionNames\\": $expressionNames,
7289
7318
  \\"expressionValues\\": $expressionValues
7290
7319
  } )
7291
7320
  #else
@@ -7316,7 +7345,10 @@ $util.unauthorized()
7316
7345
  #end
7317
7346
  ## [End] Get Response template. **",
7318
7347
  "Query.getTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7319
- $util.unauthorized()
7348
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7349
+ $util.unauthorized()
7350
+ #end
7351
+ $util.toJson({})
7320
7352
  ## [End] Sandbox Mode Disabled. **",
7321
7353
  "Query.getTest.req.vtl": "## [Start] Get Request template. **
7322
7354
  #set( $GetRequest = {
@@ -7325,14 +7357,17 @@ $util.unauthorized()
7325
7357
  } )
7326
7358
  #if( $ctx.stash.metadata.modelObjectKey )
7327
7359
  #set( $expression = \\"\\" )
7360
+ #set( $expressionNames = {} )
7328
7361
  #set( $expressionValues = {} )
7329
7362
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
7330
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
7331
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
7363
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
7364
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
7365
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
7332
7366
  #end
7333
7367
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
7334
7368
  #set( $query = {
7335
7369
  \\"expression\\": $expression,
7370
+ \\"expressionNames\\": $expressionNames,
7336
7371
  \\"expressionValues\\": $expressionValues
7337
7372
  } )
7338
7373
  #else
@@ -7363,7 +7398,10 @@ $util.unauthorized()
7363
7398
  #end
7364
7399
  ## [End] Get Response template. **",
7365
7400
  "Query.getUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7366
- $util.unauthorized()
7401
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7402
+ $util.unauthorized()
7403
+ #end
7404
+ $util.toJson({})
7367
7405
  ## [End] Sandbox Mode Disabled. **",
7368
7406
  "Query.getUser.req.vtl": "## [Start] Get Request template. **
7369
7407
  #set( $GetRequest = {
@@ -7372,14 +7410,17 @@ $util.unauthorized()
7372
7410
  } )
7373
7411
  #if( $ctx.stash.metadata.modelObjectKey )
7374
7412
  #set( $expression = \\"\\" )
7413
+ #set( $expressionNames = {} )
7375
7414
  #set( $expressionValues = {} )
7376
7415
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
7377
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
7378
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
7416
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
7417
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
7418
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
7379
7419
  #end
7380
7420
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
7381
7421
  #set( $query = {
7382
7422
  \\"expression\\": $expression,
7423
+ \\"expressionNames\\": $expressionNames,
7383
7424
  \\"expressionValues\\": $expressionValues
7384
7425
  } )
7385
7426
  #else
@@ -7410,7 +7451,10 @@ $util.unauthorized()
7410
7451
  #end
7411
7452
  ## [End] Get Response template. **",
7412
7453
  "Query.listAuthors.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7413
- $util.unauthorized()
7454
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7455
+ $util.unauthorized()
7456
+ #end
7457
+ $util.toJson({})
7414
7458
  ## [End] Sandbox Mode Disabled. **",
7415
7459
  "Query.listAuthors.req.vtl": "## [Start] List Request. **
7416
7460
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -7424,9 +7468,9 @@ $util.unauthorized()
7424
7468
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
7425
7469
  #set( $filter = $ctx.stash.authFilter )
7426
7470
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
7427
- #set( $filter = [{
7471
+ #set( $filter = {
7428
7472
  \\"and\\": [$filter, $ctx.args.filter]
7429
- }] )
7473
+ } )
7430
7474
  #end
7431
7475
  #else
7432
7476
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -7466,7 +7510,10 @@ $util.toJson($ListRequest)
7466
7510
  #end
7467
7511
  ## [End] ResponseTemplate. **",
7468
7512
  "Query.listComments.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7469
- $util.unauthorized()
7513
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7514
+ $util.unauthorized()
7515
+ #end
7516
+ $util.toJson({})
7470
7517
  ## [End] Sandbox Mode Disabled. **",
7471
7518
  "Query.listComments.req.vtl": "## [Start] List Request. **
7472
7519
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -7480,9 +7527,9 @@ $util.unauthorized()
7480
7527
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
7481
7528
  #set( $filter = $ctx.stash.authFilter )
7482
7529
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
7483
- #set( $filter = [{
7530
+ #set( $filter = {
7484
7531
  \\"and\\": [$filter, $ctx.args.filter]
7485
- }] )
7532
+ } )
7486
7533
  #end
7487
7534
  #else
7488
7535
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -7522,7 +7569,10 @@ $util.toJson($ListRequest)
7522
7569
  #end
7523
7570
  ## [End] ResponseTemplate. **",
7524
7571
  "Query.listEmails.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7525
- $util.unauthorized()
7572
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7573
+ $util.unauthorized()
7574
+ #end
7575
+ $util.toJson({})
7526
7576
  ## [End] Sandbox Mode Disabled. **",
7527
7577
  "Query.listEmails.req.vtl": "## [Start] List Request. **
7528
7578
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -7536,9 +7586,9 @@ $util.unauthorized()
7536
7586
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
7537
7587
  #set( $filter = $ctx.stash.authFilter )
7538
7588
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
7539
- #set( $filter = [{
7589
+ #set( $filter = {
7540
7590
  \\"and\\": [$filter, $ctx.args.filter]
7541
- }] )
7591
+ } )
7542
7592
  #end
7543
7593
  #else
7544
7594
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -7578,7 +7628,10 @@ $util.toJson($ListRequest)
7578
7628
  #end
7579
7629
  ## [End] ResponseTemplate. **",
7580
7630
  "Query.listPosts.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7581
- $util.unauthorized()
7631
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7632
+ $util.unauthorized()
7633
+ #end
7634
+ $util.toJson({})
7582
7635
  ## [End] Sandbox Mode Disabled. **",
7583
7636
  "Query.listPosts.req.vtl": "## [Start] List Request. **
7584
7637
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -7592,9 +7645,9 @@ $util.unauthorized()
7592
7645
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
7593
7646
  #set( $filter = $ctx.stash.authFilter )
7594
7647
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
7595
- #set( $filter = [{
7648
+ #set( $filter = {
7596
7649
  \\"and\\": [$filter, $ctx.args.filter]
7597
- }] )
7650
+ } )
7598
7651
  #end
7599
7652
  #else
7600
7653
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -7634,7 +7687,10 @@ $util.toJson($ListRequest)
7634
7687
  #end
7635
7688
  ## [End] ResponseTemplate. **",
7636
7689
  "Query.listRequires.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7637
- $util.unauthorized()
7690
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7691
+ $util.unauthorized()
7692
+ #end
7693
+ $util.toJson({})
7638
7694
  ## [End] Sandbox Mode Disabled. **",
7639
7695
  "Query.listRequires.req.vtl": "## [Start] List Request. **
7640
7696
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -7648,9 +7704,9 @@ $util.unauthorized()
7648
7704
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
7649
7705
  #set( $filter = $ctx.stash.authFilter )
7650
7706
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
7651
- #set( $filter = [{
7707
+ #set( $filter = {
7652
7708
  \\"and\\": [$filter, $ctx.args.filter]
7653
- }] )
7709
+ } )
7654
7710
  #end
7655
7711
  #else
7656
7712
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -7690,7 +7746,10 @@ $util.toJson($ListRequest)
7690
7746
  #end
7691
7747
  ## [End] ResponseTemplate. **",
7692
7748
  "Query.listTests.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7693
- $util.unauthorized()
7749
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7750
+ $util.unauthorized()
7751
+ #end
7752
+ $util.toJson({})
7694
7753
  ## [End] Sandbox Mode Disabled. **",
7695
7754
  "Query.listTests.req.vtl": "## [Start] List Request. **
7696
7755
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -7704,9 +7763,9 @@ $util.unauthorized()
7704
7763
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
7705
7764
  #set( $filter = $ctx.stash.authFilter )
7706
7765
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
7707
- #set( $filter = [{
7766
+ #set( $filter = {
7708
7767
  \\"and\\": [$filter, $ctx.args.filter]
7709
- }] )
7768
+ } )
7710
7769
  #end
7711
7770
  #else
7712
7771
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -7746,7 +7805,10 @@ $util.toJson($ListRequest)
7746
7805
  #end
7747
7806
  ## [End] ResponseTemplate. **",
7748
7807
  "Query.listUsers.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7749
- $util.unauthorized()
7808
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7809
+ $util.unauthorized()
7810
+ #end
7811
+ $util.toJson({})
7750
7812
  ## [End] Sandbox Mode Disabled. **",
7751
7813
  "Query.listUsers.req.vtl": "## [Start] List Request. **
7752
7814
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -7760,9 +7822,9 @@ $util.unauthorized()
7760
7822
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
7761
7823
  #set( $filter = $ctx.stash.authFilter )
7762
7824
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
7763
- #set( $filter = [{
7825
+ #set( $filter = {
7764
7826
  \\"and\\": [$filter, $ctx.args.filter]
7765
- }] )
7827
+ } )
7766
7828
  #end
7767
7829
  #else
7768
7830
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -7802,15 +7864,18 @@ $util.toJson($ListRequest)
7802
7864
  #end
7803
7865
  ## [End] ResponseTemplate. **",
7804
7866
  "Query.syncPosts.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7805
- $util.unauthorized()
7867
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7868
+ $util.unauthorized()
7869
+ #end
7870
+ $util.toJson({})
7806
7871
  ## [End] Sandbox Mode Disabled. **",
7807
7872
  "Query.syncPosts.req.vtl": "## [Start] Sync Request template. **
7808
7873
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
7809
7874
  #set( $filter = $ctx.stash.authFilter )
7810
7875
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
7811
- #set( $filter = [{
7876
+ #set( $filter = {
7812
7877
  \\"and\\": [$filter, $ctx.args.filter]
7813
- }] )
7878
+ } )
7814
7879
  #end
7815
7880
  #else
7816
7881
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -7847,7 +7912,10 @@ null
7847
7912
  #end
7848
7913
  ## [End] ResponseTemplate. **",
7849
7914
  "Subscription.onCreateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7850
- $util.unauthorized()
7915
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7916
+ $util.unauthorized()
7917
+ #end
7918
+ $util.toJson({})
7851
7919
  ## [End] Sandbox Mode Disabled. **",
7852
7920
  "Subscription.onCreateAuthor.req.vtl": "## [Start] Subscription Request template. **
7853
7921
  $util.toJson({
@@ -7855,11 +7923,14 @@ $util.toJson({
7855
7923
  \\"payload\\": {}
7856
7924
  })
7857
7925
  ## [End] Subscription Request template. **",
7858
- "Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Resonse template. **
7926
+ "Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Response template. **
7859
7927
  $util.toJson(null)
7860
- ## [End] Subscription Resonse template. **",
7928
+ ## [End] Subscription Response template. **",
7861
7929
  "Subscription.onCreateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7862
- $util.unauthorized()
7930
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7931
+ $util.unauthorized()
7932
+ #end
7933
+ $util.toJson({})
7863
7934
  ## [End] Sandbox Mode Disabled. **",
7864
7935
  "Subscription.onCreateComment.req.vtl": "## [Start] Subscription Request template. **
7865
7936
  $util.toJson({
@@ -7867,11 +7938,14 @@ $util.toJson({
7867
7938
  \\"payload\\": {}
7868
7939
  })
7869
7940
  ## [End] Subscription Request template. **",
7870
- "Subscription.onCreateComment.res.vtl": "## [Start] Subscription Resonse template. **
7941
+ "Subscription.onCreateComment.res.vtl": "## [Start] Subscription Response template. **
7871
7942
  $util.toJson(null)
7872
- ## [End] Subscription Resonse template. **",
7943
+ ## [End] Subscription Response template. **",
7873
7944
  "Subscription.onCreateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7874
- $util.unauthorized()
7945
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7946
+ $util.unauthorized()
7947
+ #end
7948
+ $util.toJson({})
7875
7949
  ## [End] Sandbox Mode Disabled. **",
7876
7950
  "Subscription.onCreateEmail.req.vtl": "## [Start] Subscription Request template. **
7877
7951
  $util.toJson({
@@ -7879,11 +7953,14 @@ $util.toJson({
7879
7953
  \\"payload\\": {}
7880
7954
  })
7881
7955
  ## [End] Subscription Request template. **",
7882
- "Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Resonse template. **
7956
+ "Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Response template. **
7883
7957
  $util.toJson(null)
7884
- ## [End] Subscription Resonse template. **",
7958
+ ## [End] Subscription Response template. **",
7885
7959
  "Subscription.onCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7886
- $util.unauthorized()
7960
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7961
+ $util.unauthorized()
7962
+ #end
7963
+ $util.toJson({})
7887
7964
  ## [End] Sandbox Mode Disabled. **",
7888
7965
  "Subscription.onCreatePost.req.vtl": "## [Start] Subscription Request template. **
7889
7966
  $util.toJson({
@@ -7891,11 +7968,14 @@ $util.toJson({
7891
7968
  \\"payload\\": {}
7892
7969
  })
7893
7970
  ## [End] Subscription Request template. **",
7894
- "Subscription.onCreatePost.res.vtl": "## [Start] Subscription Resonse template. **
7971
+ "Subscription.onCreatePost.res.vtl": "## [Start] Subscription Response template. **
7895
7972
  $util.toJson(null)
7896
- ## [End] Subscription Resonse template. **",
7973
+ ## [End] Subscription Response template. **",
7897
7974
  "Subscription.onCreateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7898
- $util.unauthorized()
7975
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7976
+ $util.unauthorized()
7977
+ #end
7978
+ $util.toJson({})
7899
7979
  ## [End] Sandbox Mode Disabled. **",
7900
7980
  "Subscription.onCreateRequire.req.vtl": "## [Start] Subscription Request template. **
7901
7981
  $util.toJson({
@@ -7903,11 +7983,14 @@ $util.toJson({
7903
7983
  \\"payload\\": {}
7904
7984
  })
7905
7985
  ## [End] Subscription Request template. **",
7906
- "Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Resonse template. **
7986
+ "Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Response template. **
7907
7987
  $util.toJson(null)
7908
- ## [End] Subscription Resonse template. **",
7988
+ ## [End] Subscription Response template. **",
7909
7989
  "Subscription.onCreateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7910
- $util.unauthorized()
7990
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
7991
+ $util.unauthorized()
7992
+ #end
7993
+ $util.toJson({})
7911
7994
  ## [End] Sandbox Mode Disabled. **",
7912
7995
  "Subscription.onCreateTest.req.vtl": "## [Start] Subscription Request template. **
7913
7996
  $util.toJson({
@@ -7915,11 +7998,14 @@ $util.toJson({
7915
7998
  \\"payload\\": {}
7916
7999
  })
7917
8000
  ## [End] Subscription Request template. **",
7918
- "Subscription.onCreateTest.res.vtl": "## [Start] Subscription Resonse template. **
8001
+ "Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
7919
8002
  $util.toJson(null)
7920
- ## [End] Subscription Resonse template. **",
8003
+ ## [End] Subscription Response template. **",
7921
8004
  "Subscription.onCreateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7922
- $util.unauthorized()
8005
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8006
+ $util.unauthorized()
8007
+ #end
8008
+ $util.toJson({})
7923
8009
  ## [End] Sandbox Mode Disabled. **",
7924
8010
  "Subscription.onCreateUser.req.vtl": "## [Start] Subscription Request template. **
7925
8011
  $util.toJson({
@@ -7927,11 +8013,14 @@ $util.toJson({
7927
8013
  \\"payload\\": {}
7928
8014
  })
7929
8015
  ## [End] Subscription Request template. **",
7930
- "Subscription.onCreateUser.res.vtl": "## [Start] Subscription Resonse template. **
8016
+ "Subscription.onCreateUser.res.vtl": "## [Start] Subscription Response template. **
7931
8017
  $util.toJson(null)
7932
- ## [End] Subscription Resonse template. **",
8018
+ ## [End] Subscription Response template. **",
7933
8019
  "Subscription.onDeleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7934
- $util.unauthorized()
8020
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8021
+ $util.unauthorized()
8022
+ #end
8023
+ $util.toJson({})
7935
8024
  ## [End] Sandbox Mode Disabled. **",
7936
8025
  "Subscription.onDeleteAuthor.req.vtl": "## [Start] Subscription Request template. **
7937
8026
  $util.toJson({
@@ -7939,11 +8028,14 @@ $util.toJson({
7939
8028
  \\"payload\\": {}
7940
8029
  })
7941
8030
  ## [End] Subscription Request template. **",
7942
- "Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Resonse template. **
8031
+ "Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Response template. **
7943
8032
  $util.toJson(null)
7944
- ## [End] Subscription Resonse template. **",
8033
+ ## [End] Subscription Response template. **",
7945
8034
  "Subscription.onDeleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7946
- $util.unauthorized()
8035
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8036
+ $util.unauthorized()
8037
+ #end
8038
+ $util.toJson({})
7947
8039
  ## [End] Sandbox Mode Disabled. **",
7948
8040
  "Subscription.onDeleteComment.req.vtl": "## [Start] Subscription Request template. **
7949
8041
  $util.toJson({
@@ -7951,11 +8043,14 @@ $util.toJson({
7951
8043
  \\"payload\\": {}
7952
8044
  })
7953
8045
  ## [End] Subscription Request template. **",
7954
- "Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Resonse template. **
8046
+ "Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Response template. **
7955
8047
  $util.toJson(null)
7956
- ## [End] Subscription Resonse template. **",
8048
+ ## [End] Subscription Response template. **",
7957
8049
  "Subscription.onDeleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7958
- $util.unauthorized()
8050
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8051
+ $util.unauthorized()
8052
+ #end
8053
+ $util.toJson({})
7959
8054
  ## [End] Sandbox Mode Disabled. **",
7960
8055
  "Subscription.onDeleteEmail.req.vtl": "## [Start] Subscription Request template. **
7961
8056
  $util.toJson({
@@ -7963,11 +8058,14 @@ $util.toJson({
7963
8058
  \\"payload\\": {}
7964
8059
  })
7965
8060
  ## [End] Subscription Request template. **",
7966
- "Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Resonse template. **
8061
+ "Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Response template. **
7967
8062
  $util.toJson(null)
7968
- ## [End] Subscription Resonse template. **",
8063
+ ## [End] Subscription Response template. **",
7969
8064
  "Subscription.onDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7970
- $util.unauthorized()
8065
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8066
+ $util.unauthorized()
8067
+ #end
8068
+ $util.toJson({})
7971
8069
  ## [End] Sandbox Mode Disabled. **",
7972
8070
  "Subscription.onDeletePost.req.vtl": "## [Start] Subscription Request template. **
7973
8071
  $util.toJson({
@@ -7975,11 +8073,14 @@ $util.toJson({
7975
8073
  \\"payload\\": {}
7976
8074
  })
7977
8075
  ## [End] Subscription Request template. **",
7978
- "Subscription.onDeletePost.res.vtl": "## [Start] Subscription Resonse template. **
8076
+ "Subscription.onDeletePost.res.vtl": "## [Start] Subscription Response template. **
7979
8077
  $util.toJson(null)
7980
- ## [End] Subscription Resonse template. **",
8078
+ ## [End] Subscription Response template. **",
7981
8079
  "Subscription.onDeleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7982
- $util.unauthorized()
8080
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8081
+ $util.unauthorized()
8082
+ #end
8083
+ $util.toJson({})
7983
8084
  ## [End] Sandbox Mode Disabled. **",
7984
8085
  "Subscription.onDeleteRequire.req.vtl": "## [Start] Subscription Request template. **
7985
8086
  $util.toJson({
@@ -7987,11 +8088,14 @@ $util.toJson({
7987
8088
  \\"payload\\": {}
7988
8089
  })
7989
8090
  ## [End] Subscription Request template. **",
7990
- "Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Resonse template. **
8091
+ "Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Response template. **
7991
8092
  $util.toJson(null)
7992
- ## [End] Subscription Resonse template. **",
8093
+ ## [End] Subscription Response template. **",
7993
8094
  "Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
7994
- $util.unauthorized()
8095
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8096
+ $util.unauthorized()
8097
+ #end
8098
+ $util.toJson({})
7995
8099
  ## [End] Sandbox Mode Disabled. **",
7996
8100
  "Subscription.onDeleteTest.req.vtl": "## [Start] Subscription Request template. **
7997
8101
  $util.toJson({
@@ -7999,11 +8103,14 @@ $util.toJson({
7999
8103
  \\"payload\\": {}
8000
8104
  })
8001
8105
  ## [End] Subscription Request template. **",
8002
- "Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Resonse template. **
8106
+ "Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
8003
8107
  $util.toJson(null)
8004
- ## [End] Subscription Resonse template. **",
8108
+ ## [End] Subscription Response template. **",
8005
8109
  "Subscription.onDeleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8006
- $util.unauthorized()
8110
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8111
+ $util.unauthorized()
8112
+ #end
8113
+ $util.toJson({})
8007
8114
  ## [End] Sandbox Mode Disabled. **",
8008
8115
  "Subscription.onDeleteUser.req.vtl": "## [Start] Subscription Request template. **
8009
8116
  $util.toJson({
@@ -8011,11 +8118,14 @@ $util.toJson({
8011
8118
  \\"payload\\": {}
8012
8119
  })
8013
8120
  ## [End] Subscription Request template. **",
8014
- "Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Resonse template. **
8121
+ "Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Response template. **
8015
8122
  $util.toJson(null)
8016
- ## [End] Subscription Resonse template. **",
8123
+ ## [End] Subscription Response template. **",
8017
8124
  "Subscription.onUpdateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8018
- $util.unauthorized()
8125
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8126
+ $util.unauthorized()
8127
+ #end
8128
+ $util.toJson({})
8019
8129
  ## [End] Sandbox Mode Disabled. **",
8020
8130
  "Subscription.onUpdateAuthor.req.vtl": "## [Start] Subscription Request template. **
8021
8131
  $util.toJson({
@@ -8023,11 +8133,14 @@ $util.toJson({
8023
8133
  \\"payload\\": {}
8024
8134
  })
8025
8135
  ## [End] Subscription Request template. **",
8026
- "Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Resonse template. **
8136
+ "Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Response template. **
8027
8137
  $util.toJson(null)
8028
- ## [End] Subscription Resonse template. **",
8138
+ ## [End] Subscription Response template. **",
8029
8139
  "Subscription.onUpdateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8030
- $util.unauthorized()
8140
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8141
+ $util.unauthorized()
8142
+ #end
8143
+ $util.toJson({})
8031
8144
  ## [End] Sandbox Mode Disabled. **",
8032
8145
  "Subscription.onUpdateComment.req.vtl": "## [Start] Subscription Request template. **
8033
8146
  $util.toJson({
@@ -8035,11 +8148,14 @@ $util.toJson({
8035
8148
  \\"payload\\": {}
8036
8149
  })
8037
8150
  ## [End] Subscription Request template. **",
8038
- "Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Resonse template. **
8151
+ "Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Response template. **
8039
8152
  $util.toJson(null)
8040
- ## [End] Subscription Resonse template. **",
8153
+ ## [End] Subscription Response template. **",
8041
8154
  "Subscription.onUpdateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8042
- $util.unauthorized()
8155
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8156
+ $util.unauthorized()
8157
+ #end
8158
+ $util.toJson({})
8043
8159
  ## [End] Sandbox Mode Disabled. **",
8044
8160
  "Subscription.onUpdateEmail.req.vtl": "## [Start] Subscription Request template. **
8045
8161
  $util.toJson({
@@ -8047,11 +8163,14 @@ $util.toJson({
8047
8163
  \\"payload\\": {}
8048
8164
  })
8049
8165
  ## [End] Subscription Request template. **",
8050
- "Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Resonse template. **
8166
+ "Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Response template. **
8051
8167
  $util.toJson(null)
8052
- ## [End] Subscription Resonse template. **",
8168
+ ## [End] Subscription Response template. **",
8053
8169
  "Subscription.onUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8054
- $util.unauthorized()
8170
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8171
+ $util.unauthorized()
8172
+ #end
8173
+ $util.toJson({})
8055
8174
  ## [End] Sandbox Mode Disabled. **",
8056
8175
  "Subscription.onUpdatePost.req.vtl": "## [Start] Subscription Request template. **
8057
8176
  $util.toJson({
@@ -8059,11 +8178,14 @@ $util.toJson({
8059
8178
  \\"payload\\": {}
8060
8179
  })
8061
8180
  ## [End] Subscription Request template. **",
8062
- "Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Resonse template. **
8181
+ "Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Response template. **
8063
8182
  $util.toJson(null)
8064
- ## [End] Subscription Resonse template. **",
8183
+ ## [End] Subscription Response template. **",
8065
8184
  "Subscription.onUpdateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8066
- $util.unauthorized()
8185
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8186
+ $util.unauthorized()
8187
+ #end
8188
+ $util.toJson({})
8067
8189
  ## [End] Sandbox Mode Disabled. **",
8068
8190
  "Subscription.onUpdateRequire.req.vtl": "## [Start] Subscription Request template. **
8069
8191
  $util.toJson({
@@ -8071,11 +8193,14 @@ $util.toJson({
8071
8193
  \\"payload\\": {}
8072
8194
  })
8073
8195
  ## [End] Subscription Request template. **",
8074
- "Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Resonse template. **
8196
+ "Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Response template. **
8075
8197
  $util.toJson(null)
8076
- ## [End] Subscription Resonse template. **",
8198
+ ## [End] Subscription Response template. **",
8077
8199
  "Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8078
- $util.unauthorized()
8200
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8201
+ $util.unauthorized()
8202
+ #end
8203
+ $util.toJson({})
8079
8204
  ## [End] Sandbox Mode Disabled. **",
8080
8205
  "Subscription.onUpdateTest.req.vtl": "## [Start] Subscription Request template. **
8081
8206
  $util.toJson({
@@ -8083,11 +8208,14 @@ $util.toJson({
8083
8208
  \\"payload\\": {}
8084
8209
  })
8085
8210
  ## [End] Subscription Request template. **",
8086
- "Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Resonse template. **
8211
+ "Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
8087
8212
  $util.toJson(null)
8088
- ## [End] Subscription Resonse template. **",
8213
+ ## [End] Subscription Response template. **",
8089
8214
  "Subscription.onUpdateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8090
- $util.unauthorized()
8215
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8216
+ $util.unauthorized()
8217
+ #end
8218
+ $util.toJson({})
8091
8219
  ## [End] Sandbox Mode Disabled. **",
8092
8220
  "Subscription.onUpdateUser.req.vtl": "## [Start] Subscription Request template. **
8093
8221
  $util.toJson({
@@ -8095,9 +8223,9 @@ $util.toJson({
8095
8223
  \\"payload\\": {}
8096
8224
  })
8097
8225
  ## [End] Subscription Request template. **",
8098
- "Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Resonse template. **
8226
+ "Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Response template. **
8099
8227
  $util.toJson(null)
8100
- ## [End] Subscription Resonse template. **",
8228
+ ## [End] Subscription Response template. **",
8101
8229
  }
8102
8230
  `;
8103
8231
 
@@ -8115,28 +8243,12 @@ $util.toJson({
8115
8243
  })
8116
8244
  ## [End] Initialization default values. **",
8117
8245
  "Mutation.createAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8118
- $util.unauthorized()
8246
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8247
+ $util.unauthorized()
8248
+ #end
8249
+ $util.toJson({})
8119
8250
  ## [End] Sandbox Mode Disabled. **",
8120
8251
  "Mutation.createAuthor.req.vtl": "## [Start] Create Request template. **
8121
- ## Begin - key condition **
8122
- #if( $ctx.stash.metadata.modelObjectKey )
8123
- #set( $keyConditionExpr = {} )
8124
- #set( $keyConditionExprNames = {} )
8125
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
8126
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
8127
- \\"attributeExists\\": false
8128
- }))
8129
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
8130
- #end
8131
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
8132
- #else
8133
- $util.qr($ctx.stash.conditions.add({
8134
- \\"id\\": {
8135
- \\"attributeExists\\": false
8136
- }
8137
- }))
8138
- #end
8139
- ## End - key condition **
8140
8252
  ## Set the default values to put request **
8141
8253
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
8142
8254
  ## copy the values from input **
@@ -8221,28 +8333,12 @@ $util.toJson({
8221
8333
  })
8222
8334
  ## [End] Initialization default values. **",
8223
8335
  "Mutation.createComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8224
- $util.unauthorized()
8336
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8337
+ $util.unauthorized()
8338
+ #end
8339
+ $util.toJson({})
8225
8340
  ## [End] Sandbox Mode Disabled. **",
8226
8341
  "Mutation.createComment.req.vtl": "## [Start] Create Request template. **
8227
- ## Begin - key condition **
8228
- #if( $ctx.stash.metadata.modelObjectKey )
8229
- #set( $keyConditionExpr = {} )
8230
- #set( $keyConditionExprNames = {} )
8231
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
8232
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
8233
- \\"attributeExists\\": false
8234
- }))
8235
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
8236
- #end
8237
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
8238
- #else
8239
- $util.qr($ctx.stash.conditions.add({
8240
- \\"id\\": {
8241
- \\"attributeExists\\": false
8242
- }
8243
- }))
8244
- #end
8245
- ## End - key condition **
8246
8342
  ## Set the default values to put request **
8247
8343
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
8248
8344
  ## copy the values from input **
@@ -8327,28 +8423,12 @@ $util.toJson({
8327
8423
  })
8328
8424
  ## [End] Initialization default values. **",
8329
8425
  "Mutation.createEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8330
- $util.unauthorized()
8426
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8427
+ $util.unauthorized()
8428
+ #end
8429
+ $util.toJson({})
8331
8430
  ## [End] Sandbox Mode Disabled. **",
8332
8431
  "Mutation.createEmail.req.vtl": "## [Start] Create Request template. **
8333
- ## Begin - key condition **
8334
- #if( $ctx.stash.metadata.modelObjectKey )
8335
- #set( $keyConditionExpr = {} )
8336
- #set( $keyConditionExprNames = {} )
8337
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
8338
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
8339
- \\"attributeExists\\": false
8340
- }))
8341
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
8342
- #end
8343
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
8344
- #else
8345
- $util.qr($ctx.stash.conditions.add({
8346
- \\"id\\": {
8347
- \\"attributeExists\\": false
8348
- }
8349
- }))
8350
- #end
8351
- ## End - key condition **
8352
8432
  ## Set the default values to put request **
8353
8433
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
8354
8434
  ## copy the values from input **
@@ -8433,28 +8513,12 @@ $util.toJson({
8433
8513
  })
8434
8514
  ## [End] Initialization default values. **",
8435
8515
  "Mutation.createPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8436
- $util.unauthorized()
8516
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8517
+ $util.unauthorized()
8518
+ #end
8519
+ $util.toJson({})
8437
8520
  ## [End] Sandbox Mode Disabled. **",
8438
8521
  "Mutation.createPost.req.vtl": "## [Start] Create Request template. **
8439
- ## Begin - key condition **
8440
- #if( $ctx.stash.metadata.modelObjectKey )
8441
- #set( $keyConditionExpr = {} )
8442
- #set( $keyConditionExprNames = {} )
8443
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
8444
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
8445
- \\"attributeExists\\": false
8446
- }))
8447
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
8448
- #end
8449
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
8450
- #else
8451
- $util.qr($ctx.stash.conditions.add({
8452
- \\"id\\": {
8453
- \\"attributeExists\\": false
8454
- }
8455
- }))
8456
- #end
8457
- ## End - key condition **
8458
8522
  ## Set the default values to put request **
8459
8523
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
8460
8524
  ## copy the values from input **
@@ -8539,28 +8603,12 @@ $util.toJson({
8539
8603
  })
8540
8604
  ## [End] Initialization default values. **",
8541
8605
  "Mutation.createRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8542
- $util.unauthorized()
8606
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8607
+ $util.unauthorized()
8608
+ #end
8609
+ $util.toJson({})
8543
8610
  ## [End] Sandbox Mode Disabled. **",
8544
8611
  "Mutation.createRequire.req.vtl": "## [Start] Create Request template. **
8545
- ## Begin - key condition **
8546
- #if( $ctx.stash.metadata.modelObjectKey )
8547
- #set( $keyConditionExpr = {} )
8548
- #set( $keyConditionExprNames = {} )
8549
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
8550
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
8551
- \\"attributeExists\\": false
8552
- }))
8553
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
8554
- #end
8555
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
8556
- #else
8557
- $util.qr($ctx.stash.conditions.add({
8558
- \\"id\\": {
8559
- \\"attributeExists\\": false
8560
- }
8561
- }))
8562
- #end
8563
- ## End - key condition **
8564
8612
  ## Set the default values to put request **
8565
8613
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
8566
8614
  ## copy the values from input **
@@ -8645,28 +8693,12 @@ $util.toJson({
8645
8693
  })
8646
8694
  ## [End] Initialization default values. **",
8647
8695
  "Mutation.createTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8648
- $util.unauthorized()
8696
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8697
+ $util.unauthorized()
8698
+ #end
8699
+ $util.toJson({})
8649
8700
  ## [End] Sandbox Mode Disabled. **",
8650
8701
  "Mutation.createTest.req.vtl": "## [Start] Create Request template. **
8651
- ## Begin - key condition **
8652
- #if( $ctx.stash.metadata.modelObjectKey )
8653
- #set( $keyConditionExpr = {} )
8654
- #set( $keyConditionExprNames = {} )
8655
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
8656
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
8657
- \\"attributeExists\\": false
8658
- }))
8659
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
8660
- #end
8661
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
8662
- #else
8663
- $util.qr($ctx.stash.conditions.add({
8664
- \\"id\\": {
8665
- \\"attributeExists\\": false
8666
- }
8667
- }))
8668
- #end
8669
- ## End - key condition **
8670
8702
  ## Set the default values to put request **
8671
8703
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
8672
8704
  ## copy the values from input **
@@ -8751,28 +8783,12 @@ $util.toJson({
8751
8783
  })
8752
8784
  ## [End] Initialization default values. **",
8753
8785
  "Mutation.createUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8754
- $util.unauthorized()
8786
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8787
+ $util.unauthorized()
8788
+ #end
8789
+ $util.toJson({})
8755
8790
  ## [End] Sandbox Mode Disabled. **",
8756
8791
  "Mutation.createUser.req.vtl": "## [Start] Create Request template. **
8757
- ## Begin - key condition **
8758
- #if( $ctx.stash.metadata.modelObjectKey )
8759
- #set( $keyConditionExpr = {} )
8760
- #set( $keyConditionExprNames = {} )
8761
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
8762
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
8763
- \\"attributeExists\\": false
8764
- }))
8765
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
8766
- #end
8767
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
8768
- #else
8769
- $util.qr($ctx.stash.conditions.add({
8770
- \\"id\\": {
8771
- \\"attributeExists\\": false
8772
- }
8773
- }))
8774
- #end
8775
- ## End - key condition **
8776
8792
  ## Set the default values to put request **
8777
8793
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
8778
8794
  ## copy the values from input **
@@ -8857,28 +8873,12 @@ $util.toJson({
8857
8873
  })
8858
8874
  ## [End] Initialization default values. **",
8859
8875
  "Mutation.customCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8860
- $util.unauthorized()
8876
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8877
+ $util.unauthorized()
8878
+ #end
8879
+ $util.toJson({})
8861
8880
  ## [End] Sandbox Mode Disabled. **",
8862
8881
  "Mutation.customCreatePost.req.vtl": "## [Start] Create Request template. **
8863
- ## Begin - key condition **
8864
- #if( $ctx.stash.metadata.modelObjectKey )
8865
- #set( $keyConditionExpr = {} )
8866
- #set( $keyConditionExprNames = {} )
8867
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
8868
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
8869
- \\"attributeExists\\": false
8870
- }))
8871
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
8872
- #end
8873
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
8874
- #else
8875
- $util.qr($ctx.stash.conditions.add({
8876
- \\"id\\": {
8877
- \\"attributeExists\\": false
8878
- }
8879
- }))
8880
- #end
8881
- ## End - key condition **
8882
8882
  ## Set the default values to put request **
8883
8883
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
8884
8884
  ## copy the values from input **
@@ -8952,7 +8952,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
8952
8952
  #end
8953
8953
  ## [End] ResponseTemplate. **",
8954
8954
  "Mutation.customDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
8955
- $util.unauthorized()
8955
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
8956
+ $util.unauthorized()
8957
+ #end
8958
+ $util.toJson({})
8956
8959
  ## [End] Sandbox Mode Disabled. **",
8957
8960
  "Mutation.customDeletePost.req.vtl": "## [Start] Delete Request template. **
8958
8961
  #set( $DeleteRequest = {
@@ -9029,7 +9032,10 @@ $util.toJson({
9029
9032
  })
9030
9033
  ## [End] Initialization default values. **",
9031
9034
  "Mutation.customUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9032
- $util.unauthorized()
9035
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9036
+ $util.unauthorized()
9037
+ #end
9038
+ $util.toJson({})
9033
9039
  ## [End] Sandbox Mode Disabled. **",
9034
9040
  "Mutation.customUpdatePost.req.vtl": "## [Start] Mutation Update resolver. **
9035
9041
  ## Set the default values to put request **
@@ -9169,7 +9175,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
9169
9175
  #end
9170
9176
  ## [End] ResponseTemplate. **",
9171
9177
  "Mutation.deleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9172
- $util.unauthorized()
9178
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9179
+ $util.unauthorized()
9180
+ #end
9181
+ $util.toJson({})
9173
9182
  ## [End] Sandbox Mode Disabled. **",
9174
9183
  "Mutation.deleteAuthor.req.vtl": "## [Start] Delete Request template. **
9175
9184
  #set( $DeleteRequest = {
@@ -9237,7 +9246,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
9237
9246
  #end
9238
9247
  ## [End] ResponseTemplate. **",
9239
9248
  "Mutation.deleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9240
- $util.unauthorized()
9249
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9250
+ $util.unauthorized()
9251
+ #end
9252
+ $util.toJson({})
9241
9253
  ## [End] Sandbox Mode Disabled. **",
9242
9254
  "Mutation.deleteComment.req.vtl": "## [Start] Delete Request template. **
9243
9255
  #set( $DeleteRequest = {
@@ -9305,7 +9317,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
9305
9317
  #end
9306
9318
  ## [End] ResponseTemplate. **",
9307
9319
  "Mutation.deleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9308
- $util.unauthorized()
9320
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9321
+ $util.unauthorized()
9322
+ #end
9323
+ $util.toJson({})
9309
9324
  ## [End] Sandbox Mode Disabled. **",
9310
9325
  "Mutation.deleteEmail.req.vtl": "## [Start] Delete Request template. **
9311
9326
  #set( $DeleteRequest = {
@@ -9373,7 +9388,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
9373
9388
  #end
9374
9389
  ## [End] ResponseTemplate. **",
9375
9390
  "Mutation.deletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9376
- $util.unauthorized()
9391
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9392
+ $util.unauthorized()
9393
+ #end
9394
+ $util.toJson({})
9377
9395
  ## [End] Sandbox Mode Disabled. **",
9378
9396
  "Mutation.deletePost.req.vtl": "## [Start] Delete Request template. **
9379
9397
  #set( $DeleteRequest = {
@@ -9442,7 +9460,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
9442
9460
  #end
9443
9461
  ## [End] ResponseTemplate. **",
9444
9462
  "Mutation.deleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9445
- $util.unauthorized()
9463
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9464
+ $util.unauthorized()
9465
+ #end
9466
+ $util.toJson({})
9446
9467
  ## [End] Sandbox Mode Disabled. **",
9447
9468
  "Mutation.deleteRequire.req.vtl": "## [Start] Delete Request template. **
9448
9469
  #set( $DeleteRequest = {
@@ -9510,7 +9531,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
9510
9531
  #end
9511
9532
  ## [End] ResponseTemplate. **",
9512
9533
  "Mutation.deleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9513
- $util.unauthorized()
9534
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9535
+ $util.unauthorized()
9536
+ #end
9537
+ $util.toJson({})
9514
9538
  ## [End] Sandbox Mode Disabled. **",
9515
9539
  "Mutation.deleteTest.req.vtl": "## [Start] Delete Request template. **
9516
9540
  #set( $DeleteRequest = {
@@ -9578,7 +9602,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
9578
9602
  #end
9579
9603
  ## [End] ResponseTemplate. **",
9580
9604
  "Mutation.deleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9581
- $util.unauthorized()
9605
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9606
+ $util.unauthorized()
9607
+ #end
9608
+ $util.toJson({})
9582
9609
  ## [End] Sandbox Mode Disabled. **",
9583
9610
  "Mutation.deleteUser.req.vtl": "## [Start] Delete Request template. **
9584
9611
  #set( $DeleteRequest = {
@@ -9655,7 +9682,10 @@ $util.toJson({
9655
9682
  })
9656
9683
  ## [End] Initialization default values. **",
9657
9684
  "Mutation.updateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9658
- $util.unauthorized()
9685
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9686
+ $util.unauthorized()
9687
+ #end
9688
+ $util.toJson({})
9659
9689
  ## [End] Sandbox Mode Disabled. **",
9660
9690
  "Mutation.updateAuthor.req.vtl": "## [Start] Mutation Update resolver. **
9661
9691
  ## Set the default values to put request **
@@ -9804,7 +9834,10 @@ $util.toJson({
9804
9834
  })
9805
9835
  ## [End] Initialization default values. **",
9806
9836
  "Mutation.updateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9807
- $util.unauthorized()
9837
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9838
+ $util.unauthorized()
9839
+ #end
9840
+ $util.toJson({})
9808
9841
  ## [End] Sandbox Mode Disabled. **",
9809
9842
  "Mutation.updateComment.req.vtl": "## [Start] Mutation Update resolver. **
9810
9843
  ## Set the default values to put request **
@@ -9953,7 +9986,10 @@ $util.toJson({
9953
9986
  })
9954
9987
  ## [End] Initialization default values. **",
9955
9988
  "Mutation.updateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
9956
- $util.unauthorized()
9989
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
9990
+ $util.unauthorized()
9991
+ #end
9992
+ $util.toJson({})
9957
9993
  ## [End] Sandbox Mode Disabled. **",
9958
9994
  "Mutation.updateEmail.req.vtl": "## [Start] Mutation Update resolver. **
9959
9995
  ## Set the default values to put request **
@@ -10102,7 +10138,10 @@ $util.toJson({
10102
10138
  })
10103
10139
  ## [End] Initialization default values. **",
10104
10140
  "Mutation.updatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10105
- $util.unauthorized()
10141
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
10142
+ $util.unauthorized()
10143
+ #end
10144
+ $util.toJson({})
10106
10145
  ## [End] Sandbox Mode Disabled. **",
10107
10146
  "Mutation.updatePost.req.vtl": "## [Start] Mutation Update resolver. **
10108
10147
  ## Set the default values to put request **
@@ -10252,7 +10291,10 @@ $util.toJson({
10252
10291
  })
10253
10292
  ## [End] Initialization default values. **",
10254
10293
  "Mutation.updateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10255
- $util.unauthorized()
10294
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
10295
+ $util.unauthorized()
10296
+ #end
10297
+ $util.toJson({})
10256
10298
  ## [End] Sandbox Mode Disabled. **",
10257
10299
  "Mutation.updateRequire.req.vtl": "## [Start] Mutation Update resolver. **
10258
10300
  ## Set the default values to put request **
@@ -10401,7 +10443,10 @@ $util.toJson({
10401
10443
  })
10402
10444
  ## [End] Initialization default values. **",
10403
10445
  "Mutation.updateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10404
- $util.unauthorized()
10446
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
10447
+ $util.unauthorized()
10448
+ #end
10449
+ $util.toJson({})
10405
10450
  ## [End] Sandbox Mode Disabled. **",
10406
10451
  "Mutation.updateTest.req.vtl": "## [Start] Mutation Update resolver. **
10407
10452
  ## Set the default values to put request **
@@ -10550,7 +10595,10 @@ $util.toJson({
10550
10595
  })
10551
10596
  ## [End] Initialization default values. **",
10552
10597
  "Mutation.updateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10553
- $util.unauthorized()
10598
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
10599
+ $util.unauthorized()
10600
+ #end
10601
+ $util.toJson({})
10554
10602
  ## [End] Sandbox Mode Disabled. **",
10555
10603
  "Mutation.updateUser.req.vtl": "## [Start] Mutation Update resolver. **
10556
10604
  ## Set the default values to put request **
@@ -10690,7 +10738,10 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
10690
10738
  #end
10691
10739
  ## [End] ResponseTemplate. **",
10692
10740
  "Query.customGetPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10693
- $util.unauthorized()
10741
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
10742
+ $util.unauthorized()
10743
+ #end
10744
+ $util.toJson({})
10694
10745
  ## [End] Sandbox Mode Disabled. **",
10695
10746
  "Query.customGetPost.req.vtl": "## [Start] Get Request template. **
10696
10747
  #set( $GetRequest = {
@@ -10699,14 +10750,17 @@ $util.unauthorized()
10699
10750
  } )
10700
10751
  #if( $ctx.stash.metadata.modelObjectKey )
10701
10752
  #set( $expression = \\"\\" )
10753
+ #set( $expressionNames = {} )
10702
10754
  #set( $expressionValues = {} )
10703
10755
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
10704
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
10705
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
10756
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
10757
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
10758
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
10706
10759
  #end
10707
10760
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
10708
10761
  #set( $query = {
10709
10762
  \\"expression\\": $expression,
10763
+ \\"expressionNames\\": $expressionNames,
10710
10764
  \\"expressionValues\\": $expressionValues
10711
10765
  } )
10712
10766
  #else
@@ -10737,7 +10791,10 @@ $util.unauthorized()
10737
10791
  #end
10738
10792
  ## [End] Get Response template. **",
10739
10793
  "Query.customListPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10740
- $util.unauthorized()
10794
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
10795
+ $util.unauthorized()
10796
+ #end
10797
+ $util.toJson({})
10741
10798
  ## [End] Sandbox Mode Disabled. **",
10742
10799
  "Query.customListPost.req.vtl": "## [Start] List Request. **
10743
10800
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -10751,9 +10808,9 @@ $util.unauthorized()
10751
10808
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
10752
10809
  #set( $filter = $ctx.stash.authFilter )
10753
10810
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
10754
- #set( $filter = [{
10811
+ #set( $filter = {
10755
10812
  \\"and\\": [$filter, $ctx.args.filter]
10756
- }] )
10813
+ } )
10757
10814
  #end
10758
10815
  #else
10759
10816
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -10793,7 +10850,10 @@ $util.toJson($ListRequest)
10793
10850
  #end
10794
10851
  ## [End] ResponseTemplate. **",
10795
10852
  "Query.getAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10796
- $util.unauthorized()
10853
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
10854
+ $util.unauthorized()
10855
+ #end
10856
+ $util.toJson({})
10797
10857
  ## [End] Sandbox Mode Disabled. **",
10798
10858
  "Query.getAuthor.req.vtl": "## [Start] Get Request template. **
10799
10859
  #set( $GetRequest = {
@@ -10802,14 +10862,17 @@ $util.unauthorized()
10802
10862
  } )
10803
10863
  #if( $ctx.stash.metadata.modelObjectKey )
10804
10864
  #set( $expression = \\"\\" )
10865
+ #set( $expressionNames = {} )
10805
10866
  #set( $expressionValues = {} )
10806
10867
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
10807
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
10808
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
10868
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
10869
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
10870
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
10809
10871
  #end
10810
10872
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
10811
10873
  #set( $query = {
10812
10874
  \\"expression\\": $expression,
10875
+ \\"expressionNames\\": $expressionNames,
10813
10876
  \\"expressionValues\\": $expressionValues
10814
10877
  } )
10815
10878
  #else
@@ -10840,7 +10903,10 @@ $util.unauthorized()
10840
10903
  #end
10841
10904
  ## [End] Get Response template. **",
10842
10905
  "Query.getComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10843
- $util.unauthorized()
10906
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
10907
+ $util.unauthorized()
10908
+ #end
10909
+ $util.toJson({})
10844
10910
  ## [End] Sandbox Mode Disabled. **",
10845
10911
  "Query.getComment.req.vtl": "## [Start] Get Request template. **
10846
10912
  #set( $GetRequest = {
@@ -10849,14 +10915,17 @@ $util.unauthorized()
10849
10915
  } )
10850
10916
  #if( $ctx.stash.metadata.modelObjectKey )
10851
10917
  #set( $expression = \\"\\" )
10918
+ #set( $expressionNames = {} )
10852
10919
  #set( $expressionValues = {} )
10853
10920
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
10854
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
10855
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
10921
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
10922
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
10923
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
10856
10924
  #end
10857
10925
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
10858
10926
  #set( $query = {
10859
10927
  \\"expression\\": $expression,
10928
+ \\"expressionNames\\": $expressionNames,
10860
10929
  \\"expressionValues\\": $expressionValues
10861
10930
  } )
10862
10931
  #else
@@ -10887,7 +10956,10 @@ $util.unauthorized()
10887
10956
  #end
10888
10957
  ## [End] Get Response template. **",
10889
10958
  "Query.getEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10890
- $util.unauthorized()
10959
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
10960
+ $util.unauthorized()
10961
+ #end
10962
+ $util.toJson({})
10891
10963
  ## [End] Sandbox Mode Disabled. **",
10892
10964
  "Query.getEmail.req.vtl": "## [Start] Get Request template. **
10893
10965
  #set( $GetRequest = {
@@ -10896,14 +10968,17 @@ $util.unauthorized()
10896
10968
  } )
10897
10969
  #if( $ctx.stash.metadata.modelObjectKey )
10898
10970
  #set( $expression = \\"\\" )
10971
+ #set( $expressionNames = {} )
10899
10972
  #set( $expressionValues = {} )
10900
10973
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
10901
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
10902
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
10974
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
10975
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
10976
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
10903
10977
  #end
10904
10978
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
10905
10979
  #set( $query = {
10906
10980
  \\"expression\\": $expression,
10981
+ \\"expressionNames\\": $expressionNames,
10907
10982
  \\"expressionValues\\": $expressionValues
10908
10983
  } )
10909
10984
  #else
@@ -10934,7 +11009,10 @@ $util.unauthorized()
10934
11009
  #end
10935
11010
  ## [End] Get Response template. **",
10936
11011
  "Query.getEntity.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10937
- $util.unauthorized()
11012
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11013
+ $util.unauthorized()
11014
+ #end
11015
+ $util.toJson({})
10938
11016
  ## [End] Sandbox Mode Disabled. **",
10939
11017
  "Query.getEntity.req.vtl": "## [Start] Get Request template. **
10940
11018
  #set( $GetRequest = {
@@ -10943,14 +11021,17 @@ $util.unauthorized()
10943
11021
  } )
10944
11022
  #if( $ctx.stash.metadata.modelObjectKey )
10945
11023
  #set( $expression = \\"\\" )
11024
+ #set( $expressionNames = {} )
10946
11025
  #set( $expressionValues = {} )
10947
11026
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
10948
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
10949
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
11027
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
11028
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
11029
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
10950
11030
  #end
10951
11031
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
10952
11032
  #set( $query = {
10953
11033
  \\"expression\\": $expression,
11034
+ \\"expressionNames\\": $expressionNames,
10954
11035
  \\"expressionValues\\": $expressionValues
10955
11036
  } )
10956
11037
  #else
@@ -10981,7 +11062,10 @@ $util.unauthorized()
10981
11062
  #end
10982
11063
  ## [End] Get Response template. **",
10983
11064
  "Query.getPost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
10984
- $util.unauthorized()
11065
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11066
+ $util.unauthorized()
11067
+ #end
11068
+ $util.toJson({})
10985
11069
  ## [End] Sandbox Mode Disabled. **",
10986
11070
  "Query.getPost.req.vtl": "## [Start] Get Request template. **
10987
11071
  #set( $GetRequest = {
@@ -10990,14 +11074,17 @@ $util.unauthorized()
10990
11074
  } )
10991
11075
  #if( $ctx.stash.metadata.modelObjectKey )
10992
11076
  #set( $expression = \\"\\" )
11077
+ #set( $expressionNames = {} )
10993
11078
  #set( $expressionValues = {} )
10994
11079
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
10995
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
10996
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
11080
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
11081
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
11082
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
10997
11083
  #end
10998
11084
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
10999
11085
  #set( $query = {
11000
11086
  \\"expression\\": $expression,
11087
+ \\"expressionNames\\": $expressionNames,
11001
11088
  \\"expressionValues\\": $expressionValues
11002
11089
  } )
11003
11090
  #else
@@ -11028,7 +11115,10 @@ $util.unauthorized()
11028
11115
  #end
11029
11116
  ## [End] Get Response template. **",
11030
11117
  "Query.getRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11031
- $util.unauthorized()
11118
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11119
+ $util.unauthorized()
11120
+ #end
11121
+ $util.toJson({})
11032
11122
  ## [End] Sandbox Mode Disabled. **",
11033
11123
  "Query.getRequire.req.vtl": "## [Start] Get Request template. **
11034
11124
  #set( $GetRequest = {
@@ -11037,14 +11127,17 @@ $util.unauthorized()
11037
11127
  } )
11038
11128
  #if( $ctx.stash.metadata.modelObjectKey )
11039
11129
  #set( $expression = \\"\\" )
11130
+ #set( $expressionNames = {} )
11040
11131
  #set( $expressionValues = {} )
11041
11132
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
11042
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
11043
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
11133
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
11134
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
11135
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
11044
11136
  #end
11045
11137
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
11046
11138
  #set( $query = {
11047
11139
  \\"expression\\": $expression,
11140
+ \\"expressionNames\\": $expressionNames,
11048
11141
  \\"expressionValues\\": $expressionValues
11049
11142
  } )
11050
11143
  #else
@@ -11075,7 +11168,10 @@ $util.unauthorized()
11075
11168
  #end
11076
11169
  ## [End] Get Response template. **",
11077
11170
  "Query.getTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11078
- $util.unauthorized()
11171
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11172
+ $util.unauthorized()
11173
+ #end
11174
+ $util.toJson({})
11079
11175
  ## [End] Sandbox Mode Disabled. **",
11080
11176
  "Query.getTest.req.vtl": "## [Start] Get Request template. **
11081
11177
  #set( $GetRequest = {
@@ -11084,14 +11180,17 @@ $util.unauthorized()
11084
11180
  } )
11085
11181
  #if( $ctx.stash.metadata.modelObjectKey )
11086
11182
  #set( $expression = \\"\\" )
11183
+ #set( $expressionNames = {} )
11087
11184
  #set( $expressionValues = {} )
11088
11185
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
11089
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
11090
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
11186
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
11187
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
11188
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
11091
11189
  #end
11092
11190
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
11093
11191
  #set( $query = {
11094
11192
  \\"expression\\": $expression,
11193
+ \\"expressionNames\\": $expressionNames,
11095
11194
  \\"expressionValues\\": $expressionValues
11096
11195
  } )
11097
11196
  #else
@@ -11122,7 +11221,10 @@ $util.unauthorized()
11122
11221
  #end
11123
11222
  ## [End] Get Response template. **",
11124
11223
  "Query.getUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11125
- $util.unauthorized()
11224
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11225
+ $util.unauthorized()
11226
+ #end
11227
+ $util.toJson({})
11126
11228
  ## [End] Sandbox Mode Disabled. **",
11127
11229
  "Query.getUser.req.vtl": "## [Start] Get Request template. **
11128
11230
  #set( $GetRequest = {
@@ -11131,14 +11233,17 @@ $util.unauthorized()
11131
11233
  } )
11132
11234
  #if( $ctx.stash.metadata.modelObjectKey )
11133
11235
  #set( $expression = \\"\\" )
11236
+ #set( $expressionNames = {} )
11134
11237
  #set( $expressionValues = {} )
11135
11238
  #foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
11136
- #set( $expression = \\"$expression$item.key = :$item.key AND \\" )
11137
- $util.qr($expressionValues.put(\\":$item.key\\", $item.value))
11239
+ #set( $expression = \\"$expression#keyCount$velocityCount = :valueCount$velocityCount AND \\" )
11240
+ $util.qr($expressionNames.put(\\"#keyCount$velocityCount\\", $item.key))
11241
+ $util.qr($expressionValues.put(\\":valueCount$velocityCount\\", $item.value))
11138
11242
  #end
11139
11243
  #set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
11140
11244
  #set( $query = {
11141
11245
  \\"expression\\": $expression,
11246
+ \\"expressionNames\\": $expressionNames,
11142
11247
  \\"expressionValues\\": $expressionValues
11143
11248
  } )
11144
11249
  #else
@@ -11169,7 +11274,10 @@ $util.unauthorized()
11169
11274
  #end
11170
11275
  ## [End] Get Response template. **",
11171
11276
  "Query.listAuthors.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11172
- $util.unauthorized()
11277
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11278
+ $util.unauthorized()
11279
+ #end
11280
+ $util.toJson({})
11173
11281
  ## [End] Sandbox Mode Disabled. **",
11174
11282
  "Query.listAuthors.req.vtl": "## [Start] List Request. **
11175
11283
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -11183,9 +11291,9 @@ $util.unauthorized()
11183
11291
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
11184
11292
  #set( $filter = $ctx.stash.authFilter )
11185
11293
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
11186
- #set( $filter = [{
11294
+ #set( $filter = {
11187
11295
  \\"and\\": [$filter, $ctx.args.filter]
11188
- }] )
11296
+ } )
11189
11297
  #end
11190
11298
  #else
11191
11299
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -11225,7 +11333,10 @@ $util.toJson($ListRequest)
11225
11333
  #end
11226
11334
  ## [End] ResponseTemplate. **",
11227
11335
  "Query.listComments.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11228
- $util.unauthorized()
11336
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11337
+ $util.unauthorized()
11338
+ #end
11339
+ $util.toJson({})
11229
11340
  ## [End] Sandbox Mode Disabled. **",
11230
11341
  "Query.listComments.req.vtl": "## [Start] List Request. **
11231
11342
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -11239,9 +11350,9 @@ $util.unauthorized()
11239
11350
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
11240
11351
  #set( $filter = $ctx.stash.authFilter )
11241
11352
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
11242
- #set( $filter = [{
11353
+ #set( $filter = {
11243
11354
  \\"and\\": [$filter, $ctx.args.filter]
11244
- }] )
11355
+ } )
11245
11356
  #end
11246
11357
  #else
11247
11358
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -11281,7 +11392,10 @@ $util.toJson($ListRequest)
11281
11392
  #end
11282
11393
  ## [End] ResponseTemplate. **",
11283
11394
  "Query.listEmails.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11284
- $util.unauthorized()
11395
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11396
+ $util.unauthorized()
11397
+ #end
11398
+ $util.toJson({})
11285
11399
  ## [End] Sandbox Mode Disabled. **",
11286
11400
  "Query.listEmails.req.vtl": "## [Start] List Request. **
11287
11401
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -11295,9 +11409,9 @@ $util.unauthorized()
11295
11409
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
11296
11410
  #set( $filter = $ctx.stash.authFilter )
11297
11411
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
11298
- #set( $filter = [{
11412
+ #set( $filter = {
11299
11413
  \\"and\\": [$filter, $ctx.args.filter]
11300
- }] )
11414
+ } )
11301
11415
  #end
11302
11416
  #else
11303
11417
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -11337,7 +11451,10 @@ $util.toJson($ListRequest)
11337
11451
  #end
11338
11452
  ## [End] ResponseTemplate. **",
11339
11453
  "Query.listPosts.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11340
- $util.unauthorized()
11454
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11455
+ $util.unauthorized()
11456
+ #end
11457
+ $util.toJson({})
11341
11458
  ## [End] Sandbox Mode Disabled. **",
11342
11459
  "Query.listPosts.req.vtl": "## [Start] List Request. **
11343
11460
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -11351,9 +11468,9 @@ $util.unauthorized()
11351
11468
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
11352
11469
  #set( $filter = $ctx.stash.authFilter )
11353
11470
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
11354
- #set( $filter = [{
11471
+ #set( $filter = {
11355
11472
  \\"and\\": [$filter, $ctx.args.filter]
11356
- }] )
11473
+ } )
11357
11474
  #end
11358
11475
  #else
11359
11476
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -11393,7 +11510,10 @@ $util.toJson($ListRequest)
11393
11510
  #end
11394
11511
  ## [End] ResponseTemplate. **",
11395
11512
  "Query.listRequires.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11396
- $util.unauthorized()
11513
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11514
+ $util.unauthorized()
11515
+ #end
11516
+ $util.toJson({})
11397
11517
  ## [End] Sandbox Mode Disabled. **",
11398
11518
  "Query.listRequires.req.vtl": "## [Start] List Request. **
11399
11519
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -11407,9 +11527,9 @@ $util.unauthorized()
11407
11527
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
11408
11528
  #set( $filter = $ctx.stash.authFilter )
11409
11529
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
11410
- #set( $filter = [{
11530
+ #set( $filter = {
11411
11531
  \\"and\\": [$filter, $ctx.args.filter]
11412
- }] )
11532
+ } )
11413
11533
  #end
11414
11534
  #else
11415
11535
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -11449,7 +11569,10 @@ $util.toJson($ListRequest)
11449
11569
  #end
11450
11570
  ## [End] ResponseTemplate. **",
11451
11571
  "Query.listTests.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11452
- $util.unauthorized()
11572
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11573
+ $util.unauthorized()
11574
+ #end
11575
+ $util.toJson({})
11453
11576
  ## [End] Sandbox Mode Disabled. **",
11454
11577
  "Query.listTests.req.vtl": "## [Start] List Request. **
11455
11578
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -11463,9 +11586,9 @@ $util.unauthorized()
11463
11586
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
11464
11587
  #set( $filter = $ctx.stash.authFilter )
11465
11588
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
11466
- #set( $filter = [{
11589
+ #set( $filter = {
11467
11590
  \\"and\\": [$filter, $ctx.args.filter]
11468
- }] )
11591
+ } )
11469
11592
  #end
11470
11593
  #else
11471
11594
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -11505,7 +11628,10 @@ $util.toJson($ListRequest)
11505
11628
  #end
11506
11629
  ## [End] ResponseTemplate. **",
11507
11630
  "Query.listUsers.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11508
- $util.unauthorized()
11631
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11632
+ $util.unauthorized()
11633
+ #end
11634
+ $util.toJson({})
11509
11635
  ## [End] Sandbox Mode Disabled. **",
11510
11636
  "Query.listUsers.req.vtl": "## [Start] List Request. **
11511
11637
  #set( $limit = $util.defaultIfNull($context.args.limit, 100) )
@@ -11519,9 +11645,9 @@ $util.unauthorized()
11519
11645
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
11520
11646
  #set( $filter = $ctx.stash.authFilter )
11521
11647
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
11522
- #set( $filter = [{
11648
+ #set( $filter = {
11523
11649
  \\"and\\": [$filter, $ctx.args.filter]
11524
- }] )
11650
+ } )
11525
11651
  #end
11526
11652
  #else
11527
11653
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -11561,15 +11687,18 @@ $util.toJson($ListRequest)
11561
11687
  #end
11562
11688
  ## [End] ResponseTemplate. **",
11563
11689
  "Query.syncPosts.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11564
- $util.unauthorized()
11690
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11691
+ $util.unauthorized()
11692
+ #end
11693
+ $util.toJson({})
11565
11694
  ## [End] Sandbox Mode Disabled. **",
11566
11695
  "Query.syncPosts.req.vtl": "## [Start] Sync Request template. **
11567
11696
  #if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
11568
11697
  #set( $filter = $ctx.stash.authFilter )
11569
11698
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
11570
- #set( $filter = [{
11699
+ #set( $filter = {
11571
11700
  \\"and\\": [$filter, $ctx.args.filter]
11572
- }] )
11701
+ } )
11573
11702
  #end
11574
11703
  #else
11575
11704
  #if( !$util.isNullOrEmpty($ctx.args.filter) )
@@ -11606,7 +11735,10 @@ null
11606
11735
  #end
11607
11736
  ## [End] ResponseTemplate. **",
11608
11737
  "Subscription.onCreateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11609
- $util.unauthorized()
11738
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11739
+ $util.unauthorized()
11740
+ #end
11741
+ $util.toJson({})
11610
11742
  ## [End] Sandbox Mode Disabled. **",
11611
11743
  "Subscription.onCreateAuthor.req.vtl": "## [Start] Subscription Request template. **
11612
11744
  $util.toJson({
@@ -11614,11 +11746,14 @@ $util.toJson({
11614
11746
  \\"payload\\": {}
11615
11747
  })
11616
11748
  ## [End] Subscription Request template. **",
11617
- "Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Resonse template. **
11749
+ "Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Response template. **
11618
11750
  $util.toJson(null)
11619
- ## [End] Subscription Resonse template. **",
11751
+ ## [End] Subscription Response template. **",
11620
11752
  "Subscription.onCreateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11621
- $util.unauthorized()
11753
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11754
+ $util.unauthorized()
11755
+ #end
11756
+ $util.toJson({})
11622
11757
  ## [End] Sandbox Mode Disabled. **",
11623
11758
  "Subscription.onCreateComment.req.vtl": "## [Start] Subscription Request template. **
11624
11759
  $util.toJson({
@@ -11626,11 +11761,14 @@ $util.toJson({
11626
11761
  \\"payload\\": {}
11627
11762
  })
11628
11763
  ## [End] Subscription Request template. **",
11629
- "Subscription.onCreateComment.res.vtl": "## [Start] Subscription Resonse template. **
11764
+ "Subscription.onCreateComment.res.vtl": "## [Start] Subscription Response template. **
11630
11765
  $util.toJson(null)
11631
- ## [End] Subscription Resonse template. **",
11766
+ ## [End] Subscription Response template. **",
11632
11767
  "Subscription.onCreateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11633
- $util.unauthorized()
11768
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11769
+ $util.unauthorized()
11770
+ #end
11771
+ $util.toJson({})
11634
11772
  ## [End] Sandbox Mode Disabled. **",
11635
11773
  "Subscription.onCreateEmail.req.vtl": "## [Start] Subscription Request template. **
11636
11774
  $util.toJson({
@@ -11638,11 +11776,14 @@ $util.toJson({
11638
11776
  \\"payload\\": {}
11639
11777
  })
11640
11778
  ## [End] Subscription Request template. **",
11641
- "Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Resonse template. **
11779
+ "Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Response template. **
11642
11780
  $util.toJson(null)
11643
- ## [End] Subscription Resonse template. **",
11781
+ ## [End] Subscription Response template. **",
11644
11782
  "Subscription.onCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11645
- $util.unauthorized()
11783
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11784
+ $util.unauthorized()
11785
+ #end
11786
+ $util.toJson({})
11646
11787
  ## [End] Sandbox Mode Disabled. **",
11647
11788
  "Subscription.onCreatePost.req.vtl": "## [Start] Subscription Request template. **
11648
11789
  $util.toJson({
@@ -11650,11 +11791,14 @@ $util.toJson({
11650
11791
  \\"payload\\": {}
11651
11792
  })
11652
11793
  ## [End] Subscription Request template. **",
11653
- "Subscription.onCreatePost.res.vtl": "## [Start] Subscription Resonse template. **
11794
+ "Subscription.onCreatePost.res.vtl": "## [Start] Subscription Response template. **
11654
11795
  $util.toJson(null)
11655
- ## [End] Subscription Resonse template. **",
11796
+ ## [End] Subscription Response template. **",
11656
11797
  "Subscription.onCreateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11657
- $util.unauthorized()
11798
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11799
+ $util.unauthorized()
11800
+ #end
11801
+ $util.toJson({})
11658
11802
  ## [End] Sandbox Mode Disabled. **",
11659
11803
  "Subscription.onCreateRequire.req.vtl": "## [Start] Subscription Request template. **
11660
11804
  $util.toJson({
@@ -11662,11 +11806,14 @@ $util.toJson({
11662
11806
  \\"payload\\": {}
11663
11807
  })
11664
11808
  ## [End] Subscription Request template. **",
11665
- "Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Resonse template. **
11809
+ "Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Response template. **
11666
11810
  $util.toJson(null)
11667
- ## [End] Subscription Resonse template. **",
11811
+ ## [End] Subscription Response template. **",
11668
11812
  "Subscription.onCreateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11669
- $util.unauthorized()
11813
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11814
+ $util.unauthorized()
11815
+ #end
11816
+ $util.toJson({})
11670
11817
  ## [End] Sandbox Mode Disabled. **",
11671
11818
  "Subscription.onCreateTest.req.vtl": "## [Start] Subscription Request template. **
11672
11819
  $util.toJson({
@@ -11674,11 +11821,14 @@ $util.toJson({
11674
11821
  \\"payload\\": {}
11675
11822
  })
11676
11823
  ## [End] Subscription Request template. **",
11677
- "Subscription.onCreateTest.res.vtl": "## [Start] Subscription Resonse template. **
11824
+ "Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
11678
11825
  $util.toJson(null)
11679
- ## [End] Subscription Resonse template. **",
11826
+ ## [End] Subscription Response template. **",
11680
11827
  "Subscription.onCreateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11681
- $util.unauthorized()
11828
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11829
+ $util.unauthorized()
11830
+ #end
11831
+ $util.toJson({})
11682
11832
  ## [End] Sandbox Mode Disabled. **",
11683
11833
  "Subscription.onCreateUser.req.vtl": "## [Start] Subscription Request template. **
11684
11834
  $util.toJson({
@@ -11686,11 +11836,14 @@ $util.toJson({
11686
11836
  \\"payload\\": {}
11687
11837
  })
11688
11838
  ## [End] Subscription Request template. **",
11689
- "Subscription.onCreateUser.res.vtl": "## [Start] Subscription Resonse template. **
11839
+ "Subscription.onCreateUser.res.vtl": "## [Start] Subscription Response template. **
11690
11840
  $util.toJson(null)
11691
- ## [End] Subscription Resonse template. **",
11841
+ ## [End] Subscription Response template. **",
11692
11842
  "Subscription.onDeleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11693
- $util.unauthorized()
11843
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11844
+ $util.unauthorized()
11845
+ #end
11846
+ $util.toJson({})
11694
11847
  ## [End] Sandbox Mode Disabled. **",
11695
11848
  "Subscription.onDeleteAuthor.req.vtl": "## [Start] Subscription Request template. **
11696
11849
  $util.toJson({
@@ -11698,11 +11851,14 @@ $util.toJson({
11698
11851
  \\"payload\\": {}
11699
11852
  })
11700
11853
  ## [End] Subscription Request template. **",
11701
- "Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Resonse template. **
11854
+ "Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Response template. **
11702
11855
  $util.toJson(null)
11703
- ## [End] Subscription Resonse template. **",
11856
+ ## [End] Subscription Response template. **",
11704
11857
  "Subscription.onDeleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11705
- $util.unauthorized()
11858
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11859
+ $util.unauthorized()
11860
+ #end
11861
+ $util.toJson({})
11706
11862
  ## [End] Sandbox Mode Disabled. **",
11707
11863
  "Subscription.onDeleteComment.req.vtl": "## [Start] Subscription Request template. **
11708
11864
  $util.toJson({
@@ -11710,11 +11866,14 @@ $util.toJson({
11710
11866
  \\"payload\\": {}
11711
11867
  })
11712
11868
  ## [End] Subscription Request template. **",
11713
- "Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Resonse template. **
11869
+ "Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Response template. **
11714
11870
  $util.toJson(null)
11715
- ## [End] Subscription Resonse template. **",
11871
+ ## [End] Subscription Response template. **",
11716
11872
  "Subscription.onDeleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11717
- $util.unauthorized()
11873
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11874
+ $util.unauthorized()
11875
+ #end
11876
+ $util.toJson({})
11718
11877
  ## [End] Sandbox Mode Disabled. **",
11719
11878
  "Subscription.onDeleteEmail.req.vtl": "## [Start] Subscription Request template. **
11720
11879
  $util.toJson({
@@ -11722,11 +11881,14 @@ $util.toJson({
11722
11881
  \\"payload\\": {}
11723
11882
  })
11724
11883
  ## [End] Subscription Request template. **",
11725
- "Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Resonse template. **
11884
+ "Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Response template. **
11726
11885
  $util.toJson(null)
11727
- ## [End] Subscription Resonse template. **",
11886
+ ## [End] Subscription Response template. **",
11728
11887
  "Subscription.onDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11729
- $util.unauthorized()
11888
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11889
+ $util.unauthorized()
11890
+ #end
11891
+ $util.toJson({})
11730
11892
  ## [End] Sandbox Mode Disabled. **",
11731
11893
  "Subscription.onDeletePost.req.vtl": "## [Start] Subscription Request template. **
11732
11894
  $util.toJson({
@@ -11734,11 +11896,14 @@ $util.toJson({
11734
11896
  \\"payload\\": {}
11735
11897
  })
11736
11898
  ## [End] Subscription Request template. **",
11737
- "Subscription.onDeletePost.res.vtl": "## [Start] Subscription Resonse template. **
11899
+ "Subscription.onDeletePost.res.vtl": "## [Start] Subscription Response template. **
11738
11900
  $util.toJson(null)
11739
- ## [End] Subscription Resonse template. **",
11901
+ ## [End] Subscription Response template. **",
11740
11902
  "Subscription.onDeleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11741
- $util.unauthorized()
11903
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11904
+ $util.unauthorized()
11905
+ #end
11906
+ $util.toJson({})
11742
11907
  ## [End] Sandbox Mode Disabled. **",
11743
11908
  "Subscription.onDeleteRequire.req.vtl": "## [Start] Subscription Request template. **
11744
11909
  $util.toJson({
@@ -11746,11 +11911,14 @@ $util.toJson({
11746
11911
  \\"payload\\": {}
11747
11912
  })
11748
11913
  ## [End] Subscription Request template. **",
11749
- "Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Resonse template. **
11914
+ "Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Response template. **
11750
11915
  $util.toJson(null)
11751
- ## [End] Subscription Resonse template. **",
11916
+ ## [End] Subscription Response template. **",
11752
11917
  "Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11753
- $util.unauthorized()
11918
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11919
+ $util.unauthorized()
11920
+ #end
11921
+ $util.toJson({})
11754
11922
  ## [End] Sandbox Mode Disabled. **",
11755
11923
  "Subscription.onDeleteTest.req.vtl": "## [Start] Subscription Request template. **
11756
11924
  $util.toJson({
@@ -11758,11 +11926,14 @@ $util.toJson({
11758
11926
  \\"payload\\": {}
11759
11927
  })
11760
11928
  ## [End] Subscription Request template. **",
11761
- "Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Resonse template. **
11929
+ "Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
11762
11930
  $util.toJson(null)
11763
- ## [End] Subscription Resonse template. **",
11931
+ ## [End] Subscription Response template. **",
11764
11932
  "Subscription.onDeleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11765
- $util.unauthorized()
11933
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11934
+ $util.unauthorized()
11935
+ #end
11936
+ $util.toJson({})
11766
11937
  ## [End] Sandbox Mode Disabled. **",
11767
11938
  "Subscription.onDeleteUser.req.vtl": "## [Start] Subscription Request template. **
11768
11939
  $util.toJson({
@@ -11770,11 +11941,14 @@ $util.toJson({
11770
11941
  \\"payload\\": {}
11771
11942
  })
11772
11943
  ## [End] Subscription Request template. **",
11773
- "Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Resonse template. **
11944
+ "Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Response template. **
11774
11945
  $util.toJson(null)
11775
- ## [End] Subscription Resonse template. **",
11946
+ ## [End] Subscription Response template. **",
11776
11947
  "Subscription.onUpdateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11777
- $util.unauthorized()
11948
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11949
+ $util.unauthorized()
11950
+ #end
11951
+ $util.toJson({})
11778
11952
  ## [End] Sandbox Mode Disabled. **",
11779
11953
  "Subscription.onUpdateAuthor.req.vtl": "## [Start] Subscription Request template. **
11780
11954
  $util.toJson({
@@ -11782,11 +11956,14 @@ $util.toJson({
11782
11956
  \\"payload\\": {}
11783
11957
  })
11784
11958
  ## [End] Subscription Request template. **",
11785
- "Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Resonse template. **
11959
+ "Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Response template. **
11786
11960
  $util.toJson(null)
11787
- ## [End] Subscription Resonse template. **",
11961
+ ## [End] Subscription Response template. **",
11788
11962
  "Subscription.onUpdateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11789
- $util.unauthorized()
11963
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11964
+ $util.unauthorized()
11965
+ #end
11966
+ $util.toJson({})
11790
11967
  ## [End] Sandbox Mode Disabled. **",
11791
11968
  "Subscription.onUpdateComment.req.vtl": "## [Start] Subscription Request template. **
11792
11969
  $util.toJson({
@@ -11794,11 +11971,14 @@ $util.toJson({
11794
11971
  \\"payload\\": {}
11795
11972
  })
11796
11973
  ## [End] Subscription Request template. **",
11797
- "Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Resonse template. **
11974
+ "Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Response template. **
11798
11975
  $util.toJson(null)
11799
- ## [End] Subscription Resonse template. **",
11976
+ ## [End] Subscription Response template. **",
11800
11977
  "Subscription.onUpdateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11801
- $util.unauthorized()
11978
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11979
+ $util.unauthorized()
11980
+ #end
11981
+ $util.toJson({})
11802
11982
  ## [End] Sandbox Mode Disabled. **",
11803
11983
  "Subscription.onUpdateEmail.req.vtl": "## [Start] Subscription Request template. **
11804
11984
  $util.toJson({
@@ -11806,11 +11986,14 @@ $util.toJson({
11806
11986
  \\"payload\\": {}
11807
11987
  })
11808
11988
  ## [End] Subscription Request template. **",
11809
- "Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Resonse template. **
11989
+ "Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Response template. **
11810
11990
  $util.toJson(null)
11811
- ## [End] Subscription Resonse template. **",
11991
+ ## [End] Subscription Response template. **",
11812
11992
  "Subscription.onUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11813
- $util.unauthorized()
11993
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
11994
+ $util.unauthorized()
11995
+ #end
11996
+ $util.toJson({})
11814
11997
  ## [End] Sandbox Mode Disabled. **",
11815
11998
  "Subscription.onUpdatePost.req.vtl": "## [Start] Subscription Request template. **
11816
11999
  $util.toJson({
@@ -11818,11 +12001,14 @@ $util.toJson({
11818
12001
  \\"payload\\": {}
11819
12002
  })
11820
12003
  ## [End] Subscription Request template. **",
11821
- "Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Resonse template. **
12004
+ "Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Response template. **
11822
12005
  $util.toJson(null)
11823
- ## [End] Subscription Resonse template. **",
12006
+ ## [End] Subscription Response template. **",
11824
12007
  "Subscription.onUpdateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11825
- $util.unauthorized()
12008
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
12009
+ $util.unauthorized()
12010
+ #end
12011
+ $util.toJson({})
11826
12012
  ## [End] Sandbox Mode Disabled. **",
11827
12013
  "Subscription.onUpdateRequire.req.vtl": "## [Start] Subscription Request template. **
11828
12014
  $util.toJson({
@@ -11830,11 +12016,14 @@ $util.toJson({
11830
12016
  \\"payload\\": {}
11831
12017
  })
11832
12018
  ## [End] Subscription Request template. **",
11833
- "Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Resonse template. **
12019
+ "Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Response template. **
11834
12020
  $util.toJson(null)
11835
- ## [End] Subscription Resonse template. **",
12021
+ ## [End] Subscription Response template. **",
11836
12022
  "Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11837
- $util.unauthorized()
12023
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
12024
+ $util.unauthorized()
12025
+ #end
12026
+ $util.toJson({})
11838
12027
  ## [End] Sandbox Mode Disabled. **",
11839
12028
  "Subscription.onUpdateTest.req.vtl": "## [Start] Subscription Request template. **
11840
12029
  $util.toJson({
@@ -11842,11 +12031,14 @@ $util.toJson({
11842
12031
  \\"payload\\": {}
11843
12032
  })
11844
12033
  ## [End] Subscription Request template. **",
11845
- "Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Resonse template. **
12034
+ "Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
11846
12035
  $util.toJson(null)
11847
- ## [End] Subscription Resonse template. **",
12036
+ ## [End] Subscription Response template. **",
11848
12037
  "Subscription.onUpdateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
11849
- $util.unauthorized()
12038
+ #if( !$ctx.stash.get(\\"hasAuth\\") )
12039
+ $util.unauthorized()
12040
+ #end
12041
+ $util.toJson({})
11850
12042
  ## [End] Sandbox Mode Disabled. **",
11851
12043
  "Subscription.onUpdateUser.req.vtl": "## [Start] Subscription Request template. **
11852
12044
  $util.toJson({
@@ -11854,9 +12046,9 @@ $util.toJson({
11854
12046
  \\"payload\\": {}
11855
12047
  })
11856
12048
  ## [End] Subscription Request template. **",
11857
- "Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Resonse template. **
12049
+ "Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Response template. **
11858
12050
  $util.toJson(null)
11859
- ## [End] Subscription Resonse template. **",
12051
+ ## [End] Subscription Response template. **",
11860
12052
  }
11861
12053
  `;
11862
12054
 
@@ -11961,7 +12153,7 @@ enum ModelSortDirection {
11961
12153
  }
11962
12154
 
11963
12155
  type ModelPostConnection {
11964
- items: [Post]
12156
+ items: [Post!]!
11965
12157
  nextToken: String
11966
12158
  }
11967
12159
 
@@ -12024,25 +12216,6 @@ type Subscription {
12024
12216
 
12025
12217
  exports[`ModelTransformer: should have timestamps as nullable fields when the type makes it non-nullable 2`] = `
12026
12218
  "## [Start] Create Request template. **
12027
- ## Begin - key condition **
12028
- #if( $ctx.stash.metadata.modelObjectKey )
12029
- #set( $keyConditionExpr = {} )
12030
- #set( $keyConditionExprNames = {} )
12031
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
12032
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
12033
- \\"attributeExists\\": false
12034
- }))
12035
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
12036
- #end
12037
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
12038
- #else
12039
- $util.qr($ctx.stash.conditions.add({
12040
- \\"id\\": {
12041
- \\"attributeExists\\": false
12042
- }
12043
- }))
12044
- #end
12045
- ## End - key condition **
12046
12219
  ## Set the default values to put request **
12047
12220
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
12048
12221
  ## copy the values from input **
@@ -12243,25 +12416,6 @@ $util.toJson($UpdateItem)
12243
12416
 
12244
12417
  exports[`ModelTransformer: should not add default primary key when ID is defined 1`] = `
12245
12418
  "## [Start] Create Request template. **
12246
- ## Begin - key condition **
12247
- #if( $ctx.stash.metadata.modelObjectKey )
12248
- #set( $keyConditionExpr = {} )
12249
- #set( $keyConditionExprNames = {} )
12250
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
12251
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
12252
- \\"attributeExists\\": false
12253
- }))
12254
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
12255
- #end
12256
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
12257
- #else
12258
- $util.qr($ctx.stash.conditions.add({
12259
- \\"id\\": {
12260
- \\"attributeExists\\": false
12261
- }
12262
- }))
12263
- #end
12264
- ## End - key condition **
12265
12419
  ## Set the default values to put request **
12266
12420
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
12267
12421
  ## copy the values from input **
@@ -12536,7 +12690,7 @@ enum ModelSortDirection {
12536
12690
  }
12537
12691
 
12538
12692
  type ModelPostConnection {
12539
- items: [Post]
12693
+ items: [Post!]!
12540
12694
  nextToken: String
12541
12695
  }
12542
12696
 
@@ -12599,25 +12753,6 @@ type Subscription {
12599
12753
 
12600
12754
  exports[`ModelTransformer: should not to auto generate createdAt and updatedAt when the type in schema is not AWSDateTime 2`] = `
12601
12755
  "## [Start] Create Request template. **
12602
- ## Begin - key condition **
12603
- #if( $ctx.stash.metadata.modelObjectKey )
12604
- #set( $keyConditionExpr = {} )
12605
- #set( $keyConditionExprNames = {} )
12606
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
12607
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
12608
- \\"attributeExists\\": false
12609
- }))
12610
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
12611
- #end
12612
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
12613
- #else
12614
- $util.qr($ctx.stash.conditions.add({
12615
- \\"id\\": {
12616
- \\"attributeExists\\": false
12617
- }
12618
- }))
12619
- #end
12620
- ## End - key condition **
12621
12756
  ## Set the default values to put request **
12622
12757
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
12623
12758
  ## copy the values from input **
@@ -12915,7 +13050,7 @@ enum ModelSortDirection {
12915
13050
  }
12916
13051
 
12917
13052
  type ModelPostConnection {
12918
- items: [Post]
13053
+ items: [Post!]!
12919
13054
  nextToken: String
12920
13055
  }
12921
13056
 
@@ -12970,25 +13105,6 @@ type Subscription {
12970
13105
 
12971
13106
  exports[`ModelTransformer: should not to include createdAt and updatedAt field when timestamps is set to null 2`] = `
12972
13107
  "## [Start] Create Request template. **
12973
- ## Begin - key condition **
12974
- #if( $ctx.stash.metadata.modelObjectKey )
12975
- #set( $keyConditionExpr = {} )
12976
- #set( $keyConditionExprNames = {} )
12977
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
12978
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
12979
- \\"attributeExists\\": false
12980
- }))
12981
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
12982
- #end
12983
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
12984
- #else
12985
- $util.qr($ctx.stash.conditions.add({
12986
- \\"id\\": {
12987
- \\"attributeExists\\": false
12988
- }
12989
- }))
12990
- #end
12991
- ## End - key condition **
12992
13108
  ## Set the default values to put request **
12993
13109
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
12994
13110
  ## copy the values from input **
@@ -13288,7 +13404,7 @@ enum ModelSortDirection {
13288
13404
  }
13289
13405
 
13290
13406
  type ModelPostConnection {
13291
- items: [Post]
13407
+ items: [Post!]!
13292
13408
  nextToken: String
13293
13409
  }
13294
13410
 
@@ -13343,25 +13459,6 @@ type Subscription {
13343
13459
 
13344
13460
  exports[`ModelTransformer: should support timestamp parameters when generating pipelineFunctions and output schema 2`] = `
13345
13461
  "## [Start] Create Request template. **
13346
- ## Begin - key condition **
13347
- #if( $ctx.stash.metadata.modelObjectKey )
13348
- #set( $keyConditionExpr = {} )
13349
- #set( $keyConditionExprNames = {} )
13350
- #foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
13351
- $util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
13352
- \\"attributeExists\\": false
13353
- }))
13354
- $util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
13355
- #end
13356
- $util.qr($ctx.stash.conditions.add($keyConditionExpr))
13357
- #else
13358
- $util.qr($ctx.stash.conditions.add({
13359
- \\"id\\": {
13360
- \\"attributeExists\\": false
13361
- }
13362
- }))
13363
- #end
13364
- ## End - key condition **
13365
13462
  ## Set the default values to put request **
13366
13463
  #set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
13367
13464
  ## copy the values from input **