@aws-amplify/graphql-model-transformer 0.7.0-auth-dir-v-next.2 → 0.7.0-ext11.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.
- package/CHANGELOG.md +19 -17
- package/lib/graphql-model-transformer.d.ts +1 -0
- package/lib/graphql-model-transformer.d.ts.map +1 -1
- package/lib/graphql-model-transformer.js +23 -13
- package/lib/graphql-model-transformer.js.map +1 -1
- package/lib/graphql-types/query.js +1 -1
- package/lib/graphql-types/query.js.map +1 -1
- package/lib/resolvers/common.js +2 -2
- package/lib/resolvers/common.js.map +1 -1
- package/lib/resolvers/mutation.d.ts.map +1 -1
- package/lib/resolvers/mutation.js +0 -1
- package/lib/resolvers/mutation.js.map +1 -1
- package/lib/resolvers/query.d.ts.map +1 -1
- package/lib/resolvers/query.js +7 -5
- package/lib/resolvers/query.js.map +1 -1
- package/lib/resolvers/subscriptions.js +1 -1
- package/lib/resolvers/subscriptions.js.map +1 -1
- package/lib/wrappers/object-definition-wrapper.js +1 -1
- package/lib/wrappers/object-definition-wrapper.js.map +1 -1
- package/package.json +34 -32
- package/src/__tests__/__snapshots__/model-transformer.test.ts.snap +515 -796
- package/src/__tests__/model-transformer.test.ts +60 -7
- package/src/graphql-model-transformer.ts +23 -17
- package/src/graphql-types/query.ts +1 -1
- package/src/resolvers/common.ts +2 -2
- package/src/resolvers/mutation.ts +0 -3
- package/src/resolvers/query.ts +10 -11
- package/src/resolvers/subscriptions.ts +1 -1
- package/src/wrappers/object-definition-wrapper.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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
|
|
|
@@ -600,27 +600,9 @@ $util.toJson({
|
|
|
600
600
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
601
601
|
$util.unauthorized()
|
|
602
602
|
#end
|
|
603
|
+
$util.toJson({})
|
|
603
604
|
## [End] Sandbox Mode Disabled. **",
|
|
604
605
|
"Mutation.createAuthor.req.vtl": "## [Start] Create Request template. **
|
|
605
|
-
## Begin - key condition **
|
|
606
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
607
|
-
#set( $keyConditionExpr = {} )
|
|
608
|
-
#set( $keyConditionExprNames = {} )
|
|
609
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
610
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
611
|
-
\\"attributeExists\\": false
|
|
612
|
-
}))
|
|
613
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
614
|
-
#end
|
|
615
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
616
|
-
#else
|
|
617
|
-
$util.qr($ctx.stash.conditions.add({
|
|
618
|
-
\\"id\\": {
|
|
619
|
-
\\"attributeExists\\": false
|
|
620
|
-
}
|
|
621
|
-
}))
|
|
622
|
-
#end
|
|
623
|
-
## End - key condition **
|
|
624
606
|
## Set the default values to put request **
|
|
625
607
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
626
608
|
## copy the values from input **
|
|
@@ -708,27 +690,9 @@ $util.toJson({
|
|
|
708
690
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
709
691
|
$util.unauthorized()
|
|
710
692
|
#end
|
|
693
|
+
$util.toJson({})
|
|
711
694
|
## [End] Sandbox Mode Disabled. **",
|
|
712
695
|
"Mutation.createComment.req.vtl": "## [Start] Create Request template. **
|
|
713
|
-
## Begin - key condition **
|
|
714
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
715
|
-
#set( $keyConditionExpr = {} )
|
|
716
|
-
#set( $keyConditionExprNames = {} )
|
|
717
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
718
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
719
|
-
\\"attributeExists\\": false
|
|
720
|
-
}))
|
|
721
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
722
|
-
#end
|
|
723
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
724
|
-
#else
|
|
725
|
-
$util.qr($ctx.stash.conditions.add({
|
|
726
|
-
\\"id\\": {
|
|
727
|
-
\\"attributeExists\\": false
|
|
728
|
-
}
|
|
729
|
-
}))
|
|
730
|
-
#end
|
|
731
|
-
## End - key condition **
|
|
732
696
|
## Set the default values to put request **
|
|
733
697
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
734
698
|
## copy the values from input **
|
|
@@ -816,27 +780,9 @@ $util.toJson({
|
|
|
816
780
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
817
781
|
$util.unauthorized()
|
|
818
782
|
#end
|
|
783
|
+
$util.toJson({})
|
|
819
784
|
## [End] Sandbox Mode Disabled. **",
|
|
820
785
|
"Mutation.createEmail.req.vtl": "## [Start] Create Request template. **
|
|
821
|
-
## Begin - key condition **
|
|
822
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
823
|
-
#set( $keyConditionExpr = {} )
|
|
824
|
-
#set( $keyConditionExprNames = {} )
|
|
825
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
826
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
827
|
-
\\"attributeExists\\": false
|
|
828
|
-
}))
|
|
829
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
830
|
-
#end
|
|
831
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
832
|
-
#else
|
|
833
|
-
$util.qr($ctx.stash.conditions.add({
|
|
834
|
-
\\"id\\": {
|
|
835
|
-
\\"attributeExists\\": false
|
|
836
|
-
}
|
|
837
|
-
}))
|
|
838
|
-
#end
|
|
839
|
-
## End - key condition **
|
|
840
786
|
## Set the default values to put request **
|
|
841
787
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
842
788
|
## copy the values from input **
|
|
@@ -924,27 +870,9 @@ $util.toJson({
|
|
|
924
870
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
925
871
|
$util.unauthorized()
|
|
926
872
|
#end
|
|
873
|
+
$util.toJson({})
|
|
927
874
|
## [End] Sandbox Mode Disabled. **",
|
|
928
875
|
"Mutation.createPost.req.vtl": "## [Start] Create Request template. **
|
|
929
|
-
## Begin - key condition **
|
|
930
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
931
|
-
#set( $keyConditionExpr = {} )
|
|
932
|
-
#set( $keyConditionExprNames = {} )
|
|
933
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
934
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
935
|
-
\\"attributeExists\\": false
|
|
936
|
-
}))
|
|
937
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
938
|
-
#end
|
|
939
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
940
|
-
#else
|
|
941
|
-
$util.qr($ctx.stash.conditions.add({
|
|
942
|
-
\\"id\\": {
|
|
943
|
-
\\"attributeExists\\": false
|
|
944
|
-
}
|
|
945
|
-
}))
|
|
946
|
-
#end
|
|
947
|
-
## End - key condition **
|
|
948
876
|
## Set the default values to put request **
|
|
949
877
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
950
878
|
## copy the values from input **
|
|
@@ -1032,27 +960,9 @@ $util.toJson({
|
|
|
1032
960
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1033
961
|
$util.unauthorized()
|
|
1034
962
|
#end
|
|
963
|
+
$util.toJson({})
|
|
1035
964
|
## [End] Sandbox Mode Disabled. **",
|
|
1036
965
|
"Mutation.createRequire.req.vtl": "## [Start] Create Request template. **
|
|
1037
|
-
## Begin - key condition **
|
|
1038
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
1039
|
-
#set( $keyConditionExpr = {} )
|
|
1040
|
-
#set( $keyConditionExprNames = {} )
|
|
1041
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
1042
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
1043
|
-
\\"attributeExists\\": false
|
|
1044
|
-
}))
|
|
1045
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
1046
|
-
#end
|
|
1047
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
1048
|
-
#else
|
|
1049
|
-
$util.qr($ctx.stash.conditions.add({
|
|
1050
|
-
\\"id\\": {
|
|
1051
|
-
\\"attributeExists\\": false
|
|
1052
|
-
}
|
|
1053
|
-
}))
|
|
1054
|
-
#end
|
|
1055
|
-
## End - key condition **
|
|
1056
966
|
## Set the default values to put request **
|
|
1057
967
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
1058
968
|
## copy the values from input **
|
|
@@ -1140,27 +1050,9 @@ $util.toJson({
|
|
|
1140
1050
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1141
1051
|
$util.unauthorized()
|
|
1142
1052
|
#end
|
|
1053
|
+
$util.toJson({})
|
|
1143
1054
|
## [End] Sandbox Mode Disabled. **",
|
|
1144
1055
|
"Mutation.createTest.req.vtl": "## [Start] Create Request template. **
|
|
1145
|
-
## Begin - key condition **
|
|
1146
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
1147
|
-
#set( $keyConditionExpr = {} )
|
|
1148
|
-
#set( $keyConditionExprNames = {} )
|
|
1149
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
1150
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
1151
|
-
\\"attributeExists\\": false
|
|
1152
|
-
}))
|
|
1153
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
1154
|
-
#end
|
|
1155
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
1156
|
-
#else
|
|
1157
|
-
$util.qr($ctx.stash.conditions.add({
|
|
1158
|
-
\\"id\\": {
|
|
1159
|
-
\\"attributeExists\\": false
|
|
1160
|
-
}
|
|
1161
|
-
}))
|
|
1162
|
-
#end
|
|
1163
|
-
## End - key condition **
|
|
1164
1056
|
## Set the default values to put request **
|
|
1165
1057
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
1166
1058
|
## copy the values from input **
|
|
@@ -1248,27 +1140,9 @@ $util.toJson({
|
|
|
1248
1140
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1249
1141
|
$util.unauthorized()
|
|
1250
1142
|
#end
|
|
1143
|
+
$util.toJson({})
|
|
1251
1144
|
## [End] Sandbox Mode Disabled. **",
|
|
1252
1145
|
"Mutation.createUser.req.vtl": "## [Start] Create Request template. **
|
|
1253
|
-
## Begin - key condition **
|
|
1254
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
1255
|
-
#set( $keyConditionExpr = {} )
|
|
1256
|
-
#set( $keyConditionExprNames = {} )
|
|
1257
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
1258
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
1259
|
-
\\"attributeExists\\": false
|
|
1260
|
-
}))
|
|
1261
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
1262
|
-
#end
|
|
1263
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
1264
|
-
#else
|
|
1265
|
-
$util.qr($ctx.stash.conditions.add({
|
|
1266
|
-
\\"id\\": {
|
|
1267
|
-
\\"attributeExists\\": false
|
|
1268
|
-
}
|
|
1269
|
-
}))
|
|
1270
|
-
#end
|
|
1271
|
-
## End - key condition **
|
|
1272
1146
|
## Set the default values to put request **
|
|
1273
1147
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
1274
1148
|
## copy the values from input **
|
|
@@ -1356,27 +1230,9 @@ $util.toJson({
|
|
|
1356
1230
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1357
1231
|
$util.unauthorized()
|
|
1358
1232
|
#end
|
|
1233
|
+
$util.toJson({})
|
|
1359
1234
|
## [End] Sandbox Mode Disabled. **",
|
|
1360
1235
|
"Mutation.customCreatePost.req.vtl": "## [Start] Create Request template. **
|
|
1361
|
-
## Begin - key condition **
|
|
1362
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
1363
|
-
#set( $keyConditionExpr = {} )
|
|
1364
|
-
#set( $keyConditionExprNames = {} )
|
|
1365
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
1366
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
1367
|
-
\\"attributeExists\\": false
|
|
1368
|
-
}))
|
|
1369
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
1370
|
-
#end
|
|
1371
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
1372
|
-
#else
|
|
1373
|
-
$util.qr($ctx.stash.conditions.add({
|
|
1374
|
-
\\"id\\": {
|
|
1375
|
-
\\"attributeExists\\": false
|
|
1376
|
-
}
|
|
1377
|
-
}))
|
|
1378
|
-
#end
|
|
1379
|
-
## End - key condition **
|
|
1380
1236
|
## Set the default values to put request **
|
|
1381
1237
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
1382
1238
|
## copy the values from input **
|
|
@@ -1453,6 +1309,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
1453
1309
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1454
1310
|
$util.unauthorized()
|
|
1455
1311
|
#end
|
|
1312
|
+
$util.toJson({})
|
|
1456
1313
|
## [End] Sandbox Mode Disabled. **",
|
|
1457
1314
|
"Mutation.customDeletePost.req.vtl": "## [Start] Delete Request template. **
|
|
1458
1315
|
#set( $DeleteRequest = {
|
|
@@ -1532,6 +1389,7 @@ $util.toJson({
|
|
|
1532
1389
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1533
1390
|
$util.unauthorized()
|
|
1534
1391
|
#end
|
|
1392
|
+
$util.toJson({})
|
|
1535
1393
|
## [End] Sandbox Mode Disabled. **",
|
|
1536
1394
|
"Mutation.customUpdatePost.req.vtl": "## [Start] Mutation Update resolver. **
|
|
1537
1395
|
## Set the default values to put request **
|
|
@@ -1674,6 +1532,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
1674
1532
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1675
1533
|
$util.unauthorized()
|
|
1676
1534
|
#end
|
|
1535
|
+
$util.toJson({})
|
|
1677
1536
|
## [End] Sandbox Mode Disabled. **",
|
|
1678
1537
|
"Mutation.deleteAuthor.req.vtl": "## [Start] Delete Request template. **
|
|
1679
1538
|
#set( $DeleteRequest = {
|
|
@@ -1744,6 +1603,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
1744
1603
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1745
1604
|
$util.unauthorized()
|
|
1746
1605
|
#end
|
|
1606
|
+
$util.toJson({})
|
|
1747
1607
|
## [End] Sandbox Mode Disabled. **",
|
|
1748
1608
|
"Mutation.deleteComment.req.vtl": "## [Start] Delete Request template. **
|
|
1749
1609
|
#set( $DeleteRequest = {
|
|
@@ -1814,6 +1674,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
1814
1674
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1815
1675
|
$util.unauthorized()
|
|
1816
1676
|
#end
|
|
1677
|
+
$util.toJson({})
|
|
1817
1678
|
## [End] Sandbox Mode Disabled. **",
|
|
1818
1679
|
"Mutation.deleteEmail.req.vtl": "## [Start] Delete Request template. **
|
|
1819
1680
|
#set( $DeleteRequest = {
|
|
@@ -1884,6 +1745,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
1884
1745
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1885
1746
|
$util.unauthorized()
|
|
1886
1747
|
#end
|
|
1748
|
+
$util.toJson({})
|
|
1887
1749
|
## [End] Sandbox Mode Disabled. **",
|
|
1888
1750
|
"Mutation.deletePost.req.vtl": "## [Start] Delete Request template. **
|
|
1889
1751
|
#set( $DeleteRequest = {
|
|
@@ -1955,6 +1817,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
1955
1817
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
1956
1818
|
$util.unauthorized()
|
|
1957
1819
|
#end
|
|
1820
|
+
$util.toJson({})
|
|
1958
1821
|
## [End] Sandbox Mode Disabled. **",
|
|
1959
1822
|
"Mutation.deleteRequire.req.vtl": "## [Start] Delete Request template. **
|
|
1960
1823
|
#set( $DeleteRequest = {
|
|
@@ -2025,6 +1888,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
2025
1888
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
2026
1889
|
$util.unauthorized()
|
|
2027
1890
|
#end
|
|
1891
|
+
$util.toJson({})
|
|
2028
1892
|
## [End] Sandbox Mode Disabled. **",
|
|
2029
1893
|
"Mutation.deleteTest.req.vtl": "## [Start] Delete Request template. **
|
|
2030
1894
|
#set( $DeleteRequest = {
|
|
@@ -2095,6 +1959,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
2095
1959
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
2096
1960
|
$util.unauthorized()
|
|
2097
1961
|
#end
|
|
1962
|
+
$util.toJson({})
|
|
2098
1963
|
## [End] Sandbox Mode Disabled. **",
|
|
2099
1964
|
"Mutation.deleteUser.req.vtl": "## [Start] Delete Request template. **
|
|
2100
1965
|
#set( $DeleteRequest = {
|
|
@@ -2174,6 +2039,7 @@ $util.toJson({
|
|
|
2174
2039
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
2175
2040
|
$util.unauthorized()
|
|
2176
2041
|
#end
|
|
2042
|
+
$util.toJson({})
|
|
2177
2043
|
## [End] Sandbox Mode Disabled. **",
|
|
2178
2044
|
"Mutation.updateAuthor.req.vtl": "## [Start] Mutation Update resolver. **
|
|
2179
2045
|
## Set the default values to put request **
|
|
@@ -2325,6 +2191,7 @@ $util.toJson({
|
|
|
2325
2191
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
2326
2192
|
$util.unauthorized()
|
|
2327
2193
|
#end
|
|
2194
|
+
$util.toJson({})
|
|
2328
2195
|
## [End] Sandbox Mode Disabled. **",
|
|
2329
2196
|
"Mutation.updateComment.req.vtl": "## [Start] Mutation Update resolver. **
|
|
2330
2197
|
## Set the default values to put request **
|
|
@@ -2476,6 +2343,7 @@ $util.toJson({
|
|
|
2476
2343
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
2477
2344
|
$util.unauthorized()
|
|
2478
2345
|
#end
|
|
2346
|
+
$util.toJson({})
|
|
2479
2347
|
## [End] Sandbox Mode Disabled. **",
|
|
2480
2348
|
"Mutation.updateEmail.req.vtl": "## [Start] Mutation Update resolver. **
|
|
2481
2349
|
## Set the default values to put request **
|
|
@@ -2627,6 +2495,7 @@ $util.toJson({
|
|
|
2627
2495
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
2628
2496
|
$util.unauthorized()
|
|
2629
2497
|
#end
|
|
2498
|
+
$util.toJson({})
|
|
2630
2499
|
## [End] Sandbox Mode Disabled. **",
|
|
2631
2500
|
"Mutation.updatePost.req.vtl": "## [Start] Mutation Update resolver. **
|
|
2632
2501
|
## Set the default values to put request **
|
|
@@ -2779,6 +2648,7 @@ $util.toJson({
|
|
|
2779
2648
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
2780
2649
|
$util.unauthorized()
|
|
2781
2650
|
#end
|
|
2651
|
+
$util.toJson({})
|
|
2782
2652
|
## [End] Sandbox Mode Disabled. **",
|
|
2783
2653
|
"Mutation.updateRequire.req.vtl": "## [Start] Mutation Update resolver. **
|
|
2784
2654
|
## Set the default values to put request **
|
|
@@ -2930,6 +2800,7 @@ $util.toJson({
|
|
|
2930
2800
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
2931
2801
|
$util.unauthorized()
|
|
2932
2802
|
#end
|
|
2803
|
+
$util.toJson({})
|
|
2933
2804
|
## [End] Sandbox Mode Disabled. **",
|
|
2934
2805
|
"Mutation.updateTest.req.vtl": "## [Start] Mutation Update resolver. **
|
|
2935
2806
|
## Set the default values to put request **
|
|
@@ -3081,6 +2952,7 @@ $util.toJson({
|
|
|
3081
2952
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3082
2953
|
$util.unauthorized()
|
|
3083
2954
|
#end
|
|
2955
|
+
$util.toJson({})
|
|
3084
2956
|
## [End] Sandbox Mode Disabled. **",
|
|
3085
2957
|
"Mutation.updateUser.req.vtl": "## [Start] Mutation Update resolver. **
|
|
3086
2958
|
## Set the default values to put request **
|
|
@@ -3223,6 +3095,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
3223
3095
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3224
3096
|
$util.unauthorized()
|
|
3225
3097
|
#end
|
|
3098
|
+
$util.toJson({})
|
|
3226
3099
|
## [End] Sandbox Mode Disabled. **",
|
|
3227
3100
|
"Query.customGetPost.req.vtl": "## [Start] Get Request template. **
|
|
3228
3101
|
#set( $GetRequest = {
|
|
@@ -3231,14 +3104,17 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
3231
3104
|
} )
|
|
3232
3105
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3233
3106
|
#set( $expression = \\"\\" )
|
|
3107
|
+
#set( $expressionNames = {} )
|
|
3234
3108
|
#set( $expressionValues = {} )
|
|
3235
3109
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3236
|
-
#set( $expression = \\"$expression$
|
|
3237
|
-
$util.qr($
|
|
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))
|
|
3238
3113
|
#end
|
|
3239
3114
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3240
3115
|
#set( $query = {
|
|
3241
3116
|
\\"expression\\": $expression,
|
|
3117
|
+
\\"expressionNames\\": $expressionNames,
|
|
3242
3118
|
\\"expressionValues\\": $expressionValues
|
|
3243
3119
|
} )
|
|
3244
3120
|
#else
|
|
@@ -3272,6 +3148,7 @@ $util.unauthorized()
|
|
|
3272
3148
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3273
3149
|
$util.unauthorized()
|
|
3274
3150
|
#end
|
|
3151
|
+
$util.toJson({})
|
|
3275
3152
|
## [End] Sandbox Mode Disabled. **",
|
|
3276
3153
|
"Query.customListPost.req.vtl": "## [Start] List Request. **
|
|
3277
3154
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -3285,9 +3162,9 @@ $util.unauthorized()
|
|
|
3285
3162
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3286
3163
|
#set( $filter = $ctx.stash.authFilter )
|
|
3287
3164
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3288
|
-
#set( $filter =
|
|
3165
|
+
#set( $filter = {
|
|
3289
3166
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3290
|
-
}
|
|
3167
|
+
} )
|
|
3291
3168
|
#end
|
|
3292
3169
|
#else
|
|
3293
3170
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -3330,6 +3207,7 @@ $util.toJson($ListRequest)
|
|
|
3330
3207
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3331
3208
|
$util.unauthorized()
|
|
3332
3209
|
#end
|
|
3210
|
+
$util.toJson({})
|
|
3333
3211
|
## [End] Sandbox Mode Disabled. **",
|
|
3334
3212
|
"Query.getAuthor.req.vtl": "## [Start] Get Request template. **
|
|
3335
3213
|
#set( $GetRequest = {
|
|
@@ -3338,14 +3216,17 @@ $util.toJson($ListRequest)
|
|
|
3338
3216
|
} )
|
|
3339
3217
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3340
3218
|
#set( $expression = \\"\\" )
|
|
3219
|
+
#set( $expressionNames = {} )
|
|
3341
3220
|
#set( $expressionValues = {} )
|
|
3342
3221
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3343
|
-
#set( $expression = \\"$expression$
|
|
3344
|
-
$util.qr($
|
|
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))
|
|
3345
3225
|
#end
|
|
3346
3226
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3347
3227
|
#set( $query = {
|
|
3348
3228
|
\\"expression\\": $expression,
|
|
3229
|
+
\\"expressionNames\\": $expressionNames,
|
|
3349
3230
|
\\"expressionValues\\": $expressionValues
|
|
3350
3231
|
} )
|
|
3351
3232
|
#else
|
|
@@ -3379,6 +3260,7 @@ $util.unauthorized()
|
|
|
3379
3260
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3380
3261
|
$util.unauthorized()
|
|
3381
3262
|
#end
|
|
3263
|
+
$util.toJson({})
|
|
3382
3264
|
## [End] Sandbox Mode Disabled. **",
|
|
3383
3265
|
"Query.getComment.req.vtl": "## [Start] Get Request template. **
|
|
3384
3266
|
#set( $GetRequest = {
|
|
@@ -3387,14 +3269,17 @@ $util.unauthorized()
|
|
|
3387
3269
|
} )
|
|
3388
3270
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3389
3271
|
#set( $expression = \\"\\" )
|
|
3272
|
+
#set( $expressionNames = {} )
|
|
3390
3273
|
#set( $expressionValues = {} )
|
|
3391
3274
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3392
|
-
#set( $expression = \\"$expression$
|
|
3393
|
-
$util.qr($
|
|
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))
|
|
3394
3278
|
#end
|
|
3395
3279
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3396
3280
|
#set( $query = {
|
|
3397
3281
|
\\"expression\\": $expression,
|
|
3282
|
+
\\"expressionNames\\": $expressionNames,
|
|
3398
3283
|
\\"expressionValues\\": $expressionValues
|
|
3399
3284
|
} )
|
|
3400
3285
|
#else
|
|
@@ -3428,6 +3313,7 @@ $util.unauthorized()
|
|
|
3428
3313
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3429
3314
|
$util.unauthorized()
|
|
3430
3315
|
#end
|
|
3316
|
+
$util.toJson({})
|
|
3431
3317
|
## [End] Sandbox Mode Disabled. **",
|
|
3432
3318
|
"Query.getEmail.req.vtl": "## [Start] Get Request template. **
|
|
3433
3319
|
#set( $GetRequest = {
|
|
@@ -3436,14 +3322,17 @@ $util.unauthorized()
|
|
|
3436
3322
|
} )
|
|
3437
3323
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3438
3324
|
#set( $expression = \\"\\" )
|
|
3325
|
+
#set( $expressionNames = {} )
|
|
3439
3326
|
#set( $expressionValues = {} )
|
|
3440
3327
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3441
|
-
#set( $expression = \\"$expression$
|
|
3442
|
-
$util.qr($
|
|
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))
|
|
3443
3331
|
#end
|
|
3444
3332
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3445
3333
|
#set( $query = {
|
|
3446
3334
|
\\"expression\\": $expression,
|
|
3335
|
+
\\"expressionNames\\": $expressionNames,
|
|
3447
3336
|
\\"expressionValues\\": $expressionValues
|
|
3448
3337
|
} )
|
|
3449
3338
|
#else
|
|
@@ -3477,6 +3366,7 @@ $util.unauthorized()
|
|
|
3477
3366
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3478
3367
|
$util.unauthorized()
|
|
3479
3368
|
#end
|
|
3369
|
+
$util.toJson({})
|
|
3480
3370
|
## [End] Sandbox Mode Disabled. **",
|
|
3481
3371
|
"Query.getEntity.req.vtl": "## [Start] Get Request template. **
|
|
3482
3372
|
#set( $GetRequest = {
|
|
@@ -3485,14 +3375,17 @@ $util.unauthorized()
|
|
|
3485
3375
|
} )
|
|
3486
3376
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3487
3377
|
#set( $expression = \\"\\" )
|
|
3378
|
+
#set( $expressionNames = {} )
|
|
3488
3379
|
#set( $expressionValues = {} )
|
|
3489
3380
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3490
|
-
#set( $expression = \\"$expression$
|
|
3491
|
-
$util.qr($
|
|
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))
|
|
3492
3384
|
#end
|
|
3493
3385
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3494
3386
|
#set( $query = {
|
|
3495
3387
|
\\"expression\\": $expression,
|
|
3388
|
+
\\"expressionNames\\": $expressionNames,
|
|
3496
3389
|
\\"expressionValues\\": $expressionValues
|
|
3497
3390
|
} )
|
|
3498
3391
|
#else
|
|
@@ -3526,6 +3419,7 @@ $util.unauthorized()
|
|
|
3526
3419
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3527
3420
|
$util.unauthorized()
|
|
3528
3421
|
#end
|
|
3422
|
+
$util.toJson({})
|
|
3529
3423
|
## [End] Sandbox Mode Disabled. **",
|
|
3530
3424
|
"Query.getPost.req.vtl": "## [Start] Get Request template. **
|
|
3531
3425
|
#set( $GetRequest = {
|
|
@@ -3534,14 +3428,17 @@ $util.unauthorized()
|
|
|
3534
3428
|
} )
|
|
3535
3429
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3536
3430
|
#set( $expression = \\"\\" )
|
|
3431
|
+
#set( $expressionNames = {} )
|
|
3537
3432
|
#set( $expressionValues = {} )
|
|
3538
3433
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3539
|
-
#set( $expression = \\"$expression$
|
|
3540
|
-
$util.qr($
|
|
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))
|
|
3541
3437
|
#end
|
|
3542
3438
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3543
3439
|
#set( $query = {
|
|
3544
3440
|
\\"expression\\": $expression,
|
|
3441
|
+
\\"expressionNames\\": $expressionNames,
|
|
3545
3442
|
\\"expressionValues\\": $expressionValues
|
|
3546
3443
|
} )
|
|
3547
3444
|
#else
|
|
@@ -3575,6 +3472,7 @@ $util.unauthorized()
|
|
|
3575
3472
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3576
3473
|
$util.unauthorized()
|
|
3577
3474
|
#end
|
|
3475
|
+
$util.toJson({})
|
|
3578
3476
|
## [End] Sandbox Mode Disabled. **",
|
|
3579
3477
|
"Query.getRequire.req.vtl": "## [Start] Get Request template. **
|
|
3580
3478
|
#set( $GetRequest = {
|
|
@@ -3583,14 +3481,17 @@ $util.unauthorized()
|
|
|
3583
3481
|
} )
|
|
3584
3482
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3585
3483
|
#set( $expression = \\"\\" )
|
|
3484
|
+
#set( $expressionNames = {} )
|
|
3586
3485
|
#set( $expressionValues = {} )
|
|
3587
3486
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3588
|
-
#set( $expression = \\"$expression$
|
|
3589
|
-
$util.qr($
|
|
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))
|
|
3590
3490
|
#end
|
|
3591
3491
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3592
3492
|
#set( $query = {
|
|
3593
3493
|
\\"expression\\": $expression,
|
|
3494
|
+
\\"expressionNames\\": $expressionNames,
|
|
3594
3495
|
\\"expressionValues\\": $expressionValues
|
|
3595
3496
|
} )
|
|
3596
3497
|
#else
|
|
@@ -3624,6 +3525,7 @@ $util.unauthorized()
|
|
|
3624
3525
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3625
3526
|
$util.unauthorized()
|
|
3626
3527
|
#end
|
|
3528
|
+
$util.toJson({})
|
|
3627
3529
|
## [End] Sandbox Mode Disabled. **",
|
|
3628
3530
|
"Query.getTest.req.vtl": "## [Start] Get Request template. **
|
|
3629
3531
|
#set( $GetRequest = {
|
|
@@ -3632,14 +3534,17 @@ $util.unauthorized()
|
|
|
3632
3534
|
} )
|
|
3633
3535
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3634
3536
|
#set( $expression = \\"\\" )
|
|
3537
|
+
#set( $expressionNames = {} )
|
|
3635
3538
|
#set( $expressionValues = {} )
|
|
3636
3539
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3637
|
-
#set( $expression = \\"$expression$
|
|
3638
|
-
$util.qr($
|
|
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))
|
|
3639
3543
|
#end
|
|
3640
3544
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3641
3545
|
#set( $query = {
|
|
3642
3546
|
\\"expression\\": $expression,
|
|
3547
|
+
\\"expressionNames\\": $expressionNames,
|
|
3643
3548
|
\\"expressionValues\\": $expressionValues
|
|
3644
3549
|
} )
|
|
3645
3550
|
#else
|
|
@@ -3673,6 +3578,7 @@ $util.unauthorized()
|
|
|
3673
3578
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3674
3579
|
$util.unauthorized()
|
|
3675
3580
|
#end
|
|
3581
|
+
$util.toJson({})
|
|
3676
3582
|
## [End] Sandbox Mode Disabled. **",
|
|
3677
3583
|
"Query.getUser.req.vtl": "## [Start] Get Request template. **
|
|
3678
3584
|
#set( $GetRequest = {
|
|
@@ -3681,14 +3587,17 @@ $util.unauthorized()
|
|
|
3681
3587
|
} )
|
|
3682
3588
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3683
3589
|
#set( $expression = \\"\\" )
|
|
3590
|
+
#set( $expressionNames = {} )
|
|
3684
3591
|
#set( $expressionValues = {} )
|
|
3685
3592
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3686
|
-
#set( $expression = \\"$expression$
|
|
3687
|
-
$util.qr($
|
|
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))
|
|
3688
3596
|
#end
|
|
3689
3597
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3690
3598
|
#set( $query = {
|
|
3691
3599
|
\\"expression\\": $expression,
|
|
3600
|
+
\\"expressionNames\\": $expressionNames,
|
|
3692
3601
|
\\"expressionValues\\": $expressionValues
|
|
3693
3602
|
} )
|
|
3694
3603
|
#else
|
|
@@ -3722,6 +3631,7 @@ $util.unauthorized()
|
|
|
3722
3631
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3723
3632
|
$util.unauthorized()
|
|
3724
3633
|
#end
|
|
3634
|
+
$util.toJson({})
|
|
3725
3635
|
## [End] Sandbox Mode Disabled. **",
|
|
3726
3636
|
"Query.listAuthors.req.vtl": "## [Start] List Request. **
|
|
3727
3637
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -3735,9 +3645,9 @@ $util.unauthorized()
|
|
|
3735
3645
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3736
3646
|
#set( $filter = $ctx.stash.authFilter )
|
|
3737
3647
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3738
|
-
#set( $filter =
|
|
3648
|
+
#set( $filter = {
|
|
3739
3649
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3740
|
-
}
|
|
3650
|
+
} )
|
|
3741
3651
|
#end
|
|
3742
3652
|
#else
|
|
3743
3653
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -3780,6 +3690,7 @@ $util.toJson($ListRequest)
|
|
|
3780
3690
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3781
3691
|
$util.unauthorized()
|
|
3782
3692
|
#end
|
|
3693
|
+
$util.toJson({})
|
|
3783
3694
|
## [End] Sandbox Mode Disabled. **",
|
|
3784
3695
|
"Query.listComments.req.vtl": "## [Start] List Request. **
|
|
3785
3696
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -3793,9 +3704,9 @@ $util.toJson($ListRequest)
|
|
|
3793
3704
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3794
3705
|
#set( $filter = $ctx.stash.authFilter )
|
|
3795
3706
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3796
|
-
#set( $filter =
|
|
3707
|
+
#set( $filter = {
|
|
3797
3708
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3798
|
-
}
|
|
3709
|
+
} )
|
|
3799
3710
|
#end
|
|
3800
3711
|
#else
|
|
3801
3712
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -3838,6 +3749,7 @@ $util.toJson($ListRequest)
|
|
|
3838
3749
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3839
3750
|
$util.unauthorized()
|
|
3840
3751
|
#end
|
|
3752
|
+
$util.toJson({})
|
|
3841
3753
|
## [End] Sandbox Mode Disabled. **",
|
|
3842
3754
|
"Query.listEmails.req.vtl": "## [Start] List Request. **
|
|
3843
3755
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -3851,9 +3763,9 @@ $util.toJson($ListRequest)
|
|
|
3851
3763
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3852
3764
|
#set( $filter = $ctx.stash.authFilter )
|
|
3853
3765
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3854
|
-
#set( $filter =
|
|
3766
|
+
#set( $filter = {
|
|
3855
3767
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3856
|
-
}
|
|
3768
|
+
} )
|
|
3857
3769
|
#end
|
|
3858
3770
|
#else
|
|
3859
3771
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -3896,6 +3808,7 @@ $util.toJson($ListRequest)
|
|
|
3896
3808
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3897
3809
|
$util.unauthorized()
|
|
3898
3810
|
#end
|
|
3811
|
+
$util.toJson({})
|
|
3899
3812
|
## [End] Sandbox Mode Disabled. **",
|
|
3900
3813
|
"Query.listPosts.req.vtl": "## [Start] List Request. **
|
|
3901
3814
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -3909,9 +3822,9 @@ $util.toJson($ListRequest)
|
|
|
3909
3822
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3910
3823
|
#set( $filter = $ctx.stash.authFilter )
|
|
3911
3824
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3912
|
-
#set( $filter =
|
|
3825
|
+
#set( $filter = {
|
|
3913
3826
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3914
|
-
}
|
|
3827
|
+
} )
|
|
3915
3828
|
#end
|
|
3916
3829
|
#else
|
|
3917
3830
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -3954,6 +3867,7 @@ $util.toJson($ListRequest)
|
|
|
3954
3867
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
3955
3868
|
$util.unauthorized()
|
|
3956
3869
|
#end
|
|
3870
|
+
$util.toJson({})
|
|
3957
3871
|
## [End] Sandbox Mode Disabled. **",
|
|
3958
3872
|
"Query.listRequires.req.vtl": "## [Start] List Request. **
|
|
3959
3873
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -3967,9 +3881,9 @@ $util.toJson($ListRequest)
|
|
|
3967
3881
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3968
3882
|
#set( $filter = $ctx.stash.authFilter )
|
|
3969
3883
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3970
|
-
#set( $filter =
|
|
3884
|
+
#set( $filter = {
|
|
3971
3885
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3972
|
-
}
|
|
3886
|
+
} )
|
|
3973
3887
|
#end
|
|
3974
3888
|
#else
|
|
3975
3889
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -4012,6 +3926,7 @@ $util.toJson($ListRequest)
|
|
|
4012
3926
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4013
3927
|
$util.unauthorized()
|
|
4014
3928
|
#end
|
|
3929
|
+
$util.toJson({})
|
|
4015
3930
|
## [End] Sandbox Mode Disabled. **",
|
|
4016
3931
|
"Query.listTests.req.vtl": "## [Start] List Request. **
|
|
4017
3932
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -4025,9 +3940,9 @@ $util.toJson($ListRequest)
|
|
|
4025
3940
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
4026
3941
|
#set( $filter = $ctx.stash.authFilter )
|
|
4027
3942
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
4028
|
-
#set( $filter =
|
|
3943
|
+
#set( $filter = {
|
|
4029
3944
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
4030
|
-
}
|
|
3945
|
+
} )
|
|
4031
3946
|
#end
|
|
4032
3947
|
#else
|
|
4033
3948
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -4070,6 +3985,7 @@ $util.toJson($ListRequest)
|
|
|
4070
3985
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4071
3986
|
$util.unauthorized()
|
|
4072
3987
|
#end
|
|
3988
|
+
$util.toJson({})
|
|
4073
3989
|
## [End] Sandbox Mode Disabled. **",
|
|
4074
3990
|
"Query.listUsers.req.vtl": "## [Start] List Request. **
|
|
4075
3991
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -4083,9 +3999,9 @@ $util.toJson($ListRequest)
|
|
|
4083
3999
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
4084
4000
|
#set( $filter = $ctx.stash.authFilter )
|
|
4085
4001
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
4086
|
-
#set( $filter =
|
|
4002
|
+
#set( $filter = {
|
|
4087
4003
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
4088
|
-
}
|
|
4004
|
+
} )
|
|
4089
4005
|
#end
|
|
4090
4006
|
#else
|
|
4091
4007
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -4128,14 +4044,15 @@ $util.toJson($ListRequest)
|
|
|
4128
4044
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4129
4045
|
$util.unauthorized()
|
|
4130
4046
|
#end
|
|
4047
|
+
$util.toJson({})
|
|
4131
4048
|
## [End] Sandbox Mode Disabled. **",
|
|
4132
4049
|
"Query.syncPosts.req.vtl": "## [Start] Sync Request template. **
|
|
4133
4050
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
4134
4051
|
#set( $filter = $ctx.stash.authFilter )
|
|
4135
4052
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
4136
|
-
#set( $filter =
|
|
4053
|
+
#set( $filter = {
|
|
4137
4054
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
4138
|
-
}
|
|
4055
|
+
} )
|
|
4139
4056
|
#end
|
|
4140
4057
|
#else
|
|
4141
4058
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -4175,6 +4092,7 @@ null
|
|
|
4175
4092
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4176
4093
|
$util.unauthorized()
|
|
4177
4094
|
#end
|
|
4095
|
+
$util.toJson({})
|
|
4178
4096
|
## [End] Sandbox Mode Disabled. **",
|
|
4179
4097
|
"Subscription.onCreateAuthor.req.vtl": "## [Start] Subscription Request template. **
|
|
4180
4098
|
$util.toJson({
|
|
@@ -4182,13 +4100,14 @@ $util.toJson({
|
|
|
4182
4100
|
\\"payload\\": {}
|
|
4183
4101
|
})
|
|
4184
4102
|
## [End] Subscription Request template. **",
|
|
4185
|
-
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription
|
|
4103
|
+
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
4186
4104
|
$util.toJson(null)
|
|
4187
|
-
## [End] Subscription
|
|
4105
|
+
## [End] Subscription Response template. **",
|
|
4188
4106
|
"Subscription.onCreateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4189
4107
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4190
4108
|
$util.unauthorized()
|
|
4191
4109
|
#end
|
|
4110
|
+
$util.toJson({})
|
|
4192
4111
|
## [End] Sandbox Mode Disabled. **",
|
|
4193
4112
|
"Subscription.onCreateComment.req.vtl": "## [Start] Subscription Request template. **
|
|
4194
4113
|
$util.toJson({
|
|
@@ -4196,13 +4115,14 @@ $util.toJson({
|
|
|
4196
4115
|
\\"payload\\": {}
|
|
4197
4116
|
})
|
|
4198
4117
|
## [End] Subscription Request template. **",
|
|
4199
|
-
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription
|
|
4118
|
+
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
4200
4119
|
$util.toJson(null)
|
|
4201
|
-
## [End] Subscription
|
|
4120
|
+
## [End] Subscription Response template. **",
|
|
4202
4121
|
"Subscription.onCreateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4203
4122
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4204
4123
|
$util.unauthorized()
|
|
4205
4124
|
#end
|
|
4125
|
+
$util.toJson({})
|
|
4206
4126
|
## [End] Sandbox Mode Disabled. **",
|
|
4207
4127
|
"Subscription.onCreateEmail.req.vtl": "## [Start] Subscription Request template. **
|
|
4208
4128
|
$util.toJson({
|
|
@@ -4210,13 +4130,14 @@ $util.toJson({
|
|
|
4210
4130
|
\\"payload\\": {}
|
|
4211
4131
|
})
|
|
4212
4132
|
## [End] Subscription Request template. **",
|
|
4213
|
-
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription
|
|
4133
|
+
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
4214
4134
|
$util.toJson(null)
|
|
4215
|
-
## [End] Subscription
|
|
4135
|
+
## [End] Subscription Response template. **",
|
|
4216
4136
|
"Subscription.onCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4217
4137
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4218
4138
|
$util.unauthorized()
|
|
4219
4139
|
#end
|
|
4140
|
+
$util.toJson({})
|
|
4220
4141
|
## [End] Sandbox Mode Disabled. **",
|
|
4221
4142
|
"Subscription.onCreatePost.req.vtl": "## [Start] Subscription Request template. **
|
|
4222
4143
|
$util.toJson({
|
|
@@ -4224,13 +4145,14 @@ $util.toJson({
|
|
|
4224
4145
|
\\"payload\\": {}
|
|
4225
4146
|
})
|
|
4226
4147
|
## [End] Subscription Request template. **",
|
|
4227
|
-
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription
|
|
4148
|
+
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
4228
4149
|
$util.toJson(null)
|
|
4229
|
-
## [End] Subscription
|
|
4150
|
+
## [End] Subscription Response template. **",
|
|
4230
4151
|
"Subscription.onCreateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4231
4152
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4232
4153
|
$util.unauthorized()
|
|
4233
4154
|
#end
|
|
4155
|
+
$util.toJson({})
|
|
4234
4156
|
## [End] Sandbox Mode Disabled. **",
|
|
4235
4157
|
"Subscription.onCreateRequire.req.vtl": "## [Start] Subscription Request template. **
|
|
4236
4158
|
$util.toJson({
|
|
@@ -4238,13 +4160,14 @@ $util.toJson({
|
|
|
4238
4160
|
\\"payload\\": {}
|
|
4239
4161
|
})
|
|
4240
4162
|
## [End] Subscription Request template. **",
|
|
4241
|
-
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription
|
|
4163
|
+
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
4242
4164
|
$util.toJson(null)
|
|
4243
|
-
## [End] Subscription
|
|
4165
|
+
## [End] Subscription Response template. **",
|
|
4244
4166
|
"Subscription.onCreateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4245
4167
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4246
4168
|
$util.unauthorized()
|
|
4247
4169
|
#end
|
|
4170
|
+
$util.toJson({})
|
|
4248
4171
|
## [End] Sandbox Mode Disabled. **",
|
|
4249
4172
|
"Subscription.onCreateTest.req.vtl": "## [Start] Subscription Request template. **
|
|
4250
4173
|
$util.toJson({
|
|
@@ -4252,13 +4175,14 @@ $util.toJson({
|
|
|
4252
4175
|
\\"payload\\": {}
|
|
4253
4176
|
})
|
|
4254
4177
|
## [End] Subscription Request template. **",
|
|
4255
|
-
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription
|
|
4178
|
+
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
4256
4179
|
$util.toJson(null)
|
|
4257
|
-
## [End] Subscription
|
|
4180
|
+
## [End] Subscription Response template. **",
|
|
4258
4181
|
"Subscription.onCreateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4259
4182
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4260
4183
|
$util.unauthorized()
|
|
4261
4184
|
#end
|
|
4185
|
+
$util.toJson({})
|
|
4262
4186
|
## [End] Sandbox Mode Disabled. **",
|
|
4263
4187
|
"Subscription.onCreateUser.req.vtl": "## [Start] Subscription Request template. **
|
|
4264
4188
|
$util.toJson({
|
|
@@ -4266,13 +4190,14 @@ $util.toJson({
|
|
|
4266
4190
|
\\"payload\\": {}
|
|
4267
4191
|
})
|
|
4268
4192
|
## [End] Subscription Request template. **",
|
|
4269
|
-
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription
|
|
4193
|
+
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
4270
4194
|
$util.toJson(null)
|
|
4271
|
-
## [End] Subscription
|
|
4195
|
+
## [End] Subscription Response template. **",
|
|
4272
4196
|
"Subscription.onDeleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4273
4197
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4274
4198
|
$util.unauthorized()
|
|
4275
4199
|
#end
|
|
4200
|
+
$util.toJson({})
|
|
4276
4201
|
## [End] Sandbox Mode Disabled. **",
|
|
4277
4202
|
"Subscription.onDeleteAuthor.req.vtl": "## [Start] Subscription Request template. **
|
|
4278
4203
|
$util.toJson({
|
|
@@ -4280,13 +4205,14 @@ $util.toJson({
|
|
|
4280
4205
|
\\"payload\\": {}
|
|
4281
4206
|
})
|
|
4282
4207
|
## [End] Subscription Request template. **",
|
|
4283
|
-
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription
|
|
4208
|
+
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
4284
4209
|
$util.toJson(null)
|
|
4285
|
-
## [End] Subscription
|
|
4210
|
+
## [End] Subscription Response template. **",
|
|
4286
4211
|
"Subscription.onDeleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4287
4212
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4288
4213
|
$util.unauthorized()
|
|
4289
4214
|
#end
|
|
4215
|
+
$util.toJson({})
|
|
4290
4216
|
## [End] Sandbox Mode Disabled. **",
|
|
4291
4217
|
"Subscription.onDeleteComment.req.vtl": "## [Start] Subscription Request template. **
|
|
4292
4218
|
$util.toJson({
|
|
@@ -4294,13 +4220,14 @@ $util.toJson({
|
|
|
4294
4220
|
\\"payload\\": {}
|
|
4295
4221
|
})
|
|
4296
4222
|
## [End] Subscription Request template. **",
|
|
4297
|
-
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription
|
|
4223
|
+
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Response template. **
|
|
4298
4224
|
$util.toJson(null)
|
|
4299
|
-
## [End] Subscription
|
|
4225
|
+
## [End] Subscription Response template. **",
|
|
4300
4226
|
"Subscription.onDeleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4301
4227
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4302
4228
|
$util.unauthorized()
|
|
4303
4229
|
#end
|
|
4230
|
+
$util.toJson({})
|
|
4304
4231
|
## [End] Sandbox Mode Disabled. **",
|
|
4305
4232
|
"Subscription.onDeleteEmail.req.vtl": "## [Start] Subscription Request template. **
|
|
4306
4233
|
$util.toJson({
|
|
@@ -4308,13 +4235,14 @@ $util.toJson({
|
|
|
4308
4235
|
\\"payload\\": {}
|
|
4309
4236
|
})
|
|
4310
4237
|
## [End] Subscription Request template. **",
|
|
4311
|
-
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription
|
|
4238
|
+
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
4312
4239
|
$util.toJson(null)
|
|
4313
|
-
## [End] Subscription
|
|
4240
|
+
## [End] Subscription Response template. **",
|
|
4314
4241
|
"Subscription.onDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4315
4242
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4316
4243
|
$util.unauthorized()
|
|
4317
4244
|
#end
|
|
4245
|
+
$util.toJson({})
|
|
4318
4246
|
## [End] Sandbox Mode Disabled. **",
|
|
4319
4247
|
"Subscription.onDeletePost.req.vtl": "## [Start] Subscription Request template. **
|
|
4320
4248
|
$util.toJson({
|
|
@@ -4322,13 +4250,14 @@ $util.toJson({
|
|
|
4322
4250
|
\\"payload\\": {}
|
|
4323
4251
|
})
|
|
4324
4252
|
## [End] Subscription Request template. **",
|
|
4325
|
-
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription
|
|
4253
|
+
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription Response template. **
|
|
4326
4254
|
$util.toJson(null)
|
|
4327
|
-
## [End] Subscription
|
|
4255
|
+
## [End] Subscription Response template. **",
|
|
4328
4256
|
"Subscription.onDeleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4329
4257
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4330
4258
|
$util.unauthorized()
|
|
4331
4259
|
#end
|
|
4260
|
+
$util.toJson({})
|
|
4332
4261
|
## [End] Sandbox Mode Disabled. **",
|
|
4333
4262
|
"Subscription.onDeleteRequire.req.vtl": "## [Start] Subscription Request template. **
|
|
4334
4263
|
$util.toJson({
|
|
@@ -4336,13 +4265,14 @@ $util.toJson({
|
|
|
4336
4265
|
\\"payload\\": {}
|
|
4337
4266
|
})
|
|
4338
4267
|
## [End] Subscription Request template. **",
|
|
4339
|
-
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription
|
|
4268
|
+
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
4340
4269
|
$util.toJson(null)
|
|
4341
|
-
## [End] Subscription
|
|
4270
|
+
## [End] Subscription Response template. **",
|
|
4342
4271
|
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4343
4272
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4344
4273
|
$util.unauthorized()
|
|
4345
4274
|
#end
|
|
4275
|
+
$util.toJson({})
|
|
4346
4276
|
## [End] Sandbox Mode Disabled. **",
|
|
4347
4277
|
"Subscription.onDeleteTest.req.vtl": "## [Start] Subscription Request template. **
|
|
4348
4278
|
$util.toJson({
|
|
@@ -4350,13 +4280,14 @@ $util.toJson({
|
|
|
4350
4280
|
\\"payload\\": {}
|
|
4351
4281
|
})
|
|
4352
4282
|
## [End] Subscription Request template. **",
|
|
4353
|
-
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription
|
|
4283
|
+
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
|
|
4354
4284
|
$util.toJson(null)
|
|
4355
|
-
## [End] Subscription
|
|
4285
|
+
## [End] Subscription Response template. **",
|
|
4356
4286
|
"Subscription.onDeleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4357
4287
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4358
4288
|
$util.unauthorized()
|
|
4359
4289
|
#end
|
|
4290
|
+
$util.toJson({})
|
|
4360
4291
|
## [End] Sandbox Mode Disabled. **",
|
|
4361
4292
|
"Subscription.onDeleteUser.req.vtl": "## [Start] Subscription Request template. **
|
|
4362
4293
|
$util.toJson({
|
|
@@ -4364,13 +4295,14 @@ $util.toJson({
|
|
|
4364
4295
|
\\"payload\\": {}
|
|
4365
4296
|
})
|
|
4366
4297
|
## [End] Subscription Request template. **",
|
|
4367
|
-
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription
|
|
4298
|
+
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Response template. **
|
|
4368
4299
|
$util.toJson(null)
|
|
4369
|
-
## [End] Subscription
|
|
4300
|
+
## [End] Subscription Response template. **",
|
|
4370
4301
|
"Subscription.onUpdateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4371
4302
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4372
4303
|
$util.unauthorized()
|
|
4373
4304
|
#end
|
|
4305
|
+
$util.toJson({})
|
|
4374
4306
|
## [End] Sandbox Mode Disabled. **",
|
|
4375
4307
|
"Subscription.onUpdateAuthor.req.vtl": "## [Start] Subscription Request template. **
|
|
4376
4308
|
$util.toJson({
|
|
@@ -4378,13 +4310,14 @@ $util.toJson({
|
|
|
4378
4310
|
\\"payload\\": {}
|
|
4379
4311
|
})
|
|
4380
4312
|
## [End] Subscription Request template. **",
|
|
4381
|
-
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription
|
|
4313
|
+
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
4382
4314
|
$util.toJson(null)
|
|
4383
|
-
## [End] Subscription
|
|
4315
|
+
## [End] Subscription Response template. **",
|
|
4384
4316
|
"Subscription.onUpdateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4385
4317
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4386
4318
|
$util.unauthorized()
|
|
4387
4319
|
#end
|
|
4320
|
+
$util.toJson({})
|
|
4388
4321
|
## [End] Sandbox Mode Disabled. **",
|
|
4389
4322
|
"Subscription.onUpdateComment.req.vtl": "## [Start] Subscription Request template. **
|
|
4390
4323
|
$util.toJson({
|
|
@@ -4392,13 +4325,14 @@ $util.toJson({
|
|
|
4392
4325
|
\\"payload\\": {}
|
|
4393
4326
|
})
|
|
4394
4327
|
## [End] Subscription Request template. **",
|
|
4395
|
-
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription
|
|
4328
|
+
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
4396
4329
|
$util.toJson(null)
|
|
4397
|
-
## [End] Subscription
|
|
4330
|
+
## [End] Subscription Response template. **",
|
|
4398
4331
|
"Subscription.onUpdateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4399
4332
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4400
4333
|
$util.unauthorized()
|
|
4401
4334
|
#end
|
|
4335
|
+
$util.toJson({})
|
|
4402
4336
|
## [End] Sandbox Mode Disabled. **",
|
|
4403
4337
|
"Subscription.onUpdateEmail.req.vtl": "## [Start] Subscription Request template. **
|
|
4404
4338
|
$util.toJson({
|
|
@@ -4406,13 +4340,14 @@ $util.toJson({
|
|
|
4406
4340
|
\\"payload\\": {}
|
|
4407
4341
|
})
|
|
4408
4342
|
## [End] Subscription Request template. **",
|
|
4409
|
-
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription
|
|
4343
|
+
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
4410
4344
|
$util.toJson(null)
|
|
4411
|
-
## [End] Subscription
|
|
4345
|
+
## [End] Subscription Response template. **",
|
|
4412
4346
|
"Subscription.onUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4413
4347
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4414
4348
|
$util.unauthorized()
|
|
4415
4349
|
#end
|
|
4350
|
+
$util.toJson({})
|
|
4416
4351
|
## [End] Sandbox Mode Disabled. **",
|
|
4417
4352
|
"Subscription.onUpdatePost.req.vtl": "## [Start] Subscription Request template. **
|
|
4418
4353
|
$util.toJson({
|
|
@@ -4420,13 +4355,14 @@ $util.toJson({
|
|
|
4420
4355
|
\\"payload\\": {}
|
|
4421
4356
|
})
|
|
4422
4357
|
## [End] Subscription Request template. **",
|
|
4423
|
-
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription
|
|
4358
|
+
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
4424
4359
|
$util.toJson(null)
|
|
4425
|
-
## [End] Subscription
|
|
4360
|
+
## [End] Subscription Response template. **",
|
|
4426
4361
|
"Subscription.onUpdateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4427
4362
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4428
4363
|
$util.unauthorized()
|
|
4429
4364
|
#end
|
|
4365
|
+
$util.toJson({})
|
|
4430
4366
|
## [End] Sandbox Mode Disabled. **",
|
|
4431
4367
|
"Subscription.onUpdateRequire.req.vtl": "## [Start] Subscription Request template. **
|
|
4432
4368
|
$util.toJson({
|
|
@@ -4434,13 +4370,14 @@ $util.toJson({
|
|
|
4434
4370
|
\\"payload\\": {}
|
|
4435
4371
|
})
|
|
4436
4372
|
## [End] Subscription Request template. **",
|
|
4437
|
-
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription
|
|
4373
|
+
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
4438
4374
|
$util.toJson(null)
|
|
4439
|
-
## [End] Subscription
|
|
4375
|
+
## [End] Subscription Response template. **",
|
|
4440
4376
|
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4441
4377
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4442
4378
|
$util.unauthorized()
|
|
4443
4379
|
#end
|
|
4380
|
+
$util.toJson({})
|
|
4444
4381
|
## [End] Sandbox Mode Disabled. **",
|
|
4445
4382
|
"Subscription.onUpdateTest.req.vtl": "## [Start] Subscription Request template. **
|
|
4446
4383
|
$util.toJson({
|
|
@@ -4448,13 +4385,14 @@ $util.toJson({
|
|
|
4448
4385
|
\\"payload\\": {}
|
|
4449
4386
|
})
|
|
4450
4387
|
## [End] Subscription Request template. **",
|
|
4451
|
-
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription
|
|
4388
|
+
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
4452
4389
|
$util.toJson(null)
|
|
4453
|
-
## [End] Subscription
|
|
4390
|
+
## [End] Subscription Response template. **",
|
|
4454
4391
|
"Subscription.onUpdateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4455
4392
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4456
4393
|
$util.unauthorized()
|
|
4457
4394
|
#end
|
|
4395
|
+
$util.toJson({})
|
|
4458
4396
|
## [End] Sandbox Mode Disabled. **",
|
|
4459
4397
|
"Subscription.onUpdateUser.req.vtl": "## [Start] Subscription Request template. **
|
|
4460
4398
|
$util.toJson({
|
|
@@ -4462,13 +4400,13 @@ $util.toJson({
|
|
|
4462
4400
|
\\"payload\\": {}
|
|
4463
4401
|
})
|
|
4464
4402
|
## [End] Subscription Request template. **",
|
|
4465
|
-
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription
|
|
4403
|
+
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
4466
4404
|
$util.toJson(null)
|
|
4467
|
-
## [End] Subscription
|
|
4405
|
+
## [End] Subscription Response template. **",
|
|
4468
4406
|
}
|
|
4469
4407
|
`;
|
|
4470
4408
|
|
|
4471
|
-
exports[`ModelTransformer: should generate sync resolver with ConflictHandlerType.
|
|
4409
|
+
exports[`ModelTransformer: should generate sync resolver with ConflictHandlerType.LAMBDA 1`] = `
|
|
4472
4410
|
Object {
|
|
4473
4411
|
"Mutation.createAuthor.init.1.req.vtl": "## [Start] Initialization default values. **
|
|
4474
4412
|
$util.qr($ctx.stash.put(\\"defaultValues\\", $util.defaultIfNull($ctx.stash.defaultValues, {})))
|
|
@@ -4485,27 +4423,9 @@ $util.toJson({
|
|
|
4485
4423
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4486
4424
|
$util.unauthorized()
|
|
4487
4425
|
#end
|
|
4426
|
+
$util.toJson({})
|
|
4488
4427
|
## [End] Sandbox Mode Disabled. **",
|
|
4489
4428
|
"Mutation.createAuthor.req.vtl": "## [Start] Create Request template. **
|
|
4490
|
-
## Begin - key condition **
|
|
4491
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
4492
|
-
#set( $keyConditionExpr = {} )
|
|
4493
|
-
#set( $keyConditionExprNames = {} )
|
|
4494
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
4495
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
4496
|
-
\\"attributeExists\\": false
|
|
4497
|
-
}))
|
|
4498
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
4499
|
-
#end
|
|
4500
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
4501
|
-
#else
|
|
4502
|
-
$util.qr($ctx.stash.conditions.add({
|
|
4503
|
-
\\"id\\": {
|
|
4504
|
-
\\"attributeExists\\": false
|
|
4505
|
-
}
|
|
4506
|
-
}))
|
|
4507
|
-
#end
|
|
4508
|
-
## End - key condition **
|
|
4509
4429
|
## Set the default values to put request **
|
|
4510
4430
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
4511
4431
|
## copy the values from input **
|
|
@@ -4593,27 +4513,9 @@ $util.toJson({
|
|
|
4593
4513
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4594
4514
|
$util.unauthorized()
|
|
4595
4515
|
#end
|
|
4516
|
+
$util.toJson({})
|
|
4596
4517
|
## [End] Sandbox Mode Disabled. **",
|
|
4597
4518
|
"Mutation.createComment.req.vtl": "## [Start] Create Request template. **
|
|
4598
|
-
## Begin - key condition **
|
|
4599
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
4600
|
-
#set( $keyConditionExpr = {} )
|
|
4601
|
-
#set( $keyConditionExprNames = {} )
|
|
4602
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
4603
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
4604
|
-
\\"attributeExists\\": false
|
|
4605
|
-
}))
|
|
4606
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
4607
|
-
#end
|
|
4608
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
4609
|
-
#else
|
|
4610
|
-
$util.qr($ctx.stash.conditions.add({
|
|
4611
|
-
\\"id\\": {
|
|
4612
|
-
\\"attributeExists\\": false
|
|
4613
|
-
}
|
|
4614
|
-
}))
|
|
4615
|
-
#end
|
|
4616
|
-
## End - key condition **
|
|
4617
4519
|
## Set the default values to put request **
|
|
4618
4520
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
4619
4521
|
## copy the values from input **
|
|
@@ -4701,27 +4603,9 @@ $util.toJson({
|
|
|
4701
4603
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4702
4604
|
$util.unauthorized()
|
|
4703
4605
|
#end
|
|
4606
|
+
$util.toJson({})
|
|
4704
4607
|
## [End] Sandbox Mode Disabled. **",
|
|
4705
4608
|
"Mutation.createEmail.req.vtl": "## [Start] Create Request template. **
|
|
4706
|
-
## Begin - key condition **
|
|
4707
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
4708
|
-
#set( $keyConditionExpr = {} )
|
|
4709
|
-
#set( $keyConditionExprNames = {} )
|
|
4710
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
4711
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
4712
|
-
\\"attributeExists\\": false
|
|
4713
|
-
}))
|
|
4714
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
4715
|
-
#end
|
|
4716
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
4717
|
-
#else
|
|
4718
|
-
$util.qr($ctx.stash.conditions.add({
|
|
4719
|
-
\\"id\\": {
|
|
4720
|
-
\\"attributeExists\\": false
|
|
4721
|
-
}
|
|
4722
|
-
}))
|
|
4723
|
-
#end
|
|
4724
|
-
## End - key condition **
|
|
4725
4609
|
## Set the default values to put request **
|
|
4726
4610
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
4727
4611
|
## copy the values from input **
|
|
@@ -4809,27 +4693,9 @@ $util.toJson({
|
|
|
4809
4693
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4810
4694
|
$util.unauthorized()
|
|
4811
4695
|
#end
|
|
4696
|
+
$util.toJson({})
|
|
4812
4697
|
## [End] Sandbox Mode Disabled. **",
|
|
4813
4698
|
"Mutation.createPost.req.vtl": "## [Start] Create Request template. **
|
|
4814
|
-
## Begin - key condition **
|
|
4815
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
4816
|
-
#set( $keyConditionExpr = {} )
|
|
4817
|
-
#set( $keyConditionExprNames = {} )
|
|
4818
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
4819
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
4820
|
-
\\"attributeExists\\": false
|
|
4821
|
-
}))
|
|
4822
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
4823
|
-
#end
|
|
4824
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
4825
|
-
#else
|
|
4826
|
-
$util.qr($ctx.stash.conditions.add({
|
|
4827
|
-
\\"id\\": {
|
|
4828
|
-
\\"attributeExists\\": false
|
|
4829
|
-
}
|
|
4830
|
-
}))
|
|
4831
|
-
#end
|
|
4832
|
-
## End - key condition **
|
|
4833
4699
|
## Set the default values to put request **
|
|
4834
4700
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
4835
4701
|
## copy the values from input **
|
|
@@ -4917,27 +4783,9 @@ $util.toJson({
|
|
|
4917
4783
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4918
4784
|
$util.unauthorized()
|
|
4919
4785
|
#end
|
|
4786
|
+
$util.toJson({})
|
|
4920
4787
|
## [End] Sandbox Mode Disabled. **",
|
|
4921
4788
|
"Mutation.createRequire.req.vtl": "## [Start] Create Request template. **
|
|
4922
|
-
## Begin - key condition **
|
|
4923
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
4924
|
-
#set( $keyConditionExpr = {} )
|
|
4925
|
-
#set( $keyConditionExprNames = {} )
|
|
4926
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
4927
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
4928
|
-
\\"attributeExists\\": false
|
|
4929
|
-
}))
|
|
4930
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
4931
|
-
#end
|
|
4932
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
4933
|
-
#else
|
|
4934
|
-
$util.qr($ctx.stash.conditions.add({
|
|
4935
|
-
\\"id\\": {
|
|
4936
|
-
\\"attributeExists\\": false
|
|
4937
|
-
}
|
|
4938
|
-
}))
|
|
4939
|
-
#end
|
|
4940
|
-
## End - key condition **
|
|
4941
4789
|
## Set the default values to put request **
|
|
4942
4790
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
4943
4791
|
## copy the values from input **
|
|
@@ -5025,27 +4873,9 @@ $util.toJson({
|
|
|
5025
4873
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5026
4874
|
$util.unauthorized()
|
|
5027
4875
|
#end
|
|
4876
|
+
$util.toJson({})
|
|
5028
4877
|
## [End] Sandbox Mode Disabled. **",
|
|
5029
4878
|
"Mutation.createTest.req.vtl": "## [Start] Create Request template. **
|
|
5030
|
-
## Begin - key condition **
|
|
5031
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
5032
|
-
#set( $keyConditionExpr = {} )
|
|
5033
|
-
#set( $keyConditionExprNames = {} )
|
|
5034
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
5035
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
5036
|
-
\\"attributeExists\\": false
|
|
5037
|
-
}))
|
|
5038
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
5039
|
-
#end
|
|
5040
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
5041
|
-
#else
|
|
5042
|
-
$util.qr($ctx.stash.conditions.add({
|
|
5043
|
-
\\"id\\": {
|
|
5044
|
-
\\"attributeExists\\": false
|
|
5045
|
-
}
|
|
5046
|
-
}))
|
|
5047
|
-
#end
|
|
5048
|
-
## End - key condition **
|
|
5049
4879
|
## Set the default values to put request **
|
|
5050
4880
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
5051
4881
|
## copy the values from input **
|
|
@@ -5133,27 +4963,9 @@ $util.toJson({
|
|
|
5133
4963
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5134
4964
|
$util.unauthorized()
|
|
5135
4965
|
#end
|
|
4966
|
+
$util.toJson({})
|
|
5136
4967
|
## [End] Sandbox Mode Disabled. **",
|
|
5137
4968
|
"Mutation.createUser.req.vtl": "## [Start] Create Request template. **
|
|
5138
|
-
## Begin - key condition **
|
|
5139
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
5140
|
-
#set( $keyConditionExpr = {} )
|
|
5141
|
-
#set( $keyConditionExprNames = {} )
|
|
5142
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
5143
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
5144
|
-
\\"attributeExists\\": false
|
|
5145
|
-
}))
|
|
5146
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
5147
|
-
#end
|
|
5148
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
5149
|
-
#else
|
|
5150
|
-
$util.qr($ctx.stash.conditions.add({
|
|
5151
|
-
\\"id\\": {
|
|
5152
|
-
\\"attributeExists\\": false
|
|
5153
|
-
}
|
|
5154
|
-
}))
|
|
5155
|
-
#end
|
|
5156
|
-
## End - key condition **
|
|
5157
4969
|
## Set the default values to put request **
|
|
5158
4970
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
5159
4971
|
## copy the values from input **
|
|
@@ -5241,27 +5053,9 @@ $util.toJson({
|
|
|
5241
5053
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5242
5054
|
$util.unauthorized()
|
|
5243
5055
|
#end
|
|
5056
|
+
$util.toJson({})
|
|
5244
5057
|
## [End] Sandbox Mode Disabled. **",
|
|
5245
5058
|
"Mutation.customCreatePost.req.vtl": "## [Start] Create Request template. **
|
|
5246
|
-
## Begin - key condition **
|
|
5247
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
5248
|
-
#set( $keyConditionExpr = {} )
|
|
5249
|
-
#set( $keyConditionExprNames = {} )
|
|
5250
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
5251
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
5252
|
-
\\"attributeExists\\": false
|
|
5253
|
-
}))
|
|
5254
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
5255
|
-
#end
|
|
5256
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
5257
|
-
#else
|
|
5258
|
-
$util.qr($ctx.stash.conditions.add({
|
|
5259
|
-
\\"id\\": {
|
|
5260
|
-
\\"attributeExists\\": false
|
|
5261
|
-
}
|
|
5262
|
-
}))
|
|
5263
|
-
#end
|
|
5264
|
-
## End - key condition **
|
|
5265
5059
|
## Set the default values to put request **
|
|
5266
5060
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
5267
5061
|
## copy the values from input **
|
|
@@ -5338,6 +5132,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
5338
5132
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5339
5133
|
$util.unauthorized()
|
|
5340
5134
|
#end
|
|
5135
|
+
$util.toJson({})
|
|
5341
5136
|
## [End] Sandbox Mode Disabled. **",
|
|
5342
5137
|
"Mutation.customDeletePost.req.vtl": "## [Start] Delete Request template. **
|
|
5343
5138
|
#set( $DeleteRequest = {
|
|
@@ -5417,6 +5212,7 @@ $util.toJson({
|
|
|
5417
5212
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5418
5213
|
$util.unauthorized()
|
|
5419
5214
|
#end
|
|
5215
|
+
$util.toJson({})
|
|
5420
5216
|
## [End] Sandbox Mode Disabled. **",
|
|
5421
5217
|
"Mutation.customUpdatePost.req.vtl": "## [Start] Mutation Update resolver. **
|
|
5422
5218
|
## Set the default values to put request **
|
|
@@ -5559,6 +5355,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
5559
5355
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5560
5356
|
$util.unauthorized()
|
|
5561
5357
|
#end
|
|
5358
|
+
$util.toJson({})
|
|
5562
5359
|
## [End] Sandbox Mode Disabled. **",
|
|
5563
5360
|
"Mutation.deleteAuthor.req.vtl": "## [Start] Delete Request template. **
|
|
5564
5361
|
#set( $DeleteRequest = {
|
|
@@ -5629,6 +5426,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
5629
5426
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5630
5427
|
$util.unauthorized()
|
|
5631
5428
|
#end
|
|
5429
|
+
$util.toJson({})
|
|
5632
5430
|
## [End] Sandbox Mode Disabled. **",
|
|
5633
5431
|
"Mutation.deleteComment.req.vtl": "## [Start] Delete Request template. **
|
|
5634
5432
|
#set( $DeleteRequest = {
|
|
@@ -5699,6 +5497,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
5699
5497
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5700
5498
|
$util.unauthorized()
|
|
5701
5499
|
#end
|
|
5500
|
+
$util.toJson({})
|
|
5702
5501
|
## [End] Sandbox Mode Disabled. **",
|
|
5703
5502
|
"Mutation.deleteEmail.req.vtl": "## [Start] Delete Request template. **
|
|
5704
5503
|
#set( $DeleteRequest = {
|
|
@@ -5769,6 +5568,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
5769
5568
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5770
5569
|
$util.unauthorized()
|
|
5771
5570
|
#end
|
|
5571
|
+
$util.toJson({})
|
|
5772
5572
|
## [End] Sandbox Mode Disabled. **",
|
|
5773
5573
|
"Mutation.deletePost.req.vtl": "## [Start] Delete Request template. **
|
|
5774
5574
|
#set( $DeleteRequest = {
|
|
@@ -5840,6 +5640,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
5840
5640
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5841
5641
|
$util.unauthorized()
|
|
5842
5642
|
#end
|
|
5643
|
+
$util.toJson({})
|
|
5843
5644
|
## [End] Sandbox Mode Disabled. **",
|
|
5844
5645
|
"Mutation.deleteRequire.req.vtl": "## [Start] Delete Request template. **
|
|
5845
5646
|
#set( $DeleteRequest = {
|
|
@@ -5910,6 +5711,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
5910
5711
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5911
5712
|
$util.unauthorized()
|
|
5912
5713
|
#end
|
|
5714
|
+
$util.toJson({})
|
|
5913
5715
|
## [End] Sandbox Mode Disabled. **",
|
|
5914
5716
|
"Mutation.deleteTest.req.vtl": "## [Start] Delete Request template. **
|
|
5915
5717
|
#set( $DeleteRequest = {
|
|
@@ -5980,6 +5782,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
5980
5782
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
5981
5783
|
$util.unauthorized()
|
|
5982
5784
|
#end
|
|
5785
|
+
$util.toJson({})
|
|
5983
5786
|
## [End] Sandbox Mode Disabled. **",
|
|
5984
5787
|
"Mutation.deleteUser.req.vtl": "## [Start] Delete Request template. **
|
|
5985
5788
|
#set( $DeleteRequest = {
|
|
@@ -6059,6 +5862,7 @@ $util.toJson({
|
|
|
6059
5862
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
6060
5863
|
$util.unauthorized()
|
|
6061
5864
|
#end
|
|
5865
|
+
$util.toJson({})
|
|
6062
5866
|
## [End] Sandbox Mode Disabled. **",
|
|
6063
5867
|
"Mutation.updateAuthor.req.vtl": "## [Start] Mutation Update resolver. **
|
|
6064
5868
|
## Set the default values to put request **
|
|
@@ -6210,6 +6014,7 @@ $util.toJson({
|
|
|
6210
6014
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
6211
6015
|
$util.unauthorized()
|
|
6212
6016
|
#end
|
|
6017
|
+
$util.toJson({})
|
|
6213
6018
|
## [End] Sandbox Mode Disabled. **",
|
|
6214
6019
|
"Mutation.updateComment.req.vtl": "## [Start] Mutation Update resolver. **
|
|
6215
6020
|
## Set the default values to put request **
|
|
@@ -6361,6 +6166,7 @@ $util.toJson({
|
|
|
6361
6166
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
6362
6167
|
$util.unauthorized()
|
|
6363
6168
|
#end
|
|
6169
|
+
$util.toJson({})
|
|
6364
6170
|
## [End] Sandbox Mode Disabled. **",
|
|
6365
6171
|
"Mutation.updateEmail.req.vtl": "## [Start] Mutation Update resolver. **
|
|
6366
6172
|
## Set the default values to put request **
|
|
@@ -6512,6 +6318,7 @@ $util.toJson({
|
|
|
6512
6318
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
6513
6319
|
$util.unauthorized()
|
|
6514
6320
|
#end
|
|
6321
|
+
$util.toJson({})
|
|
6515
6322
|
## [End] Sandbox Mode Disabled. **",
|
|
6516
6323
|
"Mutation.updatePost.req.vtl": "## [Start] Mutation Update resolver. **
|
|
6517
6324
|
## Set the default values to put request **
|
|
@@ -6664,6 +6471,7 @@ $util.toJson({
|
|
|
6664
6471
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
6665
6472
|
$util.unauthorized()
|
|
6666
6473
|
#end
|
|
6474
|
+
$util.toJson({})
|
|
6667
6475
|
## [End] Sandbox Mode Disabled. **",
|
|
6668
6476
|
"Mutation.updateRequire.req.vtl": "## [Start] Mutation Update resolver. **
|
|
6669
6477
|
## Set the default values to put request **
|
|
@@ -6815,6 +6623,7 @@ $util.toJson({
|
|
|
6815
6623
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
6816
6624
|
$util.unauthorized()
|
|
6817
6625
|
#end
|
|
6626
|
+
$util.toJson({})
|
|
6818
6627
|
## [End] Sandbox Mode Disabled. **",
|
|
6819
6628
|
"Mutation.updateTest.req.vtl": "## [Start] Mutation Update resolver. **
|
|
6820
6629
|
## Set the default values to put request **
|
|
@@ -6966,6 +6775,7 @@ $util.toJson({
|
|
|
6966
6775
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
6967
6776
|
$util.unauthorized()
|
|
6968
6777
|
#end
|
|
6778
|
+
$util.toJson({})
|
|
6969
6779
|
## [End] Sandbox Mode Disabled. **",
|
|
6970
6780
|
"Mutation.updateUser.req.vtl": "## [Start] Mutation Update resolver. **
|
|
6971
6781
|
## Set the default values to put request **
|
|
@@ -7108,6 +6918,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
7108
6918
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7109
6919
|
$util.unauthorized()
|
|
7110
6920
|
#end
|
|
6921
|
+
$util.toJson({})
|
|
7111
6922
|
## [End] Sandbox Mode Disabled. **",
|
|
7112
6923
|
"Query.customGetPost.req.vtl": "## [Start] Get Request template. **
|
|
7113
6924
|
#set( $GetRequest = {
|
|
@@ -7116,14 +6927,17 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
7116
6927
|
} )
|
|
7117
6928
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7118
6929
|
#set( $expression = \\"\\" )
|
|
6930
|
+
#set( $expressionNames = {} )
|
|
7119
6931
|
#set( $expressionValues = {} )
|
|
7120
6932
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7121
|
-
#set( $expression = \\"$expression$
|
|
7122
|
-
$util.qr($
|
|
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))
|
|
7123
6936
|
#end
|
|
7124
6937
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7125
6938
|
#set( $query = {
|
|
7126
6939
|
\\"expression\\": $expression,
|
|
6940
|
+
\\"expressionNames\\": $expressionNames,
|
|
7127
6941
|
\\"expressionValues\\": $expressionValues
|
|
7128
6942
|
} )
|
|
7129
6943
|
#else
|
|
@@ -7157,6 +6971,7 @@ $util.unauthorized()
|
|
|
7157
6971
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7158
6972
|
$util.unauthorized()
|
|
7159
6973
|
#end
|
|
6974
|
+
$util.toJson({})
|
|
7160
6975
|
## [End] Sandbox Mode Disabled. **",
|
|
7161
6976
|
"Query.customListPost.req.vtl": "## [Start] List Request. **
|
|
7162
6977
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -7170,9 +6985,9 @@ $util.unauthorized()
|
|
|
7170
6985
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7171
6986
|
#set( $filter = $ctx.stash.authFilter )
|
|
7172
6987
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7173
|
-
#set( $filter =
|
|
6988
|
+
#set( $filter = {
|
|
7174
6989
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7175
|
-
}
|
|
6990
|
+
} )
|
|
7176
6991
|
#end
|
|
7177
6992
|
#else
|
|
7178
6993
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7215,6 +7030,7 @@ $util.toJson($ListRequest)
|
|
|
7215
7030
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7216
7031
|
$util.unauthorized()
|
|
7217
7032
|
#end
|
|
7033
|
+
$util.toJson({})
|
|
7218
7034
|
## [End] Sandbox Mode Disabled. **",
|
|
7219
7035
|
"Query.getAuthor.req.vtl": "## [Start] Get Request template. **
|
|
7220
7036
|
#set( $GetRequest = {
|
|
@@ -7223,14 +7039,17 @@ $util.toJson($ListRequest)
|
|
|
7223
7039
|
} )
|
|
7224
7040
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7225
7041
|
#set( $expression = \\"\\" )
|
|
7042
|
+
#set( $expressionNames = {} )
|
|
7226
7043
|
#set( $expressionValues = {} )
|
|
7227
7044
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7228
|
-
#set( $expression = \\"$expression$
|
|
7229
|
-
$util.qr($
|
|
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))
|
|
7230
7048
|
#end
|
|
7231
7049
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7232
7050
|
#set( $query = {
|
|
7233
7051
|
\\"expression\\": $expression,
|
|
7052
|
+
\\"expressionNames\\": $expressionNames,
|
|
7234
7053
|
\\"expressionValues\\": $expressionValues
|
|
7235
7054
|
} )
|
|
7236
7055
|
#else
|
|
@@ -7264,6 +7083,7 @@ $util.unauthorized()
|
|
|
7264
7083
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7265
7084
|
$util.unauthorized()
|
|
7266
7085
|
#end
|
|
7086
|
+
$util.toJson({})
|
|
7267
7087
|
## [End] Sandbox Mode Disabled. **",
|
|
7268
7088
|
"Query.getComment.req.vtl": "## [Start] Get Request template. **
|
|
7269
7089
|
#set( $GetRequest = {
|
|
@@ -7272,14 +7092,17 @@ $util.unauthorized()
|
|
|
7272
7092
|
} )
|
|
7273
7093
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7274
7094
|
#set( $expression = \\"\\" )
|
|
7095
|
+
#set( $expressionNames = {} )
|
|
7275
7096
|
#set( $expressionValues = {} )
|
|
7276
7097
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7277
|
-
#set( $expression = \\"$expression$
|
|
7278
|
-
$util.qr($
|
|
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))
|
|
7279
7101
|
#end
|
|
7280
7102
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7281
7103
|
#set( $query = {
|
|
7282
7104
|
\\"expression\\": $expression,
|
|
7105
|
+
\\"expressionNames\\": $expressionNames,
|
|
7283
7106
|
\\"expressionValues\\": $expressionValues
|
|
7284
7107
|
} )
|
|
7285
7108
|
#else
|
|
@@ -7313,6 +7136,7 @@ $util.unauthorized()
|
|
|
7313
7136
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7314
7137
|
$util.unauthorized()
|
|
7315
7138
|
#end
|
|
7139
|
+
$util.toJson({})
|
|
7316
7140
|
## [End] Sandbox Mode Disabled. **",
|
|
7317
7141
|
"Query.getEmail.req.vtl": "## [Start] Get Request template. **
|
|
7318
7142
|
#set( $GetRequest = {
|
|
@@ -7321,14 +7145,17 @@ $util.unauthorized()
|
|
|
7321
7145
|
} )
|
|
7322
7146
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7323
7147
|
#set( $expression = \\"\\" )
|
|
7148
|
+
#set( $expressionNames = {} )
|
|
7324
7149
|
#set( $expressionValues = {} )
|
|
7325
7150
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7326
|
-
#set( $expression = \\"$expression$
|
|
7327
|
-
$util.qr($
|
|
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))
|
|
7328
7154
|
#end
|
|
7329
7155
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7330
7156
|
#set( $query = {
|
|
7331
7157
|
\\"expression\\": $expression,
|
|
7158
|
+
\\"expressionNames\\": $expressionNames,
|
|
7332
7159
|
\\"expressionValues\\": $expressionValues
|
|
7333
7160
|
} )
|
|
7334
7161
|
#else
|
|
@@ -7362,6 +7189,7 @@ $util.unauthorized()
|
|
|
7362
7189
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7363
7190
|
$util.unauthorized()
|
|
7364
7191
|
#end
|
|
7192
|
+
$util.toJson({})
|
|
7365
7193
|
## [End] Sandbox Mode Disabled. **",
|
|
7366
7194
|
"Query.getEntity.req.vtl": "## [Start] Get Request template. **
|
|
7367
7195
|
#set( $GetRequest = {
|
|
@@ -7370,14 +7198,17 @@ $util.unauthorized()
|
|
|
7370
7198
|
} )
|
|
7371
7199
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7372
7200
|
#set( $expression = \\"\\" )
|
|
7201
|
+
#set( $expressionNames = {} )
|
|
7373
7202
|
#set( $expressionValues = {} )
|
|
7374
7203
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7375
|
-
#set( $expression = \\"$expression$
|
|
7376
|
-
$util.qr($
|
|
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))
|
|
7377
7207
|
#end
|
|
7378
7208
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7379
7209
|
#set( $query = {
|
|
7380
7210
|
\\"expression\\": $expression,
|
|
7211
|
+
\\"expressionNames\\": $expressionNames,
|
|
7381
7212
|
\\"expressionValues\\": $expressionValues
|
|
7382
7213
|
} )
|
|
7383
7214
|
#else
|
|
@@ -7411,6 +7242,7 @@ $util.unauthorized()
|
|
|
7411
7242
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7412
7243
|
$util.unauthorized()
|
|
7413
7244
|
#end
|
|
7245
|
+
$util.toJson({})
|
|
7414
7246
|
## [End] Sandbox Mode Disabled. **",
|
|
7415
7247
|
"Query.getPost.req.vtl": "## [Start] Get Request template. **
|
|
7416
7248
|
#set( $GetRequest = {
|
|
@@ -7419,14 +7251,17 @@ $util.unauthorized()
|
|
|
7419
7251
|
} )
|
|
7420
7252
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7421
7253
|
#set( $expression = \\"\\" )
|
|
7254
|
+
#set( $expressionNames = {} )
|
|
7422
7255
|
#set( $expressionValues = {} )
|
|
7423
7256
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7424
|
-
#set( $expression = \\"$expression$
|
|
7425
|
-
$util.qr($
|
|
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))
|
|
7426
7260
|
#end
|
|
7427
7261
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7428
7262
|
#set( $query = {
|
|
7429
7263
|
\\"expression\\": $expression,
|
|
7264
|
+
\\"expressionNames\\": $expressionNames,
|
|
7430
7265
|
\\"expressionValues\\": $expressionValues
|
|
7431
7266
|
} )
|
|
7432
7267
|
#else
|
|
@@ -7460,6 +7295,7 @@ $util.unauthorized()
|
|
|
7460
7295
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7461
7296
|
$util.unauthorized()
|
|
7462
7297
|
#end
|
|
7298
|
+
$util.toJson({})
|
|
7463
7299
|
## [End] Sandbox Mode Disabled. **",
|
|
7464
7300
|
"Query.getRequire.req.vtl": "## [Start] Get Request template. **
|
|
7465
7301
|
#set( $GetRequest = {
|
|
@@ -7468,14 +7304,17 @@ $util.unauthorized()
|
|
|
7468
7304
|
} )
|
|
7469
7305
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7470
7306
|
#set( $expression = \\"\\" )
|
|
7307
|
+
#set( $expressionNames = {} )
|
|
7471
7308
|
#set( $expressionValues = {} )
|
|
7472
7309
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7473
|
-
#set( $expression = \\"$expression$
|
|
7474
|
-
$util.qr($
|
|
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))
|
|
7475
7313
|
#end
|
|
7476
7314
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7477
7315
|
#set( $query = {
|
|
7478
7316
|
\\"expression\\": $expression,
|
|
7317
|
+
\\"expressionNames\\": $expressionNames,
|
|
7479
7318
|
\\"expressionValues\\": $expressionValues
|
|
7480
7319
|
} )
|
|
7481
7320
|
#else
|
|
@@ -7509,6 +7348,7 @@ $util.unauthorized()
|
|
|
7509
7348
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7510
7349
|
$util.unauthorized()
|
|
7511
7350
|
#end
|
|
7351
|
+
$util.toJson({})
|
|
7512
7352
|
## [End] Sandbox Mode Disabled. **",
|
|
7513
7353
|
"Query.getTest.req.vtl": "## [Start] Get Request template. **
|
|
7514
7354
|
#set( $GetRequest = {
|
|
@@ -7517,14 +7357,17 @@ $util.unauthorized()
|
|
|
7517
7357
|
} )
|
|
7518
7358
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7519
7359
|
#set( $expression = \\"\\" )
|
|
7360
|
+
#set( $expressionNames = {} )
|
|
7520
7361
|
#set( $expressionValues = {} )
|
|
7521
7362
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7522
|
-
#set( $expression = \\"$expression$
|
|
7523
|
-
$util.qr($
|
|
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))
|
|
7524
7366
|
#end
|
|
7525
7367
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7526
7368
|
#set( $query = {
|
|
7527
7369
|
\\"expression\\": $expression,
|
|
7370
|
+
\\"expressionNames\\": $expressionNames,
|
|
7528
7371
|
\\"expressionValues\\": $expressionValues
|
|
7529
7372
|
} )
|
|
7530
7373
|
#else
|
|
@@ -7558,6 +7401,7 @@ $util.unauthorized()
|
|
|
7558
7401
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7559
7402
|
$util.unauthorized()
|
|
7560
7403
|
#end
|
|
7404
|
+
$util.toJson({})
|
|
7561
7405
|
## [End] Sandbox Mode Disabled. **",
|
|
7562
7406
|
"Query.getUser.req.vtl": "## [Start] Get Request template. **
|
|
7563
7407
|
#set( $GetRequest = {
|
|
@@ -7566,14 +7410,17 @@ $util.unauthorized()
|
|
|
7566
7410
|
} )
|
|
7567
7411
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7568
7412
|
#set( $expression = \\"\\" )
|
|
7413
|
+
#set( $expressionNames = {} )
|
|
7569
7414
|
#set( $expressionValues = {} )
|
|
7570
7415
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7571
|
-
#set( $expression = \\"$expression$
|
|
7572
|
-
$util.qr($
|
|
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))
|
|
7573
7419
|
#end
|
|
7574
7420
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7575
7421
|
#set( $query = {
|
|
7576
7422
|
\\"expression\\": $expression,
|
|
7423
|
+
\\"expressionNames\\": $expressionNames,
|
|
7577
7424
|
\\"expressionValues\\": $expressionValues
|
|
7578
7425
|
} )
|
|
7579
7426
|
#else
|
|
@@ -7607,6 +7454,7 @@ $util.unauthorized()
|
|
|
7607
7454
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7608
7455
|
$util.unauthorized()
|
|
7609
7456
|
#end
|
|
7457
|
+
$util.toJson({})
|
|
7610
7458
|
## [End] Sandbox Mode Disabled. **",
|
|
7611
7459
|
"Query.listAuthors.req.vtl": "## [Start] List Request. **
|
|
7612
7460
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -7620,9 +7468,9 @@ $util.unauthorized()
|
|
|
7620
7468
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7621
7469
|
#set( $filter = $ctx.stash.authFilter )
|
|
7622
7470
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7623
|
-
#set( $filter =
|
|
7471
|
+
#set( $filter = {
|
|
7624
7472
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7625
|
-
}
|
|
7473
|
+
} )
|
|
7626
7474
|
#end
|
|
7627
7475
|
#else
|
|
7628
7476
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7665,6 +7513,7 @@ $util.toJson($ListRequest)
|
|
|
7665
7513
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7666
7514
|
$util.unauthorized()
|
|
7667
7515
|
#end
|
|
7516
|
+
$util.toJson({})
|
|
7668
7517
|
## [End] Sandbox Mode Disabled. **",
|
|
7669
7518
|
"Query.listComments.req.vtl": "## [Start] List Request. **
|
|
7670
7519
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -7678,9 +7527,9 @@ $util.toJson($ListRequest)
|
|
|
7678
7527
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7679
7528
|
#set( $filter = $ctx.stash.authFilter )
|
|
7680
7529
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7681
|
-
#set( $filter =
|
|
7530
|
+
#set( $filter = {
|
|
7682
7531
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7683
|
-
}
|
|
7532
|
+
} )
|
|
7684
7533
|
#end
|
|
7685
7534
|
#else
|
|
7686
7535
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7723,6 +7572,7 @@ $util.toJson($ListRequest)
|
|
|
7723
7572
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7724
7573
|
$util.unauthorized()
|
|
7725
7574
|
#end
|
|
7575
|
+
$util.toJson({})
|
|
7726
7576
|
## [End] Sandbox Mode Disabled. **",
|
|
7727
7577
|
"Query.listEmails.req.vtl": "## [Start] List Request. **
|
|
7728
7578
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -7736,9 +7586,9 @@ $util.toJson($ListRequest)
|
|
|
7736
7586
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7737
7587
|
#set( $filter = $ctx.stash.authFilter )
|
|
7738
7588
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7739
|
-
#set( $filter =
|
|
7589
|
+
#set( $filter = {
|
|
7740
7590
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7741
|
-
}
|
|
7591
|
+
} )
|
|
7742
7592
|
#end
|
|
7743
7593
|
#else
|
|
7744
7594
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7781,6 +7631,7 @@ $util.toJson($ListRequest)
|
|
|
7781
7631
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7782
7632
|
$util.unauthorized()
|
|
7783
7633
|
#end
|
|
7634
|
+
$util.toJson({})
|
|
7784
7635
|
## [End] Sandbox Mode Disabled. **",
|
|
7785
7636
|
"Query.listPosts.req.vtl": "## [Start] List Request. **
|
|
7786
7637
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -7794,9 +7645,9 @@ $util.toJson($ListRequest)
|
|
|
7794
7645
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7795
7646
|
#set( $filter = $ctx.stash.authFilter )
|
|
7796
7647
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7797
|
-
#set( $filter =
|
|
7648
|
+
#set( $filter = {
|
|
7798
7649
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7799
|
-
}
|
|
7650
|
+
} )
|
|
7800
7651
|
#end
|
|
7801
7652
|
#else
|
|
7802
7653
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7839,6 +7690,7 @@ $util.toJson($ListRequest)
|
|
|
7839
7690
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7840
7691
|
$util.unauthorized()
|
|
7841
7692
|
#end
|
|
7693
|
+
$util.toJson({})
|
|
7842
7694
|
## [End] Sandbox Mode Disabled. **",
|
|
7843
7695
|
"Query.listRequires.req.vtl": "## [Start] List Request. **
|
|
7844
7696
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -7852,9 +7704,9 @@ $util.toJson($ListRequest)
|
|
|
7852
7704
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7853
7705
|
#set( $filter = $ctx.stash.authFilter )
|
|
7854
7706
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7855
|
-
#set( $filter =
|
|
7707
|
+
#set( $filter = {
|
|
7856
7708
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7857
|
-
}
|
|
7709
|
+
} )
|
|
7858
7710
|
#end
|
|
7859
7711
|
#else
|
|
7860
7712
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7897,6 +7749,7 @@ $util.toJson($ListRequest)
|
|
|
7897
7749
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7898
7750
|
$util.unauthorized()
|
|
7899
7751
|
#end
|
|
7752
|
+
$util.toJson({})
|
|
7900
7753
|
## [End] Sandbox Mode Disabled. **",
|
|
7901
7754
|
"Query.listTests.req.vtl": "## [Start] List Request. **
|
|
7902
7755
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -7910,9 +7763,9 @@ $util.toJson($ListRequest)
|
|
|
7910
7763
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7911
7764
|
#set( $filter = $ctx.stash.authFilter )
|
|
7912
7765
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7913
|
-
#set( $filter =
|
|
7766
|
+
#set( $filter = {
|
|
7914
7767
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7915
|
-
}
|
|
7768
|
+
} )
|
|
7916
7769
|
#end
|
|
7917
7770
|
#else
|
|
7918
7771
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7955,6 +7808,7 @@ $util.toJson($ListRequest)
|
|
|
7955
7808
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
7956
7809
|
$util.unauthorized()
|
|
7957
7810
|
#end
|
|
7811
|
+
$util.toJson({})
|
|
7958
7812
|
## [End] Sandbox Mode Disabled. **",
|
|
7959
7813
|
"Query.listUsers.req.vtl": "## [Start] List Request. **
|
|
7960
7814
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -7968,9 +7822,9 @@ $util.toJson($ListRequest)
|
|
|
7968
7822
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7969
7823
|
#set( $filter = $ctx.stash.authFilter )
|
|
7970
7824
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7971
|
-
#set( $filter =
|
|
7825
|
+
#set( $filter = {
|
|
7972
7826
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7973
|
-
}
|
|
7827
|
+
} )
|
|
7974
7828
|
#end
|
|
7975
7829
|
#else
|
|
7976
7830
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -8013,14 +7867,15 @@ $util.toJson($ListRequest)
|
|
|
8013
7867
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8014
7868
|
$util.unauthorized()
|
|
8015
7869
|
#end
|
|
7870
|
+
$util.toJson({})
|
|
8016
7871
|
## [End] Sandbox Mode Disabled. **",
|
|
8017
7872
|
"Query.syncPosts.req.vtl": "## [Start] Sync Request template. **
|
|
8018
7873
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
8019
7874
|
#set( $filter = $ctx.stash.authFilter )
|
|
8020
7875
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
8021
|
-
#set( $filter =
|
|
7876
|
+
#set( $filter = {
|
|
8022
7877
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
8023
|
-
}
|
|
7878
|
+
} )
|
|
8024
7879
|
#end
|
|
8025
7880
|
#else
|
|
8026
7881
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -8060,6 +7915,7 @@ null
|
|
|
8060
7915
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8061
7916
|
$util.unauthorized()
|
|
8062
7917
|
#end
|
|
7918
|
+
$util.toJson({})
|
|
8063
7919
|
## [End] Sandbox Mode Disabled. **",
|
|
8064
7920
|
"Subscription.onCreateAuthor.req.vtl": "## [Start] Subscription Request template. **
|
|
8065
7921
|
$util.toJson({
|
|
@@ -8067,13 +7923,14 @@ $util.toJson({
|
|
|
8067
7923
|
\\"payload\\": {}
|
|
8068
7924
|
})
|
|
8069
7925
|
## [End] Subscription Request template. **",
|
|
8070
|
-
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription
|
|
7926
|
+
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
8071
7927
|
$util.toJson(null)
|
|
8072
|
-
## [End] Subscription
|
|
7928
|
+
## [End] Subscription Response template. **",
|
|
8073
7929
|
"Subscription.onCreateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8074
7930
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8075
7931
|
$util.unauthorized()
|
|
8076
7932
|
#end
|
|
7933
|
+
$util.toJson({})
|
|
8077
7934
|
## [End] Sandbox Mode Disabled. **",
|
|
8078
7935
|
"Subscription.onCreateComment.req.vtl": "## [Start] Subscription Request template. **
|
|
8079
7936
|
$util.toJson({
|
|
@@ -8081,13 +7938,14 @@ $util.toJson({
|
|
|
8081
7938
|
\\"payload\\": {}
|
|
8082
7939
|
})
|
|
8083
7940
|
## [End] Subscription Request template. **",
|
|
8084
|
-
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription
|
|
7941
|
+
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
8085
7942
|
$util.toJson(null)
|
|
8086
|
-
## [End] Subscription
|
|
7943
|
+
## [End] Subscription Response template. **",
|
|
8087
7944
|
"Subscription.onCreateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8088
7945
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8089
7946
|
$util.unauthorized()
|
|
8090
7947
|
#end
|
|
7948
|
+
$util.toJson({})
|
|
8091
7949
|
## [End] Sandbox Mode Disabled. **",
|
|
8092
7950
|
"Subscription.onCreateEmail.req.vtl": "## [Start] Subscription Request template. **
|
|
8093
7951
|
$util.toJson({
|
|
@@ -8095,13 +7953,14 @@ $util.toJson({
|
|
|
8095
7953
|
\\"payload\\": {}
|
|
8096
7954
|
})
|
|
8097
7955
|
## [End] Subscription Request template. **",
|
|
8098
|
-
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription
|
|
7956
|
+
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
8099
7957
|
$util.toJson(null)
|
|
8100
|
-
## [End] Subscription
|
|
7958
|
+
## [End] Subscription Response template. **",
|
|
8101
7959
|
"Subscription.onCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8102
7960
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8103
7961
|
$util.unauthorized()
|
|
8104
7962
|
#end
|
|
7963
|
+
$util.toJson({})
|
|
8105
7964
|
## [End] Sandbox Mode Disabled. **",
|
|
8106
7965
|
"Subscription.onCreatePost.req.vtl": "## [Start] Subscription Request template. **
|
|
8107
7966
|
$util.toJson({
|
|
@@ -8109,13 +7968,14 @@ $util.toJson({
|
|
|
8109
7968
|
\\"payload\\": {}
|
|
8110
7969
|
})
|
|
8111
7970
|
## [End] Subscription Request template. **",
|
|
8112
|
-
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription
|
|
7971
|
+
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
8113
7972
|
$util.toJson(null)
|
|
8114
|
-
## [End] Subscription
|
|
7973
|
+
## [End] Subscription Response template. **",
|
|
8115
7974
|
"Subscription.onCreateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8116
7975
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8117
7976
|
$util.unauthorized()
|
|
8118
7977
|
#end
|
|
7978
|
+
$util.toJson({})
|
|
8119
7979
|
## [End] Sandbox Mode Disabled. **",
|
|
8120
7980
|
"Subscription.onCreateRequire.req.vtl": "## [Start] Subscription Request template. **
|
|
8121
7981
|
$util.toJson({
|
|
@@ -8123,13 +7983,14 @@ $util.toJson({
|
|
|
8123
7983
|
\\"payload\\": {}
|
|
8124
7984
|
})
|
|
8125
7985
|
## [End] Subscription Request template. **",
|
|
8126
|
-
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription
|
|
7986
|
+
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
8127
7987
|
$util.toJson(null)
|
|
8128
|
-
## [End] Subscription
|
|
7988
|
+
## [End] Subscription Response template. **",
|
|
8129
7989
|
"Subscription.onCreateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8130
7990
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8131
7991
|
$util.unauthorized()
|
|
8132
7992
|
#end
|
|
7993
|
+
$util.toJson({})
|
|
8133
7994
|
## [End] Sandbox Mode Disabled. **",
|
|
8134
7995
|
"Subscription.onCreateTest.req.vtl": "## [Start] Subscription Request template. **
|
|
8135
7996
|
$util.toJson({
|
|
@@ -8137,13 +7998,14 @@ $util.toJson({
|
|
|
8137
7998
|
\\"payload\\": {}
|
|
8138
7999
|
})
|
|
8139
8000
|
## [End] Subscription Request template. **",
|
|
8140
|
-
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription
|
|
8001
|
+
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
8141
8002
|
$util.toJson(null)
|
|
8142
|
-
## [End] Subscription
|
|
8003
|
+
## [End] Subscription Response template. **",
|
|
8143
8004
|
"Subscription.onCreateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8144
8005
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8145
8006
|
$util.unauthorized()
|
|
8146
8007
|
#end
|
|
8008
|
+
$util.toJson({})
|
|
8147
8009
|
## [End] Sandbox Mode Disabled. **",
|
|
8148
8010
|
"Subscription.onCreateUser.req.vtl": "## [Start] Subscription Request template. **
|
|
8149
8011
|
$util.toJson({
|
|
@@ -8151,13 +8013,14 @@ $util.toJson({
|
|
|
8151
8013
|
\\"payload\\": {}
|
|
8152
8014
|
})
|
|
8153
8015
|
## [End] Subscription Request template. **",
|
|
8154
|
-
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription
|
|
8016
|
+
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
8155
8017
|
$util.toJson(null)
|
|
8156
|
-
## [End] Subscription
|
|
8018
|
+
## [End] Subscription Response template. **",
|
|
8157
8019
|
"Subscription.onDeleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8158
8020
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8159
8021
|
$util.unauthorized()
|
|
8160
8022
|
#end
|
|
8023
|
+
$util.toJson({})
|
|
8161
8024
|
## [End] Sandbox Mode Disabled. **",
|
|
8162
8025
|
"Subscription.onDeleteAuthor.req.vtl": "## [Start] Subscription Request template. **
|
|
8163
8026
|
$util.toJson({
|
|
@@ -8165,13 +8028,14 @@ $util.toJson({
|
|
|
8165
8028
|
\\"payload\\": {}
|
|
8166
8029
|
})
|
|
8167
8030
|
## [End] Subscription Request template. **",
|
|
8168
|
-
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription
|
|
8031
|
+
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
8169
8032
|
$util.toJson(null)
|
|
8170
|
-
## [End] Subscription
|
|
8033
|
+
## [End] Subscription Response template. **",
|
|
8171
8034
|
"Subscription.onDeleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8172
8035
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8173
8036
|
$util.unauthorized()
|
|
8174
8037
|
#end
|
|
8038
|
+
$util.toJson({})
|
|
8175
8039
|
## [End] Sandbox Mode Disabled. **",
|
|
8176
8040
|
"Subscription.onDeleteComment.req.vtl": "## [Start] Subscription Request template. **
|
|
8177
8041
|
$util.toJson({
|
|
@@ -8179,13 +8043,14 @@ $util.toJson({
|
|
|
8179
8043
|
\\"payload\\": {}
|
|
8180
8044
|
})
|
|
8181
8045
|
## [End] Subscription Request template. **",
|
|
8182
|
-
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription
|
|
8046
|
+
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Response template. **
|
|
8183
8047
|
$util.toJson(null)
|
|
8184
|
-
## [End] Subscription
|
|
8048
|
+
## [End] Subscription Response template. **",
|
|
8185
8049
|
"Subscription.onDeleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8186
8050
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8187
8051
|
$util.unauthorized()
|
|
8188
8052
|
#end
|
|
8053
|
+
$util.toJson({})
|
|
8189
8054
|
## [End] Sandbox Mode Disabled. **",
|
|
8190
8055
|
"Subscription.onDeleteEmail.req.vtl": "## [Start] Subscription Request template. **
|
|
8191
8056
|
$util.toJson({
|
|
@@ -8193,13 +8058,14 @@ $util.toJson({
|
|
|
8193
8058
|
\\"payload\\": {}
|
|
8194
8059
|
})
|
|
8195
8060
|
## [End] Subscription Request template. **",
|
|
8196
|
-
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription
|
|
8061
|
+
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
8197
8062
|
$util.toJson(null)
|
|
8198
|
-
## [End] Subscription
|
|
8063
|
+
## [End] Subscription Response template. **",
|
|
8199
8064
|
"Subscription.onDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8200
8065
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8201
8066
|
$util.unauthorized()
|
|
8202
8067
|
#end
|
|
8068
|
+
$util.toJson({})
|
|
8203
8069
|
## [End] Sandbox Mode Disabled. **",
|
|
8204
8070
|
"Subscription.onDeletePost.req.vtl": "## [Start] Subscription Request template. **
|
|
8205
8071
|
$util.toJson({
|
|
@@ -8207,13 +8073,14 @@ $util.toJson({
|
|
|
8207
8073
|
\\"payload\\": {}
|
|
8208
8074
|
})
|
|
8209
8075
|
## [End] Subscription Request template. **",
|
|
8210
|
-
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription
|
|
8076
|
+
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription Response template. **
|
|
8211
8077
|
$util.toJson(null)
|
|
8212
|
-
## [End] Subscription
|
|
8078
|
+
## [End] Subscription Response template. **",
|
|
8213
8079
|
"Subscription.onDeleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8214
8080
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8215
8081
|
$util.unauthorized()
|
|
8216
8082
|
#end
|
|
8083
|
+
$util.toJson({})
|
|
8217
8084
|
## [End] Sandbox Mode Disabled. **",
|
|
8218
8085
|
"Subscription.onDeleteRequire.req.vtl": "## [Start] Subscription Request template. **
|
|
8219
8086
|
$util.toJson({
|
|
@@ -8221,13 +8088,14 @@ $util.toJson({
|
|
|
8221
8088
|
\\"payload\\": {}
|
|
8222
8089
|
})
|
|
8223
8090
|
## [End] Subscription Request template. **",
|
|
8224
|
-
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription
|
|
8091
|
+
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
8225
8092
|
$util.toJson(null)
|
|
8226
|
-
## [End] Subscription
|
|
8093
|
+
## [End] Subscription Response template. **",
|
|
8227
8094
|
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8228
8095
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8229
8096
|
$util.unauthorized()
|
|
8230
8097
|
#end
|
|
8098
|
+
$util.toJson({})
|
|
8231
8099
|
## [End] Sandbox Mode Disabled. **",
|
|
8232
8100
|
"Subscription.onDeleteTest.req.vtl": "## [Start] Subscription Request template. **
|
|
8233
8101
|
$util.toJson({
|
|
@@ -8235,13 +8103,14 @@ $util.toJson({
|
|
|
8235
8103
|
\\"payload\\": {}
|
|
8236
8104
|
})
|
|
8237
8105
|
## [End] Subscription Request template. **",
|
|
8238
|
-
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription
|
|
8106
|
+
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
|
|
8239
8107
|
$util.toJson(null)
|
|
8240
|
-
## [End] Subscription
|
|
8108
|
+
## [End] Subscription Response template. **",
|
|
8241
8109
|
"Subscription.onDeleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8242
8110
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8243
8111
|
$util.unauthorized()
|
|
8244
8112
|
#end
|
|
8113
|
+
$util.toJson({})
|
|
8245
8114
|
## [End] Sandbox Mode Disabled. **",
|
|
8246
8115
|
"Subscription.onDeleteUser.req.vtl": "## [Start] Subscription Request template. **
|
|
8247
8116
|
$util.toJson({
|
|
@@ -8249,13 +8118,14 @@ $util.toJson({
|
|
|
8249
8118
|
\\"payload\\": {}
|
|
8250
8119
|
})
|
|
8251
8120
|
## [End] Subscription Request template. **",
|
|
8252
|
-
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription
|
|
8121
|
+
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Response template. **
|
|
8253
8122
|
$util.toJson(null)
|
|
8254
|
-
## [End] Subscription
|
|
8123
|
+
## [End] Subscription Response template. **",
|
|
8255
8124
|
"Subscription.onUpdateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8256
8125
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8257
8126
|
$util.unauthorized()
|
|
8258
8127
|
#end
|
|
8128
|
+
$util.toJson({})
|
|
8259
8129
|
## [End] Sandbox Mode Disabled. **",
|
|
8260
8130
|
"Subscription.onUpdateAuthor.req.vtl": "## [Start] Subscription Request template. **
|
|
8261
8131
|
$util.toJson({
|
|
@@ -8263,13 +8133,14 @@ $util.toJson({
|
|
|
8263
8133
|
\\"payload\\": {}
|
|
8264
8134
|
})
|
|
8265
8135
|
## [End] Subscription Request template. **",
|
|
8266
|
-
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription
|
|
8136
|
+
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
8267
8137
|
$util.toJson(null)
|
|
8268
|
-
## [End] Subscription
|
|
8138
|
+
## [End] Subscription Response template. **",
|
|
8269
8139
|
"Subscription.onUpdateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8270
8140
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8271
8141
|
$util.unauthorized()
|
|
8272
8142
|
#end
|
|
8143
|
+
$util.toJson({})
|
|
8273
8144
|
## [End] Sandbox Mode Disabled. **",
|
|
8274
8145
|
"Subscription.onUpdateComment.req.vtl": "## [Start] Subscription Request template. **
|
|
8275
8146
|
$util.toJson({
|
|
@@ -8277,13 +8148,14 @@ $util.toJson({
|
|
|
8277
8148
|
\\"payload\\": {}
|
|
8278
8149
|
})
|
|
8279
8150
|
## [End] Subscription Request template. **",
|
|
8280
|
-
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription
|
|
8151
|
+
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
8281
8152
|
$util.toJson(null)
|
|
8282
|
-
## [End] Subscription
|
|
8153
|
+
## [End] Subscription Response template. **",
|
|
8283
8154
|
"Subscription.onUpdateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8284
8155
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8285
8156
|
$util.unauthorized()
|
|
8286
8157
|
#end
|
|
8158
|
+
$util.toJson({})
|
|
8287
8159
|
## [End] Sandbox Mode Disabled. **",
|
|
8288
8160
|
"Subscription.onUpdateEmail.req.vtl": "## [Start] Subscription Request template. **
|
|
8289
8161
|
$util.toJson({
|
|
@@ -8291,13 +8163,14 @@ $util.toJson({
|
|
|
8291
8163
|
\\"payload\\": {}
|
|
8292
8164
|
})
|
|
8293
8165
|
## [End] Subscription Request template. **",
|
|
8294
|
-
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription
|
|
8166
|
+
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
8295
8167
|
$util.toJson(null)
|
|
8296
|
-
## [End] Subscription
|
|
8168
|
+
## [End] Subscription Response template. **",
|
|
8297
8169
|
"Subscription.onUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8298
8170
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8299
8171
|
$util.unauthorized()
|
|
8300
8172
|
#end
|
|
8173
|
+
$util.toJson({})
|
|
8301
8174
|
## [End] Sandbox Mode Disabled. **",
|
|
8302
8175
|
"Subscription.onUpdatePost.req.vtl": "## [Start] Subscription Request template. **
|
|
8303
8176
|
$util.toJson({
|
|
@@ -8305,13 +8178,14 @@ $util.toJson({
|
|
|
8305
8178
|
\\"payload\\": {}
|
|
8306
8179
|
})
|
|
8307
8180
|
## [End] Subscription Request template. **",
|
|
8308
|
-
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription
|
|
8181
|
+
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
8309
8182
|
$util.toJson(null)
|
|
8310
|
-
## [End] Subscription
|
|
8183
|
+
## [End] Subscription Response template. **",
|
|
8311
8184
|
"Subscription.onUpdateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8312
8185
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8313
8186
|
$util.unauthorized()
|
|
8314
8187
|
#end
|
|
8188
|
+
$util.toJson({})
|
|
8315
8189
|
## [End] Sandbox Mode Disabled. **",
|
|
8316
8190
|
"Subscription.onUpdateRequire.req.vtl": "## [Start] Subscription Request template. **
|
|
8317
8191
|
$util.toJson({
|
|
@@ -8319,13 +8193,14 @@ $util.toJson({
|
|
|
8319
8193
|
\\"payload\\": {}
|
|
8320
8194
|
})
|
|
8321
8195
|
## [End] Subscription Request template. **",
|
|
8322
|
-
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription
|
|
8196
|
+
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
8323
8197
|
$util.toJson(null)
|
|
8324
|
-
## [End] Subscription
|
|
8198
|
+
## [End] Subscription Response template. **",
|
|
8325
8199
|
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8326
8200
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8327
8201
|
$util.unauthorized()
|
|
8328
8202
|
#end
|
|
8203
|
+
$util.toJson({})
|
|
8329
8204
|
## [End] Sandbox Mode Disabled. **",
|
|
8330
8205
|
"Subscription.onUpdateTest.req.vtl": "## [Start] Subscription Request template. **
|
|
8331
8206
|
$util.toJson({
|
|
@@ -8333,13 +8208,14 @@ $util.toJson({
|
|
|
8333
8208
|
\\"payload\\": {}
|
|
8334
8209
|
})
|
|
8335
8210
|
## [End] Subscription Request template. **",
|
|
8336
|
-
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription
|
|
8211
|
+
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
8337
8212
|
$util.toJson(null)
|
|
8338
|
-
## [End] Subscription
|
|
8213
|
+
## [End] Subscription Response template. **",
|
|
8339
8214
|
"Subscription.onUpdateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8340
8215
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8341
8216
|
$util.unauthorized()
|
|
8342
8217
|
#end
|
|
8218
|
+
$util.toJson({})
|
|
8343
8219
|
## [End] Sandbox Mode Disabled. **",
|
|
8344
8220
|
"Subscription.onUpdateUser.req.vtl": "## [Start] Subscription Request template. **
|
|
8345
8221
|
$util.toJson({
|
|
@@ -8347,9 +8223,9 @@ $util.toJson({
|
|
|
8347
8223
|
\\"payload\\": {}
|
|
8348
8224
|
})
|
|
8349
8225
|
## [End] Subscription Request template. **",
|
|
8350
|
-
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription
|
|
8226
|
+
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
8351
8227
|
$util.toJson(null)
|
|
8352
|
-
## [End] Subscription
|
|
8228
|
+
## [End] Subscription Response template. **",
|
|
8353
8229
|
}
|
|
8354
8230
|
`;
|
|
8355
8231
|
|
|
@@ -8370,27 +8246,9 @@ $util.toJson({
|
|
|
8370
8246
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8371
8247
|
$util.unauthorized()
|
|
8372
8248
|
#end
|
|
8249
|
+
$util.toJson({})
|
|
8373
8250
|
## [End] Sandbox Mode Disabled. **",
|
|
8374
8251
|
"Mutation.createAuthor.req.vtl": "## [Start] Create Request template. **
|
|
8375
|
-
## Begin - key condition **
|
|
8376
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8377
|
-
#set( $keyConditionExpr = {} )
|
|
8378
|
-
#set( $keyConditionExprNames = {} )
|
|
8379
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8380
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8381
|
-
\\"attributeExists\\": false
|
|
8382
|
-
}))
|
|
8383
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8384
|
-
#end
|
|
8385
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8386
|
-
#else
|
|
8387
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8388
|
-
\\"id\\": {
|
|
8389
|
-
\\"attributeExists\\": false
|
|
8390
|
-
}
|
|
8391
|
-
}))
|
|
8392
|
-
#end
|
|
8393
|
-
## End - key condition **
|
|
8394
8252
|
## Set the default values to put request **
|
|
8395
8253
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8396
8254
|
## copy the values from input **
|
|
@@ -8478,27 +8336,9 @@ $util.toJson({
|
|
|
8478
8336
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8479
8337
|
$util.unauthorized()
|
|
8480
8338
|
#end
|
|
8339
|
+
$util.toJson({})
|
|
8481
8340
|
## [End] Sandbox Mode Disabled. **",
|
|
8482
8341
|
"Mutation.createComment.req.vtl": "## [Start] Create Request template. **
|
|
8483
|
-
## Begin - key condition **
|
|
8484
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8485
|
-
#set( $keyConditionExpr = {} )
|
|
8486
|
-
#set( $keyConditionExprNames = {} )
|
|
8487
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8488
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8489
|
-
\\"attributeExists\\": false
|
|
8490
|
-
}))
|
|
8491
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8492
|
-
#end
|
|
8493
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8494
|
-
#else
|
|
8495
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8496
|
-
\\"id\\": {
|
|
8497
|
-
\\"attributeExists\\": false
|
|
8498
|
-
}
|
|
8499
|
-
}))
|
|
8500
|
-
#end
|
|
8501
|
-
## End - key condition **
|
|
8502
8342
|
## Set the default values to put request **
|
|
8503
8343
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8504
8344
|
## copy the values from input **
|
|
@@ -8586,27 +8426,9 @@ $util.toJson({
|
|
|
8586
8426
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8587
8427
|
$util.unauthorized()
|
|
8588
8428
|
#end
|
|
8429
|
+
$util.toJson({})
|
|
8589
8430
|
## [End] Sandbox Mode Disabled. **",
|
|
8590
8431
|
"Mutation.createEmail.req.vtl": "## [Start] Create Request template. **
|
|
8591
|
-
## Begin - key condition **
|
|
8592
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8593
|
-
#set( $keyConditionExpr = {} )
|
|
8594
|
-
#set( $keyConditionExprNames = {} )
|
|
8595
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8596
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8597
|
-
\\"attributeExists\\": false
|
|
8598
|
-
}))
|
|
8599
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8600
|
-
#end
|
|
8601
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8602
|
-
#else
|
|
8603
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8604
|
-
\\"id\\": {
|
|
8605
|
-
\\"attributeExists\\": false
|
|
8606
|
-
}
|
|
8607
|
-
}))
|
|
8608
|
-
#end
|
|
8609
|
-
## End - key condition **
|
|
8610
8432
|
## Set the default values to put request **
|
|
8611
8433
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8612
8434
|
## copy the values from input **
|
|
@@ -8694,27 +8516,9 @@ $util.toJson({
|
|
|
8694
8516
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8695
8517
|
$util.unauthorized()
|
|
8696
8518
|
#end
|
|
8519
|
+
$util.toJson({})
|
|
8697
8520
|
## [End] Sandbox Mode Disabled. **",
|
|
8698
8521
|
"Mutation.createPost.req.vtl": "## [Start] Create Request template. **
|
|
8699
|
-
## Begin - key condition **
|
|
8700
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8701
|
-
#set( $keyConditionExpr = {} )
|
|
8702
|
-
#set( $keyConditionExprNames = {} )
|
|
8703
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8704
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8705
|
-
\\"attributeExists\\": false
|
|
8706
|
-
}))
|
|
8707
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8708
|
-
#end
|
|
8709
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8710
|
-
#else
|
|
8711
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8712
|
-
\\"id\\": {
|
|
8713
|
-
\\"attributeExists\\": false
|
|
8714
|
-
}
|
|
8715
|
-
}))
|
|
8716
|
-
#end
|
|
8717
|
-
## End - key condition **
|
|
8718
8522
|
## Set the default values to put request **
|
|
8719
8523
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8720
8524
|
## copy the values from input **
|
|
@@ -8802,27 +8606,9 @@ $util.toJson({
|
|
|
8802
8606
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8803
8607
|
$util.unauthorized()
|
|
8804
8608
|
#end
|
|
8609
|
+
$util.toJson({})
|
|
8805
8610
|
## [End] Sandbox Mode Disabled. **",
|
|
8806
8611
|
"Mutation.createRequire.req.vtl": "## [Start] Create Request template. **
|
|
8807
|
-
## Begin - key condition **
|
|
8808
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8809
|
-
#set( $keyConditionExpr = {} )
|
|
8810
|
-
#set( $keyConditionExprNames = {} )
|
|
8811
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8812
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8813
|
-
\\"attributeExists\\": false
|
|
8814
|
-
}))
|
|
8815
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8816
|
-
#end
|
|
8817
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8818
|
-
#else
|
|
8819
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8820
|
-
\\"id\\": {
|
|
8821
|
-
\\"attributeExists\\": false
|
|
8822
|
-
}
|
|
8823
|
-
}))
|
|
8824
|
-
#end
|
|
8825
|
-
## End - key condition **
|
|
8826
8612
|
## Set the default values to put request **
|
|
8827
8613
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8828
8614
|
## copy the values from input **
|
|
@@ -8910,27 +8696,9 @@ $util.toJson({
|
|
|
8910
8696
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8911
8697
|
$util.unauthorized()
|
|
8912
8698
|
#end
|
|
8699
|
+
$util.toJson({})
|
|
8913
8700
|
## [End] Sandbox Mode Disabled. **",
|
|
8914
8701
|
"Mutation.createTest.req.vtl": "## [Start] Create Request template. **
|
|
8915
|
-
## Begin - key condition **
|
|
8916
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8917
|
-
#set( $keyConditionExpr = {} )
|
|
8918
|
-
#set( $keyConditionExprNames = {} )
|
|
8919
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8920
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8921
|
-
\\"attributeExists\\": false
|
|
8922
|
-
}))
|
|
8923
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8924
|
-
#end
|
|
8925
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8926
|
-
#else
|
|
8927
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8928
|
-
\\"id\\": {
|
|
8929
|
-
\\"attributeExists\\": false
|
|
8930
|
-
}
|
|
8931
|
-
}))
|
|
8932
|
-
#end
|
|
8933
|
-
## End - key condition **
|
|
8934
8702
|
## Set the default values to put request **
|
|
8935
8703
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8936
8704
|
## copy the values from input **
|
|
@@ -9018,27 +8786,9 @@ $util.toJson({
|
|
|
9018
8786
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9019
8787
|
$util.unauthorized()
|
|
9020
8788
|
#end
|
|
8789
|
+
$util.toJson({})
|
|
9021
8790
|
## [End] Sandbox Mode Disabled. **",
|
|
9022
8791
|
"Mutation.createUser.req.vtl": "## [Start] Create Request template. **
|
|
9023
|
-
## Begin - key condition **
|
|
9024
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
9025
|
-
#set( $keyConditionExpr = {} )
|
|
9026
|
-
#set( $keyConditionExprNames = {} )
|
|
9027
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
9028
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
9029
|
-
\\"attributeExists\\": false
|
|
9030
|
-
}))
|
|
9031
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
9032
|
-
#end
|
|
9033
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
9034
|
-
#else
|
|
9035
|
-
$util.qr($ctx.stash.conditions.add({
|
|
9036
|
-
\\"id\\": {
|
|
9037
|
-
\\"attributeExists\\": false
|
|
9038
|
-
}
|
|
9039
|
-
}))
|
|
9040
|
-
#end
|
|
9041
|
-
## End - key condition **
|
|
9042
8792
|
## Set the default values to put request **
|
|
9043
8793
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
9044
8794
|
## copy the values from input **
|
|
@@ -9126,27 +8876,9 @@ $util.toJson({
|
|
|
9126
8876
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9127
8877
|
$util.unauthorized()
|
|
9128
8878
|
#end
|
|
8879
|
+
$util.toJson({})
|
|
9129
8880
|
## [End] Sandbox Mode Disabled. **",
|
|
9130
8881
|
"Mutation.customCreatePost.req.vtl": "## [Start] Create Request template. **
|
|
9131
|
-
## Begin - key condition **
|
|
9132
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
9133
|
-
#set( $keyConditionExpr = {} )
|
|
9134
|
-
#set( $keyConditionExprNames = {} )
|
|
9135
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
9136
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
9137
|
-
\\"attributeExists\\": false
|
|
9138
|
-
}))
|
|
9139
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
9140
|
-
#end
|
|
9141
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
9142
|
-
#else
|
|
9143
|
-
$util.qr($ctx.stash.conditions.add({
|
|
9144
|
-
\\"id\\": {
|
|
9145
|
-
\\"attributeExists\\": false
|
|
9146
|
-
}
|
|
9147
|
-
}))
|
|
9148
|
-
#end
|
|
9149
|
-
## End - key condition **
|
|
9150
8882
|
## Set the default values to put request **
|
|
9151
8883
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
9152
8884
|
## copy the values from input **
|
|
@@ -9223,6 +8955,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
9223
8955
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9224
8956
|
$util.unauthorized()
|
|
9225
8957
|
#end
|
|
8958
|
+
$util.toJson({})
|
|
9226
8959
|
## [End] Sandbox Mode Disabled. **",
|
|
9227
8960
|
"Mutation.customDeletePost.req.vtl": "## [Start] Delete Request template. **
|
|
9228
8961
|
#set( $DeleteRequest = {
|
|
@@ -9302,6 +9035,7 @@ $util.toJson({
|
|
|
9302
9035
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9303
9036
|
$util.unauthorized()
|
|
9304
9037
|
#end
|
|
9038
|
+
$util.toJson({})
|
|
9305
9039
|
## [End] Sandbox Mode Disabled. **",
|
|
9306
9040
|
"Mutation.customUpdatePost.req.vtl": "## [Start] Mutation Update resolver. **
|
|
9307
9041
|
## Set the default values to put request **
|
|
@@ -9444,6 +9178,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
9444
9178
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9445
9179
|
$util.unauthorized()
|
|
9446
9180
|
#end
|
|
9181
|
+
$util.toJson({})
|
|
9447
9182
|
## [End] Sandbox Mode Disabled. **",
|
|
9448
9183
|
"Mutation.deleteAuthor.req.vtl": "## [Start] Delete Request template. **
|
|
9449
9184
|
#set( $DeleteRequest = {
|
|
@@ -9514,6 +9249,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
9514
9249
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9515
9250
|
$util.unauthorized()
|
|
9516
9251
|
#end
|
|
9252
|
+
$util.toJson({})
|
|
9517
9253
|
## [End] Sandbox Mode Disabled. **",
|
|
9518
9254
|
"Mutation.deleteComment.req.vtl": "## [Start] Delete Request template. **
|
|
9519
9255
|
#set( $DeleteRequest = {
|
|
@@ -9584,6 +9320,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
9584
9320
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9585
9321
|
$util.unauthorized()
|
|
9586
9322
|
#end
|
|
9323
|
+
$util.toJson({})
|
|
9587
9324
|
## [End] Sandbox Mode Disabled. **",
|
|
9588
9325
|
"Mutation.deleteEmail.req.vtl": "## [Start] Delete Request template. **
|
|
9589
9326
|
#set( $DeleteRequest = {
|
|
@@ -9654,6 +9391,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
9654
9391
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9655
9392
|
$util.unauthorized()
|
|
9656
9393
|
#end
|
|
9394
|
+
$util.toJson({})
|
|
9657
9395
|
## [End] Sandbox Mode Disabled. **",
|
|
9658
9396
|
"Mutation.deletePost.req.vtl": "## [Start] Delete Request template. **
|
|
9659
9397
|
#set( $DeleteRequest = {
|
|
@@ -9725,6 +9463,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
9725
9463
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9726
9464
|
$util.unauthorized()
|
|
9727
9465
|
#end
|
|
9466
|
+
$util.toJson({})
|
|
9728
9467
|
## [End] Sandbox Mode Disabled. **",
|
|
9729
9468
|
"Mutation.deleteRequire.req.vtl": "## [Start] Delete Request template. **
|
|
9730
9469
|
#set( $DeleteRequest = {
|
|
@@ -9795,6 +9534,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
9795
9534
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9796
9535
|
$util.unauthorized()
|
|
9797
9536
|
#end
|
|
9537
|
+
$util.toJson({})
|
|
9798
9538
|
## [End] Sandbox Mode Disabled. **",
|
|
9799
9539
|
"Mutation.deleteTest.req.vtl": "## [Start] Delete Request template. **
|
|
9800
9540
|
#set( $DeleteRequest = {
|
|
@@ -9865,6 +9605,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
9865
9605
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9866
9606
|
$util.unauthorized()
|
|
9867
9607
|
#end
|
|
9608
|
+
$util.toJson({})
|
|
9868
9609
|
## [End] Sandbox Mode Disabled. **",
|
|
9869
9610
|
"Mutation.deleteUser.req.vtl": "## [Start] Delete Request template. **
|
|
9870
9611
|
#set( $DeleteRequest = {
|
|
@@ -9944,6 +9685,7 @@ $util.toJson({
|
|
|
9944
9685
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
9945
9686
|
$util.unauthorized()
|
|
9946
9687
|
#end
|
|
9688
|
+
$util.toJson({})
|
|
9947
9689
|
## [End] Sandbox Mode Disabled. **",
|
|
9948
9690
|
"Mutation.updateAuthor.req.vtl": "## [Start] Mutation Update resolver. **
|
|
9949
9691
|
## Set the default values to put request **
|
|
@@ -10095,6 +9837,7 @@ $util.toJson({
|
|
|
10095
9837
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
10096
9838
|
$util.unauthorized()
|
|
10097
9839
|
#end
|
|
9840
|
+
$util.toJson({})
|
|
10098
9841
|
## [End] Sandbox Mode Disabled. **",
|
|
10099
9842
|
"Mutation.updateComment.req.vtl": "## [Start] Mutation Update resolver. **
|
|
10100
9843
|
## Set the default values to put request **
|
|
@@ -10246,6 +9989,7 @@ $util.toJson({
|
|
|
10246
9989
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
10247
9990
|
$util.unauthorized()
|
|
10248
9991
|
#end
|
|
9992
|
+
$util.toJson({})
|
|
10249
9993
|
## [End] Sandbox Mode Disabled. **",
|
|
10250
9994
|
"Mutation.updateEmail.req.vtl": "## [Start] Mutation Update resolver. **
|
|
10251
9995
|
## Set the default values to put request **
|
|
@@ -10397,6 +10141,7 @@ $util.toJson({
|
|
|
10397
10141
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
10398
10142
|
$util.unauthorized()
|
|
10399
10143
|
#end
|
|
10144
|
+
$util.toJson({})
|
|
10400
10145
|
## [End] Sandbox Mode Disabled. **",
|
|
10401
10146
|
"Mutation.updatePost.req.vtl": "## [Start] Mutation Update resolver. **
|
|
10402
10147
|
## Set the default values to put request **
|
|
@@ -10549,6 +10294,7 @@ $util.toJson({
|
|
|
10549
10294
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
10550
10295
|
$util.unauthorized()
|
|
10551
10296
|
#end
|
|
10297
|
+
$util.toJson({})
|
|
10552
10298
|
## [End] Sandbox Mode Disabled. **",
|
|
10553
10299
|
"Mutation.updateRequire.req.vtl": "## [Start] Mutation Update resolver. **
|
|
10554
10300
|
## Set the default values to put request **
|
|
@@ -10700,6 +10446,7 @@ $util.toJson({
|
|
|
10700
10446
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
10701
10447
|
$util.unauthorized()
|
|
10702
10448
|
#end
|
|
10449
|
+
$util.toJson({})
|
|
10703
10450
|
## [End] Sandbox Mode Disabled. **",
|
|
10704
10451
|
"Mutation.updateTest.req.vtl": "## [Start] Mutation Update resolver. **
|
|
10705
10452
|
## Set the default values to put request **
|
|
@@ -10851,6 +10598,7 @@ $util.toJson({
|
|
|
10851
10598
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
10852
10599
|
$util.unauthorized()
|
|
10853
10600
|
#end
|
|
10601
|
+
$util.toJson({})
|
|
10854
10602
|
## [End] Sandbox Mode Disabled. **",
|
|
10855
10603
|
"Mutation.updateUser.req.vtl": "## [Start] Mutation Update resolver. **
|
|
10856
10604
|
## Set the default values to put request **
|
|
@@ -10993,6 +10741,7 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
10993
10741
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
10994
10742
|
$util.unauthorized()
|
|
10995
10743
|
#end
|
|
10744
|
+
$util.toJson({})
|
|
10996
10745
|
## [End] Sandbox Mode Disabled. **",
|
|
10997
10746
|
"Query.customGetPost.req.vtl": "## [Start] Get Request template. **
|
|
10998
10747
|
#set( $GetRequest = {
|
|
@@ -11001,14 +10750,17 @@ $util.qr($ctx.result.put(\\"__operation\\", \\"Mutation\\"))
|
|
|
11001
10750
|
} )
|
|
11002
10751
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11003
10752
|
#set( $expression = \\"\\" )
|
|
10753
|
+
#set( $expressionNames = {} )
|
|
11004
10754
|
#set( $expressionValues = {} )
|
|
11005
10755
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11006
|
-
#set( $expression = \\"$expression$
|
|
11007
|
-
$util.qr($
|
|
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))
|
|
11008
10759
|
#end
|
|
11009
10760
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11010
10761
|
#set( $query = {
|
|
11011
10762
|
\\"expression\\": $expression,
|
|
10763
|
+
\\"expressionNames\\": $expressionNames,
|
|
11012
10764
|
\\"expressionValues\\": $expressionValues
|
|
11013
10765
|
} )
|
|
11014
10766
|
#else
|
|
@@ -11042,6 +10794,7 @@ $util.unauthorized()
|
|
|
11042
10794
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11043
10795
|
$util.unauthorized()
|
|
11044
10796
|
#end
|
|
10797
|
+
$util.toJson({})
|
|
11045
10798
|
## [End] Sandbox Mode Disabled. **",
|
|
11046
10799
|
"Query.customListPost.req.vtl": "## [Start] List Request. **
|
|
11047
10800
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -11055,9 +10808,9 @@ $util.unauthorized()
|
|
|
11055
10808
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11056
10809
|
#set( $filter = $ctx.stash.authFilter )
|
|
11057
10810
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11058
|
-
#set( $filter =
|
|
10811
|
+
#set( $filter = {
|
|
11059
10812
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11060
|
-
}
|
|
10813
|
+
} )
|
|
11061
10814
|
#end
|
|
11062
10815
|
#else
|
|
11063
10816
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11100,6 +10853,7 @@ $util.toJson($ListRequest)
|
|
|
11100
10853
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11101
10854
|
$util.unauthorized()
|
|
11102
10855
|
#end
|
|
10856
|
+
$util.toJson({})
|
|
11103
10857
|
## [End] Sandbox Mode Disabled. **",
|
|
11104
10858
|
"Query.getAuthor.req.vtl": "## [Start] Get Request template. **
|
|
11105
10859
|
#set( $GetRequest = {
|
|
@@ -11108,14 +10862,17 @@ $util.toJson($ListRequest)
|
|
|
11108
10862
|
} )
|
|
11109
10863
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11110
10864
|
#set( $expression = \\"\\" )
|
|
10865
|
+
#set( $expressionNames = {} )
|
|
11111
10866
|
#set( $expressionValues = {} )
|
|
11112
10867
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11113
|
-
#set( $expression = \\"$expression$
|
|
11114
|
-
$util.qr($
|
|
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))
|
|
11115
10871
|
#end
|
|
11116
10872
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11117
10873
|
#set( $query = {
|
|
11118
10874
|
\\"expression\\": $expression,
|
|
10875
|
+
\\"expressionNames\\": $expressionNames,
|
|
11119
10876
|
\\"expressionValues\\": $expressionValues
|
|
11120
10877
|
} )
|
|
11121
10878
|
#else
|
|
@@ -11149,6 +10906,7 @@ $util.unauthorized()
|
|
|
11149
10906
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11150
10907
|
$util.unauthorized()
|
|
11151
10908
|
#end
|
|
10909
|
+
$util.toJson({})
|
|
11152
10910
|
## [End] Sandbox Mode Disabled. **",
|
|
11153
10911
|
"Query.getComment.req.vtl": "## [Start] Get Request template. **
|
|
11154
10912
|
#set( $GetRequest = {
|
|
@@ -11157,14 +10915,17 @@ $util.unauthorized()
|
|
|
11157
10915
|
} )
|
|
11158
10916
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11159
10917
|
#set( $expression = \\"\\" )
|
|
10918
|
+
#set( $expressionNames = {} )
|
|
11160
10919
|
#set( $expressionValues = {} )
|
|
11161
10920
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11162
|
-
#set( $expression = \\"$expression$
|
|
11163
|
-
$util.qr($
|
|
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))
|
|
11164
10924
|
#end
|
|
11165
10925
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11166
10926
|
#set( $query = {
|
|
11167
10927
|
\\"expression\\": $expression,
|
|
10928
|
+
\\"expressionNames\\": $expressionNames,
|
|
11168
10929
|
\\"expressionValues\\": $expressionValues
|
|
11169
10930
|
} )
|
|
11170
10931
|
#else
|
|
@@ -11198,6 +10959,7 @@ $util.unauthorized()
|
|
|
11198
10959
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11199
10960
|
$util.unauthorized()
|
|
11200
10961
|
#end
|
|
10962
|
+
$util.toJson({})
|
|
11201
10963
|
## [End] Sandbox Mode Disabled. **",
|
|
11202
10964
|
"Query.getEmail.req.vtl": "## [Start] Get Request template. **
|
|
11203
10965
|
#set( $GetRequest = {
|
|
@@ -11206,14 +10968,17 @@ $util.unauthorized()
|
|
|
11206
10968
|
} )
|
|
11207
10969
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11208
10970
|
#set( $expression = \\"\\" )
|
|
10971
|
+
#set( $expressionNames = {} )
|
|
11209
10972
|
#set( $expressionValues = {} )
|
|
11210
10973
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11211
|
-
#set( $expression = \\"$expression$
|
|
11212
|
-
$util.qr($
|
|
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))
|
|
11213
10977
|
#end
|
|
11214
10978
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11215
10979
|
#set( $query = {
|
|
11216
10980
|
\\"expression\\": $expression,
|
|
10981
|
+
\\"expressionNames\\": $expressionNames,
|
|
11217
10982
|
\\"expressionValues\\": $expressionValues
|
|
11218
10983
|
} )
|
|
11219
10984
|
#else
|
|
@@ -11247,6 +11012,7 @@ $util.unauthorized()
|
|
|
11247
11012
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11248
11013
|
$util.unauthorized()
|
|
11249
11014
|
#end
|
|
11015
|
+
$util.toJson({})
|
|
11250
11016
|
## [End] Sandbox Mode Disabled. **",
|
|
11251
11017
|
"Query.getEntity.req.vtl": "## [Start] Get Request template. **
|
|
11252
11018
|
#set( $GetRequest = {
|
|
@@ -11255,14 +11021,17 @@ $util.unauthorized()
|
|
|
11255
11021
|
} )
|
|
11256
11022
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11257
11023
|
#set( $expression = \\"\\" )
|
|
11024
|
+
#set( $expressionNames = {} )
|
|
11258
11025
|
#set( $expressionValues = {} )
|
|
11259
11026
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11260
|
-
#set( $expression = \\"$expression$
|
|
11261
|
-
$util.qr($
|
|
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))
|
|
11262
11030
|
#end
|
|
11263
11031
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11264
11032
|
#set( $query = {
|
|
11265
11033
|
\\"expression\\": $expression,
|
|
11034
|
+
\\"expressionNames\\": $expressionNames,
|
|
11266
11035
|
\\"expressionValues\\": $expressionValues
|
|
11267
11036
|
} )
|
|
11268
11037
|
#else
|
|
@@ -11296,6 +11065,7 @@ $util.unauthorized()
|
|
|
11296
11065
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11297
11066
|
$util.unauthorized()
|
|
11298
11067
|
#end
|
|
11068
|
+
$util.toJson({})
|
|
11299
11069
|
## [End] Sandbox Mode Disabled. **",
|
|
11300
11070
|
"Query.getPost.req.vtl": "## [Start] Get Request template. **
|
|
11301
11071
|
#set( $GetRequest = {
|
|
@@ -11304,14 +11074,17 @@ $util.unauthorized()
|
|
|
11304
11074
|
} )
|
|
11305
11075
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11306
11076
|
#set( $expression = \\"\\" )
|
|
11077
|
+
#set( $expressionNames = {} )
|
|
11307
11078
|
#set( $expressionValues = {} )
|
|
11308
11079
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11309
|
-
#set( $expression = \\"$expression$
|
|
11310
|
-
$util.qr($
|
|
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))
|
|
11311
11083
|
#end
|
|
11312
11084
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11313
11085
|
#set( $query = {
|
|
11314
11086
|
\\"expression\\": $expression,
|
|
11087
|
+
\\"expressionNames\\": $expressionNames,
|
|
11315
11088
|
\\"expressionValues\\": $expressionValues
|
|
11316
11089
|
} )
|
|
11317
11090
|
#else
|
|
@@ -11345,6 +11118,7 @@ $util.unauthorized()
|
|
|
11345
11118
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11346
11119
|
$util.unauthorized()
|
|
11347
11120
|
#end
|
|
11121
|
+
$util.toJson({})
|
|
11348
11122
|
## [End] Sandbox Mode Disabled. **",
|
|
11349
11123
|
"Query.getRequire.req.vtl": "## [Start] Get Request template. **
|
|
11350
11124
|
#set( $GetRequest = {
|
|
@@ -11353,14 +11127,17 @@ $util.unauthorized()
|
|
|
11353
11127
|
} )
|
|
11354
11128
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11355
11129
|
#set( $expression = \\"\\" )
|
|
11130
|
+
#set( $expressionNames = {} )
|
|
11356
11131
|
#set( $expressionValues = {} )
|
|
11357
11132
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11358
|
-
#set( $expression = \\"$expression$
|
|
11359
|
-
$util.qr($
|
|
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))
|
|
11360
11136
|
#end
|
|
11361
11137
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11362
11138
|
#set( $query = {
|
|
11363
11139
|
\\"expression\\": $expression,
|
|
11140
|
+
\\"expressionNames\\": $expressionNames,
|
|
11364
11141
|
\\"expressionValues\\": $expressionValues
|
|
11365
11142
|
} )
|
|
11366
11143
|
#else
|
|
@@ -11394,6 +11171,7 @@ $util.unauthorized()
|
|
|
11394
11171
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11395
11172
|
$util.unauthorized()
|
|
11396
11173
|
#end
|
|
11174
|
+
$util.toJson({})
|
|
11397
11175
|
## [End] Sandbox Mode Disabled. **",
|
|
11398
11176
|
"Query.getTest.req.vtl": "## [Start] Get Request template. **
|
|
11399
11177
|
#set( $GetRequest = {
|
|
@@ -11402,14 +11180,17 @@ $util.unauthorized()
|
|
|
11402
11180
|
} )
|
|
11403
11181
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11404
11182
|
#set( $expression = \\"\\" )
|
|
11183
|
+
#set( $expressionNames = {} )
|
|
11405
11184
|
#set( $expressionValues = {} )
|
|
11406
11185
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11407
|
-
#set( $expression = \\"$expression$
|
|
11408
|
-
$util.qr($
|
|
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))
|
|
11409
11189
|
#end
|
|
11410
11190
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11411
11191
|
#set( $query = {
|
|
11412
11192
|
\\"expression\\": $expression,
|
|
11193
|
+
\\"expressionNames\\": $expressionNames,
|
|
11413
11194
|
\\"expressionValues\\": $expressionValues
|
|
11414
11195
|
} )
|
|
11415
11196
|
#else
|
|
@@ -11443,6 +11224,7 @@ $util.unauthorized()
|
|
|
11443
11224
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11444
11225
|
$util.unauthorized()
|
|
11445
11226
|
#end
|
|
11227
|
+
$util.toJson({})
|
|
11446
11228
|
## [End] Sandbox Mode Disabled. **",
|
|
11447
11229
|
"Query.getUser.req.vtl": "## [Start] Get Request template. **
|
|
11448
11230
|
#set( $GetRequest = {
|
|
@@ -11451,14 +11233,17 @@ $util.unauthorized()
|
|
|
11451
11233
|
} )
|
|
11452
11234
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11453
11235
|
#set( $expression = \\"\\" )
|
|
11236
|
+
#set( $expressionNames = {} )
|
|
11454
11237
|
#set( $expressionValues = {} )
|
|
11455
11238
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11456
|
-
#set( $expression = \\"$expression$
|
|
11457
|
-
$util.qr($
|
|
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))
|
|
11458
11242
|
#end
|
|
11459
11243
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11460
11244
|
#set( $query = {
|
|
11461
11245
|
\\"expression\\": $expression,
|
|
11246
|
+
\\"expressionNames\\": $expressionNames,
|
|
11462
11247
|
\\"expressionValues\\": $expressionValues
|
|
11463
11248
|
} )
|
|
11464
11249
|
#else
|
|
@@ -11492,6 +11277,7 @@ $util.unauthorized()
|
|
|
11492
11277
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11493
11278
|
$util.unauthorized()
|
|
11494
11279
|
#end
|
|
11280
|
+
$util.toJson({})
|
|
11495
11281
|
## [End] Sandbox Mode Disabled. **",
|
|
11496
11282
|
"Query.listAuthors.req.vtl": "## [Start] List Request. **
|
|
11497
11283
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -11505,9 +11291,9 @@ $util.unauthorized()
|
|
|
11505
11291
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11506
11292
|
#set( $filter = $ctx.stash.authFilter )
|
|
11507
11293
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11508
|
-
#set( $filter =
|
|
11294
|
+
#set( $filter = {
|
|
11509
11295
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11510
|
-
}
|
|
11296
|
+
} )
|
|
11511
11297
|
#end
|
|
11512
11298
|
#else
|
|
11513
11299
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11550,6 +11336,7 @@ $util.toJson($ListRequest)
|
|
|
11550
11336
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11551
11337
|
$util.unauthorized()
|
|
11552
11338
|
#end
|
|
11339
|
+
$util.toJson({})
|
|
11553
11340
|
## [End] Sandbox Mode Disabled. **",
|
|
11554
11341
|
"Query.listComments.req.vtl": "## [Start] List Request. **
|
|
11555
11342
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -11563,9 +11350,9 @@ $util.toJson($ListRequest)
|
|
|
11563
11350
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11564
11351
|
#set( $filter = $ctx.stash.authFilter )
|
|
11565
11352
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11566
|
-
#set( $filter =
|
|
11353
|
+
#set( $filter = {
|
|
11567
11354
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11568
|
-
}
|
|
11355
|
+
} )
|
|
11569
11356
|
#end
|
|
11570
11357
|
#else
|
|
11571
11358
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11608,6 +11395,7 @@ $util.toJson($ListRequest)
|
|
|
11608
11395
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11609
11396
|
$util.unauthorized()
|
|
11610
11397
|
#end
|
|
11398
|
+
$util.toJson({})
|
|
11611
11399
|
## [End] Sandbox Mode Disabled. **",
|
|
11612
11400
|
"Query.listEmails.req.vtl": "## [Start] List Request. **
|
|
11613
11401
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -11621,9 +11409,9 @@ $util.toJson($ListRequest)
|
|
|
11621
11409
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11622
11410
|
#set( $filter = $ctx.stash.authFilter )
|
|
11623
11411
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11624
|
-
#set( $filter =
|
|
11412
|
+
#set( $filter = {
|
|
11625
11413
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11626
|
-
}
|
|
11414
|
+
} )
|
|
11627
11415
|
#end
|
|
11628
11416
|
#else
|
|
11629
11417
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11666,6 +11454,7 @@ $util.toJson($ListRequest)
|
|
|
11666
11454
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11667
11455
|
$util.unauthorized()
|
|
11668
11456
|
#end
|
|
11457
|
+
$util.toJson({})
|
|
11669
11458
|
## [End] Sandbox Mode Disabled. **",
|
|
11670
11459
|
"Query.listPosts.req.vtl": "## [Start] List Request. **
|
|
11671
11460
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -11679,9 +11468,9 @@ $util.toJson($ListRequest)
|
|
|
11679
11468
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11680
11469
|
#set( $filter = $ctx.stash.authFilter )
|
|
11681
11470
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11682
|
-
#set( $filter =
|
|
11471
|
+
#set( $filter = {
|
|
11683
11472
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11684
|
-
}
|
|
11473
|
+
} )
|
|
11685
11474
|
#end
|
|
11686
11475
|
#else
|
|
11687
11476
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11724,6 +11513,7 @@ $util.toJson($ListRequest)
|
|
|
11724
11513
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11725
11514
|
$util.unauthorized()
|
|
11726
11515
|
#end
|
|
11516
|
+
$util.toJson({})
|
|
11727
11517
|
## [End] Sandbox Mode Disabled. **",
|
|
11728
11518
|
"Query.listRequires.req.vtl": "## [Start] List Request. **
|
|
11729
11519
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -11737,9 +11527,9 @@ $util.toJson($ListRequest)
|
|
|
11737
11527
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11738
11528
|
#set( $filter = $ctx.stash.authFilter )
|
|
11739
11529
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11740
|
-
#set( $filter =
|
|
11530
|
+
#set( $filter = {
|
|
11741
11531
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11742
|
-
}
|
|
11532
|
+
} )
|
|
11743
11533
|
#end
|
|
11744
11534
|
#else
|
|
11745
11535
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11782,6 +11572,7 @@ $util.toJson($ListRequest)
|
|
|
11782
11572
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11783
11573
|
$util.unauthorized()
|
|
11784
11574
|
#end
|
|
11575
|
+
$util.toJson({})
|
|
11785
11576
|
## [End] Sandbox Mode Disabled. **",
|
|
11786
11577
|
"Query.listTests.req.vtl": "## [Start] List Request. **
|
|
11787
11578
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -11795,9 +11586,9 @@ $util.toJson($ListRequest)
|
|
|
11795
11586
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11796
11587
|
#set( $filter = $ctx.stash.authFilter )
|
|
11797
11588
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11798
|
-
#set( $filter =
|
|
11589
|
+
#set( $filter = {
|
|
11799
11590
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11800
|
-
}
|
|
11591
|
+
} )
|
|
11801
11592
|
#end
|
|
11802
11593
|
#else
|
|
11803
11594
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11840,6 +11631,7 @@ $util.toJson($ListRequest)
|
|
|
11840
11631
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11841
11632
|
$util.unauthorized()
|
|
11842
11633
|
#end
|
|
11634
|
+
$util.toJson({})
|
|
11843
11635
|
## [End] Sandbox Mode Disabled. **",
|
|
11844
11636
|
"Query.listUsers.req.vtl": "## [Start] List Request. **
|
|
11845
11637
|
#set( $limit = $util.defaultIfNull($context.args.limit, 100) )
|
|
@@ -11853,9 +11645,9 @@ $util.toJson($ListRequest)
|
|
|
11853
11645
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11854
11646
|
#set( $filter = $ctx.stash.authFilter )
|
|
11855
11647
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11856
|
-
#set( $filter =
|
|
11648
|
+
#set( $filter = {
|
|
11857
11649
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11858
|
-
}
|
|
11650
|
+
} )
|
|
11859
11651
|
#end
|
|
11860
11652
|
#else
|
|
11861
11653
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11898,14 +11690,15 @@ $util.toJson($ListRequest)
|
|
|
11898
11690
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11899
11691
|
$util.unauthorized()
|
|
11900
11692
|
#end
|
|
11693
|
+
$util.toJson({})
|
|
11901
11694
|
## [End] Sandbox Mode Disabled. **",
|
|
11902
11695
|
"Query.syncPosts.req.vtl": "## [Start] Sync Request template. **
|
|
11903
11696
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11904
11697
|
#set( $filter = $ctx.stash.authFilter )
|
|
11905
11698
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11906
|
-
#set( $filter =
|
|
11699
|
+
#set( $filter = {
|
|
11907
11700
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11908
|
-
}
|
|
11701
|
+
} )
|
|
11909
11702
|
#end
|
|
11910
11703
|
#else
|
|
11911
11704
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11945,6 +11738,7 @@ null
|
|
|
11945
11738
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11946
11739
|
$util.unauthorized()
|
|
11947
11740
|
#end
|
|
11741
|
+
$util.toJson({})
|
|
11948
11742
|
## [End] Sandbox Mode Disabled. **",
|
|
11949
11743
|
"Subscription.onCreateAuthor.req.vtl": "## [Start] Subscription Request template. **
|
|
11950
11744
|
$util.toJson({
|
|
@@ -11952,13 +11746,14 @@ $util.toJson({
|
|
|
11952
11746
|
\\"payload\\": {}
|
|
11953
11747
|
})
|
|
11954
11748
|
## [End] Subscription Request template. **",
|
|
11955
|
-
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription
|
|
11749
|
+
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
11956
11750
|
$util.toJson(null)
|
|
11957
|
-
## [End] Subscription
|
|
11751
|
+
## [End] Subscription Response template. **",
|
|
11958
11752
|
"Subscription.onCreateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
11959
11753
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11960
11754
|
$util.unauthorized()
|
|
11961
11755
|
#end
|
|
11756
|
+
$util.toJson({})
|
|
11962
11757
|
## [End] Sandbox Mode Disabled. **",
|
|
11963
11758
|
"Subscription.onCreateComment.req.vtl": "## [Start] Subscription Request template. **
|
|
11964
11759
|
$util.toJson({
|
|
@@ -11966,13 +11761,14 @@ $util.toJson({
|
|
|
11966
11761
|
\\"payload\\": {}
|
|
11967
11762
|
})
|
|
11968
11763
|
## [End] Subscription Request template. **",
|
|
11969
|
-
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription
|
|
11764
|
+
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
11970
11765
|
$util.toJson(null)
|
|
11971
|
-
## [End] Subscription
|
|
11766
|
+
## [End] Subscription Response template. **",
|
|
11972
11767
|
"Subscription.onCreateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
11973
11768
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11974
11769
|
$util.unauthorized()
|
|
11975
11770
|
#end
|
|
11771
|
+
$util.toJson({})
|
|
11976
11772
|
## [End] Sandbox Mode Disabled. **",
|
|
11977
11773
|
"Subscription.onCreateEmail.req.vtl": "## [Start] Subscription Request template. **
|
|
11978
11774
|
$util.toJson({
|
|
@@ -11980,13 +11776,14 @@ $util.toJson({
|
|
|
11980
11776
|
\\"payload\\": {}
|
|
11981
11777
|
})
|
|
11982
11778
|
## [End] Subscription Request template. **",
|
|
11983
|
-
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription
|
|
11779
|
+
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
11984
11780
|
$util.toJson(null)
|
|
11985
|
-
## [End] Subscription
|
|
11781
|
+
## [End] Subscription Response template. **",
|
|
11986
11782
|
"Subscription.onCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
11987
11783
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
11988
11784
|
$util.unauthorized()
|
|
11989
11785
|
#end
|
|
11786
|
+
$util.toJson({})
|
|
11990
11787
|
## [End] Sandbox Mode Disabled. **",
|
|
11991
11788
|
"Subscription.onCreatePost.req.vtl": "## [Start] Subscription Request template. **
|
|
11992
11789
|
$util.toJson({
|
|
@@ -11994,13 +11791,14 @@ $util.toJson({
|
|
|
11994
11791
|
\\"payload\\": {}
|
|
11995
11792
|
})
|
|
11996
11793
|
## [End] Subscription Request template. **",
|
|
11997
|
-
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription
|
|
11794
|
+
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
11998
11795
|
$util.toJson(null)
|
|
11999
|
-
## [End] Subscription
|
|
11796
|
+
## [End] Subscription Response template. **",
|
|
12000
11797
|
"Subscription.onCreateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12001
11798
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12002
11799
|
$util.unauthorized()
|
|
12003
11800
|
#end
|
|
11801
|
+
$util.toJson({})
|
|
12004
11802
|
## [End] Sandbox Mode Disabled. **",
|
|
12005
11803
|
"Subscription.onCreateRequire.req.vtl": "## [Start] Subscription Request template. **
|
|
12006
11804
|
$util.toJson({
|
|
@@ -12008,13 +11806,14 @@ $util.toJson({
|
|
|
12008
11806
|
\\"payload\\": {}
|
|
12009
11807
|
})
|
|
12010
11808
|
## [End] Subscription Request template. **",
|
|
12011
|
-
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription
|
|
11809
|
+
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
12012
11810
|
$util.toJson(null)
|
|
12013
|
-
## [End] Subscription
|
|
11811
|
+
## [End] Subscription Response template. **",
|
|
12014
11812
|
"Subscription.onCreateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12015
11813
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12016
11814
|
$util.unauthorized()
|
|
12017
11815
|
#end
|
|
11816
|
+
$util.toJson({})
|
|
12018
11817
|
## [End] Sandbox Mode Disabled. **",
|
|
12019
11818
|
"Subscription.onCreateTest.req.vtl": "## [Start] Subscription Request template. **
|
|
12020
11819
|
$util.toJson({
|
|
@@ -12022,13 +11821,14 @@ $util.toJson({
|
|
|
12022
11821
|
\\"payload\\": {}
|
|
12023
11822
|
})
|
|
12024
11823
|
## [End] Subscription Request template. **",
|
|
12025
|
-
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription
|
|
11824
|
+
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
12026
11825
|
$util.toJson(null)
|
|
12027
|
-
## [End] Subscription
|
|
11826
|
+
## [End] Subscription Response template. **",
|
|
12028
11827
|
"Subscription.onCreateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12029
11828
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12030
11829
|
$util.unauthorized()
|
|
12031
11830
|
#end
|
|
11831
|
+
$util.toJson({})
|
|
12032
11832
|
## [End] Sandbox Mode Disabled. **",
|
|
12033
11833
|
"Subscription.onCreateUser.req.vtl": "## [Start] Subscription Request template. **
|
|
12034
11834
|
$util.toJson({
|
|
@@ -12036,13 +11836,14 @@ $util.toJson({
|
|
|
12036
11836
|
\\"payload\\": {}
|
|
12037
11837
|
})
|
|
12038
11838
|
## [End] Subscription Request template. **",
|
|
12039
|
-
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription
|
|
11839
|
+
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
12040
11840
|
$util.toJson(null)
|
|
12041
|
-
## [End] Subscription
|
|
11841
|
+
## [End] Subscription Response template. **",
|
|
12042
11842
|
"Subscription.onDeleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12043
11843
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12044
11844
|
$util.unauthorized()
|
|
12045
11845
|
#end
|
|
11846
|
+
$util.toJson({})
|
|
12046
11847
|
## [End] Sandbox Mode Disabled. **",
|
|
12047
11848
|
"Subscription.onDeleteAuthor.req.vtl": "## [Start] Subscription Request template. **
|
|
12048
11849
|
$util.toJson({
|
|
@@ -12050,13 +11851,14 @@ $util.toJson({
|
|
|
12050
11851
|
\\"payload\\": {}
|
|
12051
11852
|
})
|
|
12052
11853
|
## [End] Subscription Request template. **",
|
|
12053
|
-
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription
|
|
11854
|
+
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
12054
11855
|
$util.toJson(null)
|
|
12055
|
-
## [End] Subscription
|
|
11856
|
+
## [End] Subscription Response template. **",
|
|
12056
11857
|
"Subscription.onDeleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12057
11858
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12058
11859
|
$util.unauthorized()
|
|
12059
11860
|
#end
|
|
11861
|
+
$util.toJson({})
|
|
12060
11862
|
## [End] Sandbox Mode Disabled. **",
|
|
12061
11863
|
"Subscription.onDeleteComment.req.vtl": "## [Start] Subscription Request template. **
|
|
12062
11864
|
$util.toJson({
|
|
@@ -12064,13 +11866,14 @@ $util.toJson({
|
|
|
12064
11866
|
\\"payload\\": {}
|
|
12065
11867
|
})
|
|
12066
11868
|
## [End] Subscription Request template. **",
|
|
12067
|
-
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription
|
|
11869
|
+
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Response template. **
|
|
12068
11870
|
$util.toJson(null)
|
|
12069
|
-
## [End] Subscription
|
|
11871
|
+
## [End] Subscription Response template. **",
|
|
12070
11872
|
"Subscription.onDeleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12071
11873
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12072
11874
|
$util.unauthorized()
|
|
12073
11875
|
#end
|
|
11876
|
+
$util.toJson({})
|
|
12074
11877
|
## [End] Sandbox Mode Disabled. **",
|
|
12075
11878
|
"Subscription.onDeleteEmail.req.vtl": "## [Start] Subscription Request template. **
|
|
12076
11879
|
$util.toJson({
|
|
@@ -12078,13 +11881,14 @@ $util.toJson({
|
|
|
12078
11881
|
\\"payload\\": {}
|
|
12079
11882
|
})
|
|
12080
11883
|
## [End] Subscription Request template. **",
|
|
12081
|
-
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription
|
|
11884
|
+
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
12082
11885
|
$util.toJson(null)
|
|
12083
|
-
## [End] Subscription
|
|
11886
|
+
## [End] Subscription Response template. **",
|
|
12084
11887
|
"Subscription.onDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12085
11888
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12086
11889
|
$util.unauthorized()
|
|
12087
11890
|
#end
|
|
11891
|
+
$util.toJson({})
|
|
12088
11892
|
## [End] Sandbox Mode Disabled. **",
|
|
12089
11893
|
"Subscription.onDeletePost.req.vtl": "## [Start] Subscription Request template. **
|
|
12090
11894
|
$util.toJson({
|
|
@@ -12092,13 +11896,14 @@ $util.toJson({
|
|
|
12092
11896
|
\\"payload\\": {}
|
|
12093
11897
|
})
|
|
12094
11898
|
## [End] Subscription Request template. **",
|
|
12095
|
-
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription
|
|
11899
|
+
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription Response template. **
|
|
12096
11900
|
$util.toJson(null)
|
|
12097
|
-
## [End] Subscription
|
|
11901
|
+
## [End] Subscription Response template. **",
|
|
12098
11902
|
"Subscription.onDeleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12099
11903
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12100
11904
|
$util.unauthorized()
|
|
12101
11905
|
#end
|
|
11906
|
+
$util.toJson({})
|
|
12102
11907
|
## [End] Sandbox Mode Disabled. **",
|
|
12103
11908
|
"Subscription.onDeleteRequire.req.vtl": "## [Start] Subscription Request template. **
|
|
12104
11909
|
$util.toJson({
|
|
@@ -12106,13 +11911,14 @@ $util.toJson({
|
|
|
12106
11911
|
\\"payload\\": {}
|
|
12107
11912
|
})
|
|
12108
11913
|
## [End] Subscription Request template. **",
|
|
12109
|
-
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription
|
|
11914
|
+
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
12110
11915
|
$util.toJson(null)
|
|
12111
|
-
## [End] Subscription
|
|
11916
|
+
## [End] Subscription Response template. **",
|
|
12112
11917
|
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12113
11918
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12114
11919
|
$util.unauthorized()
|
|
12115
11920
|
#end
|
|
11921
|
+
$util.toJson({})
|
|
12116
11922
|
## [End] Sandbox Mode Disabled. **",
|
|
12117
11923
|
"Subscription.onDeleteTest.req.vtl": "## [Start] Subscription Request template. **
|
|
12118
11924
|
$util.toJson({
|
|
@@ -12120,13 +11926,14 @@ $util.toJson({
|
|
|
12120
11926
|
\\"payload\\": {}
|
|
12121
11927
|
})
|
|
12122
11928
|
## [End] Subscription Request template. **",
|
|
12123
|
-
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription
|
|
11929
|
+
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
|
|
12124
11930
|
$util.toJson(null)
|
|
12125
|
-
## [End] Subscription
|
|
11931
|
+
## [End] Subscription Response template. **",
|
|
12126
11932
|
"Subscription.onDeleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12127
11933
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12128
11934
|
$util.unauthorized()
|
|
12129
11935
|
#end
|
|
11936
|
+
$util.toJson({})
|
|
12130
11937
|
## [End] Sandbox Mode Disabled. **",
|
|
12131
11938
|
"Subscription.onDeleteUser.req.vtl": "## [Start] Subscription Request template. **
|
|
12132
11939
|
$util.toJson({
|
|
@@ -12134,13 +11941,14 @@ $util.toJson({
|
|
|
12134
11941
|
\\"payload\\": {}
|
|
12135
11942
|
})
|
|
12136
11943
|
## [End] Subscription Request template. **",
|
|
12137
|
-
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription
|
|
11944
|
+
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Response template. **
|
|
12138
11945
|
$util.toJson(null)
|
|
12139
|
-
## [End] Subscription
|
|
11946
|
+
## [End] Subscription Response template. **",
|
|
12140
11947
|
"Subscription.onUpdateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12141
11948
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12142
11949
|
$util.unauthorized()
|
|
12143
11950
|
#end
|
|
11951
|
+
$util.toJson({})
|
|
12144
11952
|
## [End] Sandbox Mode Disabled. **",
|
|
12145
11953
|
"Subscription.onUpdateAuthor.req.vtl": "## [Start] Subscription Request template. **
|
|
12146
11954
|
$util.toJson({
|
|
@@ -12148,13 +11956,14 @@ $util.toJson({
|
|
|
12148
11956
|
\\"payload\\": {}
|
|
12149
11957
|
})
|
|
12150
11958
|
## [End] Subscription Request template. **",
|
|
12151
|
-
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription
|
|
11959
|
+
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
12152
11960
|
$util.toJson(null)
|
|
12153
|
-
## [End] Subscription
|
|
11961
|
+
## [End] Subscription Response template. **",
|
|
12154
11962
|
"Subscription.onUpdateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12155
11963
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12156
11964
|
$util.unauthorized()
|
|
12157
11965
|
#end
|
|
11966
|
+
$util.toJson({})
|
|
12158
11967
|
## [End] Sandbox Mode Disabled. **",
|
|
12159
11968
|
"Subscription.onUpdateComment.req.vtl": "## [Start] Subscription Request template. **
|
|
12160
11969
|
$util.toJson({
|
|
@@ -12162,13 +11971,14 @@ $util.toJson({
|
|
|
12162
11971
|
\\"payload\\": {}
|
|
12163
11972
|
})
|
|
12164
11973
|
## [End] Subscription Request template. **",
|
|
12165
|
-
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription
|
|
11974
|
+
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
12166
11975
|
$util.toJson(null)
|
|
12167
|
-
## [End] Subscription
|
|
11976
|
+
## [End] Subscription Response template. **",
|
|
12168
11977
|
"Subscription.onUpdateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12169
11978
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12170
11979
|
$util.unauthorized()
|
|
12171
11980
|
#end
|
|
11981
|
+
$util.toJson({})
|
|
12172
11982
|
## [End] Sandbox Mode Disabled. **",
|
|
12173
11983
|
"Subscription.onUpdateEmail.req.vtl": "## [Start] Subscription Request template. **
|
|
12174
11984
|
$util.toJson({
|
|
@@ -12176,13 +11986,14 @@ $util.toJson({
|
|
|
12176
11986
|
\\"payload\\": {}
|
|
12177
11987
|
})
|
|
12178
11988
|
## [End] Subscription Request template. **",
|
|
12179
|
-
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription
|
|
11989
|
+
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
12180
11990
|
$util.toJson(null)
|
|
12181
|
-
## [End] Subscription
|
|
11991
|
+
## [End] Subscription Response template. **",
|
|
12182
11992
|
"Subscription.onUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12183
11993
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12184
11994
|
$util.unauthorized()
|
|
12185
11995
|
#end
|
|
11996
|
+
$util.toJson({})
|
|
12186
11997
|
## [End] Sandbox Mode Disabled. **",
|
|
12187
11998
|
"Subscription.onUpdatePost.req.vtl": "## [Start] Subscription Request template. **
|
|
12188
11999
|
$util.toJson({
|
|
@@ -12190,13 +12001,14 @@ $util.toJson({
|
|
|
12190
12001
|
\\"payload\\": {}
|
|
12191
12002
|
})
|
|
12192
12003
|
## [End] Subscription Request template. **",
|
|
12193
|
-
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription
|
|
12004
|
+
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
12194
12005
|
$util.toJson(null)
|
|
12195
|
-
## [End] Subscription
|
|
12006
|
+
## [End] Subscription Response template. **",
|
|
12196
12007
|
"Subscription.onUpdateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12197
12008
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12198
12009
|
$util.unauthorized()
|
|
12199
12010
|
#end
|
|
12011
|
+
$util.toJson({})
|
|
12200
12012
|
## [End] Sandbox Mode Disabled. **",
|
|
12201
12013
|
"Subscription.onUpdateRequire.req.vtl": "## [Start] Subscription Request template. **
|
|
12202
12014
|
$util.toJson({
|
|
@@ -12204,13 +12016,14 @@ $util.toJson({
|
|
|
12204
12016
|
\\"payload\\": {}
|
|
12205
12017
|
})
|
|
12206
12018
|
## [End] Subscription Request template. **",
|
|
12207
|
-
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription
|
|
12019
|
+
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
12208
12020
|
$util.toJson(null)
|
|
12209
|
-
## [End] Subscription
|
|
12021
|
+
## [End] Subscription Response template. **",
|
|
12210
12022
|
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12211
12023
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12212
12024
|
$util.unauthorized()
|
|
12213
12025
|
#end
|
|
12026
|
+
$util.toJson({})
|
|
12214
12027
|
## [End] Sandbox Mode Disabled. **",
|
|
12215
12028
|
"Subscription.onUpdateTest.req.vtl": "## [Start] Subscription Request template. **
|
|
12216
12029
|
$util.toJson({
|
|
@@ -12218,13 +12031,14 @@ $util.toJson({
|
|
|
12218
12031
|
\\"payload\\": {}
|
|
12219
12032
|
})
|
|
12220
12033
|
## [End] Subscription Request template. **",
|
|
12221
|
-
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription
|
|
12034
|
+
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
12222
12035
|
$util.toJson(null)
|
|
12223
|
-
## [End] Subscription
|
|
12036
|
+
## [End] Subscription Response template. **",
|
|
12224
12037
|
"Subscription.onUpdateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12225
12038
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12226
12039
|
$util.unauthorized()
|
|
12227
12040
|
#end
|
|
12041
|
+
$util.toJson({})
|
|
12228
12042
|
## [End] Sandbox Mode Disabled. **",
|
|
12229
12043
|
"Subscription.onUpdateUser.req.vtl": "## [Start] Subscription Request template. **
|
|
12230
12044
|
$util.toJson({
|
|
@@ -12232,9 +12046,9 @@ $util.toJson({
|
|
|
12232
12046
|
\\"payload\\": {}
|
|
12233
12047
|
})
|
|
12234
12048
|
## [End] Subscription Request template. **",
|
|
12235
|
-
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription
|
|
12049
|
+
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
12236
12050
|
$util.toJson(null)
|
|
12237
|
-
## [End] Subscription
|
|
12051
|
+
## [End] Subscription Response template. **",
|
|
12238
12052
|
}
|
|
12239
12053
|
`;
|
|
12240
12054
|
|
|
@@ -12339,7 +12153,7 @@ enum ModelSortDirection {
|
|
|
12339
12153
|
}
|
|
12340
12154
|
|
|
12341
12155
|
type ModelPostConnection {
|
|
12342
|
-
items: [Post]
|
|
12156
|
+
items: [Post!]!
|
|
12343
12157
|
nextToken: String
|
|
12344
12158
|
}
|
|
12345
12159
|
|
|
@@ -12402,25 +12216,6 @@ type Subscription {
|
|
|
12402
12216
|
|
|
12403
12217
|
exports[`ModelTransformer: should have timestamps as nullable fields when the type makes it non-nullable 2`] = `
|
|
12404
12218
|
"## [Start] Create Request template. **
|
|
12405
|
-
## Begin - key condition **
|
|
12406
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
12407
|
-
#set( $keyConditionExpr = {} )
|
|
12408
|
-
#set( $keyConditionExprNames = {} )
|
|
12409
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
12410
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
12411
|
-
\\"attributeExists\\": false
|
|
12412
|
-
}))
|
|
12413
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
12414
|
-
#end
|
|
12415
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
12416
|
-
#else
|
|
12417
|
-
$util.qr($ctx.stash.conditions.add({
|
|
12418
|
-
\\"id\\": {
|
|
12419
|
-
\\"attributeExists\\": false
|
|
12420
|
-
}
|
|
12421
|
-
}))
|
|
12422
|
-
#end
|
|
12423
|
-
## End - key condition **
|
|
12424
12219
|
## Set the default values to put request **
|
|
12425
12220
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
12426
12221
|
## copy the values from input **
|
|
@@ -12621,25 +12416,6 @@ $util.toJson($UpdateItem)
|
|
|
12621
12416
|
|
|
12622
12417
|
exports[`ModelTransformer: should not add default primary key when ID is defined 1`] = `
|
|
12623
12418
|
"## [Start] Create Request template. **
|
|
12624
|
-
## Begin - key condition **
|
|
12625
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
12626
|
-
#set( $keyConditionExpr = {} )
|
|
12627
|
-
#set( $keyConditionExprNames = {} )
|
|
12628
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
12629
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
12630
|
-
\\"attributeExists\\": false
|
|
12631
|
-
}))
|
|
12632
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
12633
|
-
#end
|
|
12634
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
12635
|
-
#else
|
|
12636
|
-
$util.qr($ctx.stash.conditions.add({
|
|
12637
|
-
\\"id\\": {
|
|
12638
|
-
\\"attributeExists\\": false
|
|
12639
|
-
}
|
|
12640
|
-
}))
|
|
12641
|
-
#end
|
|
12642
|
-
## End - key condition **
|
|
12643
12419
|
## Set the default values to put request **
|
|
12644
12420
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
12645
12421
|
## copy the values from input **
|
|
@@ -12914,7 +12690,7 @@ enum ModelSortDirection {
|
|
|
12914
12690
|
}
|
|
12915
12691
|
|
|
12916
12692
|
type ModelPostConnection {
|
|
12917
|
-
items: [Post]
|
|
12693
|
+
items: [Post!]!
|
|
12918
12694
|
nextToken: String
|
|
12919
12695
|
}
|
|
12920
12696
|
|
|
@@ -12977,25 +12753,6 @@ type Subscription {
|
|
|
12977
12753
|
|
|
12978
12754
|
exports[`ModelTransformer: should not to auto generate createdAt and updatedAt when the type in schema is not AWSDateTime 2`] = `
|
|
12979
12755
|
"## [Start] Create Request template. **
|
|
12980
|
-
## Begin - key condition **
|
|
12981
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
12982
|
-
#set( $keyConditionExpr = {} )
|
|
12983
|
-
#set( $keyConditionExprNames = {} )
|
|
12984
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
12985
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
12986
|
-
\\"attributeExists\\": false
|
|
12987
|
-
}))
|
|
12988
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
12989
|
-
#end
|
|
12990
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
12991
|
-
#else
|
|
12992
|
-
$util.qr($ctx.stash.conditions.add({
|
|
12993
|
-
\\"id\\": {
|
|
12994
|
-
\\"attributeExists\\": false
|
|
12995
|
-
}
|
|
12996
|
-
}))
|
|
12997
|
-
#end
|
|
12998
|
-
## End - key condition **
|
|
12999
12756
|
## Set the default values to put request **
|
|
13000
12757
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
13001
12758
|
## copy the values from input **
|
|
@@ -13293,7 +13050,7 @@ enum ModelSortDirection {
|
|
|
13293
13050
|
}
|
|
13294
13051
|
|
|
13295
13052
|
type ModelPostConnection {
|
|
13296
|
-
items: [Post]
|
|
13053
|
+
items: [Post!]!
|
|
13297
13054
|
nextToken: String
|
|
13298
13055
|
}
|
|
13299
13056
|
|
|
@@ -13348,25 +13105,6 @@ type Subscription {
|
|
|
13348
13105
|
|
|
13349
13106
|
exports[`ModelTransformer: should not to include createdAt and updatedAt field when timestamps is set to null 2`] = `
|
|
13350
13107
|
"## [Start] Create Request template. **
|
|
13351
|
-
## Begin - key condition **
|
|
13352
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
13353
|
-
#set( $keyConditionExpr = {} )
|
|
13354
|
-
#set( $keyConditionExprNames = {} )
|
|
13355
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
13356
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
13357
|
-
\\"attributeExists\\": false
|
|
13358
|
-
}))
|
|
13359
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
13360
|
-
#end
|
|
13361
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
13362
|
-
#else
|
|
13363
|
-
$util.qr($ctx.stash.conditions.add({
|
|
13364
|
-
\\"id\\": {
|
|
13365
|
-
\\"attributeExists\\": false
|
|
13366
|
-
}
|
|
13367
|
-
}))
|
|
13368
|
-
#end
|
|
13369
|
-
## End - key condition **
|
|
13370
13108
|
## Set the default values to put request **
|
|
13371
13109
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
13372
13110
|
## copy the values from input **
|
|
@@ -13666,7 +13404,7 @@ enum ModelSortDirection {
|
|
|
13666
13404
|
}
|
|
13667
13405
|
|
|
13668
13406
|
type ModelPostConnection {
|
|
13669
|
-
items: [Post]
|
|
13407
|
+
items: [Post!]!
|
|
13670
13408
|
nextToken: String
|
|
13671
13409
|
}
|
|
13672
13410
|
|
|
@@ -13721,25 +13459,6 @@ type Subscription {
|
|
|
13721
13459
|
|
|
13722
13460
|
exports[`ModelTransformer: should support timestamp parameters when generating pipelineFunctions and output schema 2`] = `
|
|
13723
13461
|
"## [Start] Create Request template. **
|
|
13724
|
-
## Begin - key condition **
|
|
13725
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
13726
|
-
#set( $keyConditionExpr = {} )
|
|
13727
|
-
#set( $keyConditionExprNames = {} )
|
|
13728
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
13729
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
13730
|
-
\\"attributeExists\\": false
|
|
13731
|
-
}))
|
|
13732
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
13733
|
-
#end
|
|
13734
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
13735
|
-
#else
|
|
13736
|
-
$util.qr($ctx.stash.conditions.add({
|
|
13737
|
-
\\"id\\": {
|
|
13738
|
-
\\"attributeExists\\": false
|
|
13739
|
-
}
|
|
13740
|
-
}))
|
|
13741
|
-
#end
|
|
13742
|
-
## End - key condition **
|
|
13743
13462
|
## Set the default values to put request **
|
|
13744
13463
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
13745
13464
|
## copy the values from input **
|