@aws-amplify/graphql-model-transformer 0.7.0-auth-dir-v-next.4 → 0.8.0-beta.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 +11 -29
- 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 +1 -1
- 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 +326 -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 +1 -1
- 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
|
|
|
@@ -603,25 +603,6 @@ $util.toJson({
|
|
|
603
603
|
$util.toJson({})
|
|
604
604
|
## [End] Sandbox Mode Disabled. **",
|
|
605
605
|
"Mutation.createAuthor.req.vtl": "## [Start] Create Request template. **
|
|
606
|
-
## Begin - key condition **
|
|
607
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
608
|
-
#set( $keyConditionExpr = {} )
|
|
609
|
-
#set( $keyConditionExprNames = {} )
|
|
610
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
611
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
612
|
-
\\"attributeExists\\": false
|
|
613
|
-
}))
|
|
614
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
615
|
-
#end
|
|
616
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
617
|
-
#else
|
|
618
|
-
$util.qr($ctx.stash.conditions.add({
|
|
619
|
-
\\"id\\": {
|
|
620
|
-
\\"attributeExists\\": false
|
|
621
|
-
}
|
|
622
|
-
}))
|
|
623
|
-
#end
|
|
624
|
-
## End - key condition **
|
|
625
606
|
## Set the default values to put request **
|
|
626
607
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
627
608
|
## copy the values from input **
|
|
@@ -712,25 +693,6 @@ $util.toJson({
|
|
|
712
693
|
$util.toJson({})
|
|
713
694
|
## [End] Sandbox Mode Disabled. **",
|
|
714
695
|
"Mutation.createComment.req.vtl": "## [Start] Create Request template. **
|
|
715
|
-
## Begin - key condition **
|
|
716
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
717
|
-
#set( $keyConditionExpr = {} )
|
|
718
|
-
#set( $keyConditionExprNames = {} )
|
|
719
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
720
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
721
|
-
\\"attributeExists\\": false
|
|
722
|
-
}))
|
|
723
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
724
|
-
#end
|
|
725
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
726
|
-
#else
|
|
727
|
-
$util.qr($ctx.stash.conditions.add({
|
|
728
|
-
\\"id\\": {
|
|
729
|
-
\\"attributeExists\\": false
|
|
730
|
-
}
|
|
731
|
-
}))
|
|
732
|
-
#end
|
|
733
|
-
## End - key condition **
|
|
734
696
|
## Set the default values to put request **
|
|
735
697
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
736
698
|
## copy the values from input **
|
|
@@ -821,25 +783,6 @@ $util.toJson({
|
|
|
821
783
|
$util.toJson({})
|
|
822
784
|
## [End] Sandbox Mode Disabled. **",
|
|
823
785
|
"Mutation.createEmail.req.vtl": "## [Start] Create Request template. **
|
|
824
|
-
## Begin - key condition **
|
|
825
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
826
|
-
#set( $keyConditionExpr = {} )
|
|
827
|
-
#set( $keyConditionExprNames = {} )
|
|
828
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
829
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
830
|
-
\\"attributeExists\\": false
|
|
831
|
-
}))
|
|
832
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
833
|
-
#end
|
|
834
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
835
|
-
#else
|
|
836
|
-
$util.qr($ctx.stash.conditions.add({
|
|
837
|
-
\\"id\\": {
|
|
838
|
-
\\"attributeExists\\": false
|
|
839
|
-
}
|
|
840
|
-
}))
|
|
841
|
-
#end
|
|
842
|
-
## End - key condition **
|
|
843
786
|
## Set the default values to put request **
|
|
844
787
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
845
788
|
## copy the values from input **
|
|
@@ -930,25 +873,6 @@ $util.toJson({
|
|
|
930
873
|
$util.toJson({})
|
|
931
874
|
## [End] Sandbox Mode Disabled. **",
|
|
932
875
|
"Mutation.createPost.req.vtl": "## [Start] Create Request template. **
|
|
933
|
-
## Begin - key condition **
|
|
934
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
935
|
-
#set( $keyConditionExpr = {} )
|
|
936
|
-
#set( $keyConditionExprNames = {} )
|
|
937
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
938
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
939
|
-
\\"attributeExists\\": false
|
|
940
|
-
}))
|
|
941
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
942
|
-
#end
|
|
943
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
944
|
-
#else
|
|
945
|
-
$util.qr($ctx.stash.conditions.add({
|
|
946
|
-
\\"id\\": {
|
|
947
|
-
\\"attributeExists\\": false
|
|
948
|
-
}
|
|
949
|
-
}))
|
|
950
|
-
#end
|
|
951
|
-
## End - key condition **
|
|
952
876
|
## Set the default values to put request **
|
|
953
877
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
954
878
|
## copy the values from input **
|
|
@@ -1039,25 +963,6 @@ $util.toJson({
|
|
|
1039
963
|
$util.toJson({})
|
|
1040
964
|
## [End] Sandbox Mode Disabled. **",
|
|
1041
965
|
"Mutation.createRequire.req.vtl": "## [Start] Create Request template. **
|
|
1042
|
-
## Begin - key condition **
|
|
1043
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
1044
|
-
#set( $keyConditionExpr = {} )
|
|
1045
|
-
#set( $keyConditionExprNames = {} )
|
|
1046
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
1047
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
1048
|
-
\\"attributeExists\\": false
|
|
1049
|
-
}))
|
|
1050
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
1051
|
-
#end
|
|
1052
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
1053
|
-
#else
|
|
1054
|
-
$util.qr($ctx.stash.conditions.add({
|
|
1055
|
-
\\"id\\": {
|
|
1056
|
-
\\"attributeExists\\": false
|
|
1057
|
-
}
|
|
1058
|
-
}))
|
|
1059
|
-
#end
|
|
1060
|
-
## End - key condition **
|
|
1061
966
|
## Set the default values to put request **
|
|
1062
967
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
1063
968
|
## copy the values from input **
|
|
@@ -1148,25 +1053,6 @@ $util.toJson({
|
|
|
1148
1053
|
$util.toJson({})
|
|
1149
1054
|
## [End] Sandbox Mode Disabled. **",
|
|
1150
1055
|
"Mutation.createTest.req.vtl": "## [Start] Create Request template. **
|
|
1151
|
-
## Begin - key condition **
|
|
1152
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
1153
|
-
#set( $keyConditionExpr = {} )
|
|
1154
|
-
#set( $keyConditionExprNames = {} )
|
|
1155
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
1156
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
1157
|
-
\\"attributeExists\\": false
|
|
1158
|
-
}))
|
|
1159
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
1160
|
-
#end
|
|
1161
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
1162
|
-
#else
|
|
1163
|
-
$util.qr($ctx.stash.conditions.add({
|
|
1164
|
-
\\"id\\": {
|
|
1165
|
-
\\"attributeExists\\": false
|
|
1166
|
-
}
|
|
1167
|
-
}))
|
|
1168
|
-
#end
|
|
1169
|
-
## End - key condition **
|
|
1170
1056
|
## Set the default values to put request **
|
|
1171
1057
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
1172
1058
|
## copy the values from input **
|
|
@@ -1257,25 +1143,6 @@ $util.toJson({
|
|
|
1257
1143
|
$util.toJson({})
|
|
1258
1144
|
## [End] Sandbox Mode Disabled. **",
|
|
1259
1145
|
"Mutation.createUser.req.vtl": "## [Start] Create Request template. **
|
|
1260
|
-
## Begin - key condition **
|
|
1261
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
1262
|
-
#set( $keyConditionExpr = {} )
|
|
1263
|
-
#set( $keyConditionExprNames = {} )
|
|
1264
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
1265
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
1266
|
-
\\"attributeExists\\": false
|
|
1267
|
-
}))
|
|
1268
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
1269
|
-
#end
|
|
1270
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
1271
|
-
#else
|
|
1272
|
-
$util.qr($ctx.stash.conditions.add({
|
|
1273
|
-
\\"id\\": {
|
|
1274
|
-
\\"attributeExists\\": false
|
|
1275
|
-
}
|
|
1276
|
-
}))
|
|
1277
|
-
#end
|
|
1278
|
-
## End - key condition **
|
|
1279
1146
|
## Set the default values to put request **
|
|
1280
1147
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
1281
1148
|
## copy the values from input **
|
|
@@ -1366,25 +1233,6 @@ $util.toJson({
|
|
|
1366
1233
|
$util.toJson({})
|
|
1367
1234
|
## [End] Sandbox Mode Disabled. **",
|
|
1368
1235
|
"Mutation.customCreatePost.req.vtl": "## [Start] Create Request template. **
|
|
1369
|
-
## Begin - key condition **
|
|
1370
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
1371
|
-
#set( $keyConditionExpr = {} )
|
|
1372
|
-
#set( $keyConditionExprNames = {} )
|
|
1373
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
1374
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
1375
|
-
\\"attributeExists\\": false
|
|
1376
|
-
}))
|
|
1377
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
1378
|
-
#end
|
|
1379
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
1380
|
-
#else
|
|
1381
|
-
$util.qr($ctx.stash.conditions.add({
|
|
1382
|
-
\\"id\\": {
|
|
1383
|
-
\\"attributeExists\\": false
|
|
1384
|
-
}
|
|
1385
|
-
}))
|
|
1386
|
-
#end
|
|
1387
|
-
## End - key condition **
|
|
1388
1236
|
## Set the default values to put request **
|
|
1389
1237
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
1390
1238
|
## copy the values from input **
|
|
@@ -3256,14 +3104,17 @@ $util.toJson({})
|
|
|
3256
3104
|
} )
|
|
3257
3105
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3258
3106
|
#set( $expression = \\"\\" )
|
|
3107
|
+
#set( $expressionNames = {} )
|
|
3259
3108
|
#set( $expressionValues = {} )
|
|
3260
3109
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3261
|
-
#set( $expression = \\"$expression$
|
|
3262
|
-
$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))
|
|
3263
3113
|
#end
|
|
3264
3114
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3265
3115
|
#set( $query = {
|
|
3266
3116
|
\\"expression\\": $expression,
|
|
3117
|
+
\\"expressionNames\\": $expressionNames,
|
|
3267
3118
|
\\"expressionValues\\": $expressionValues
|
|
3268
3119
|
} )
|
|
3269
3120
|
#else
|
|
@@ -3311,9 +3162,9 @@ $util.toJson({})
|
|
|
3311
3162
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3312
3163
|
#set( $filter = $ctx.stash.authFilter )
|
|
3313
3164
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3314
|
-
#set( $filter =
|
|
3165
|
+
#set( $filter = {
|
|
3315
3166
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3316
|
-
}
|
|
3167
|
+
} )
|
|
3317
3168
|
#end
|
|
3318
3169
|
#else
|
|
3319
3170
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -3365,14 +3216,17 @@ $util.toJson({})
|
|
|
3365
3216
|
} )
|
|
3366
3217
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3367
3218
|
#set( $expression = \\"\\" )
|
|
3219
|
+
#set( $expressionNames = {} )
|
|
3368
3220
|
#set( $expressionValues = {} )
|
|
3369
3221
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3370
|
-
#set( $expression = \\"$expression$
|
|
3371
|
-
$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))
|
|
3372
3225
|
#end
|
|
3373
3226
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3374
3227
|
#set( $query = {
|
|
3375
3228
|
\\"expression\\": $expression,
|
|
3229
|
+
\\"expressionNames\\": $expressionNames,
|
|
3376
3230
|
\\"expressionValues\\": $expressionValues
|
|
3377
3231
|
} )
|
|
3378
3232
|
#else
|
|
@@ -3415,14 +3269,17 @@ $util.toJson({})
|
|
|
3415
3269
|
} )
|
|
3416
3270
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3417
3271
|
#set( $expression = \\"\\" )
|
|
3272
|
+
#set( $expressionNames = {} )
|
|
3418
3273
|
#set( $expressionValues = {} )
|
|
3419
3274
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3420
|
-
#set( $expression = \\"$expression$
|
|
3421
|
-
$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))
|
|
3422
3278
|
#end
|
|
3423
3279
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3424
3280
|
#set( $query = {
|
|
3425
3281
|
\\"expression\\": $expression,
|
|
3282
|
+
\\"expressionNames\\": $expressionNames,
|
|
3426
3283
|
\\"expressionValues\\": $expressionValues
|
|
3427
3284
|
} )
|
|
3428
3285
|
#else
|
|
@@ -3465,14 +3322,17 @@ $util.toJson({})
|
|
|
3465
3322
|
} )
|
|
3466
3323
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3467
3324
|
#set( $expression = \\"\\" )
|
|
3325
|
+
#set( $expressionNames = {} )
|
|
3468
3326
|
#set( $expressionValues = {} )
|
|
3469
3327
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3470
|
-
#set( $expression = \\"$expression$
|
|
3471
|
-
$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))
|
|
3472
3331
|
#end
|
|
3473
3332
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3474
3333
|
#set( $query = {
|
|
3475
3334
|
\\"expression\\": $expression,
|
|
3335
|
+
\\"expressionNames\\": $expressionNames,
|
|
3476
3336
|
\\"expressionValues\\": $expressionValues
|
|
3477
3337
|
} )
|
|
3478
3338
|
#else
|
|
@@ -3515,14 +3375,17 @@ $util.toJson({})
|
|
|
3515
3375
|
} )
|
|
3516
3376
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3517
3377
|
#set( $expression = \\"\\" )
|
|
3378
|
+
#set( $expressionNames = {} )
|
|
3518
3379
|
#set( $expressionValues = {} )
|
|
3519
3380
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3520
|
-
#set( $expression = \\"$expression$
|
|
3521
|
-
$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))
|
|
3522
3384
|
#end
|
|
3523
3385
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3524
3386
|
#set( $query = {
|
|
3525
3387
|
\\"expression\\": $expression,
|
|
3388
|
+
\\"expressionNames\\": $expressionNames,
|
|
3526
3389
|
\\"expressionValues\\": $expressionValues
|
|
3527
3390
|
} )
|
|
3528
3391
|
#else
|
|
@@ -3565,14 +3428,17 @@ $util.toJson({})
|
|
|
3565
3428
|
} )
|
|
3566
3429
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3567
3430
|
#set( $expression = \\"\\" )
|
|
3431
|
+
#set( $expressionNames = {} )
|
|
3568
3432
|
#set( $expressionValues = {} )
|
|
3569
3433
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3570
|
-
#set( $expression = \\"$expression$
|
|
3571
|
-
$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))
|
|
3572
3437
|
#end
|
|
3573
3438
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3574
3439
|
#set( $query = {
|
|
3575
3440
|
\\"expression\\": $expression,
|
|
3441
|
+
\\"expressionNames\\": $expressionNames,
|
|
3576
3442
|
\\"expressionValues\\": $expressionValues
|
|
3577
3443
|
} )
|
|
3578
3444
|
#else
|
|
@@ -3615,14 +3481,17 @@ $util.toJson({})
|
|
|
3615
3481
|
} )
|
|
3616
3482
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3617
3483
|
#set( $expression = \\"\\" )
|
|
3484
|
+
#set( $expressionNames = {} )
|
|
3618
3485
|
#set( $expressionValues = {} )
|
|
3619
3486
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3620
|
-
#set( $expression = \\"$expression$
|
|
3621
|
-
$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))
|
|
3622
3490
|
#end
|
|
3623
3491
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3624
3492
|
#set( $query = {
|
|
3625
3493
|
\\"expression\\": $expression,
|
|
3494
|
+
\\"expressionNames\\": $expressionNames,
|
|
3626
3495
|
\\"expressionValues\\": $expressionValues
|
|
3627
3496
|
} )
|
|
3628
3497
|
#else
|
|
@@ -3665,14 +3534,17 @@ $util.toJson({})
|
|
|
3665
3534
|
} )
|
|
3666
3535
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3667
3536
|
#set( $expression = \\"\\" )
|
|
3537
|
+
#set( $expressionNames = {} )
|
|
3668
3538
|
#set( $expressionValues = {} )
|
|
3669
3539
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3670
|
-
#set( $expression = \\"$expression$
|
|
3671
|
-
$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))
|
|
3672
3543
|
#end
|
|
3673
3544
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3674
3545
|
#set( $query = {
|
|
3675
3546
|
\\"expression\\": $expression,
|
|
3547
|
+
\\"expressionNames\\": $expressionNames,
|
|
3676
3548
|
\\"expressionValues\\": $expressionValues
|
|
3677
3549
|
} )
|
|
3678
3550
|
#else
|
|
@@ -3715,14 +3587,17 @@ $util.toJson({})
|
|
|
3715
3587
|
} )
|
|
3716
3588
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
3717
3589
|
#set( $expression = \\"\\" )
|
|
3590
|
+
#set( $expressionNames = {} )
|
|
3718
3591
|
#set( $expressionValues = {} )
|
|
3719
3592
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
3720
|
-
#set( $expression = \\"$expression$
|
|
3721
|
-
$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))
|
|
3722
3596
|
#end
|
|
3723
3597
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
3724
3598
|
#set( $query = {
|
|
3725
3599
|
\\"expression\\": $expression,
|
|
3600
|
+
\\"expressionNames\\": $expressionNames,
|
|
3726
3601
|
\\"expressionValues\\": $expressionValues
|
|
3727
3602
|
} )
|
|
3728
3603
|
#else
|
|
@@ -3770,9 +3645,9 @@ $util.toJson({})
|
|
|
3770
3645
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3771
3646
|
#set( $filter = $ctx.stash.authFilter )
|
|
3772
3647
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3773
|
-
#set( $filter =
|
|
3648
|
+
#set( $filter = {
|
|
3774
3649
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3775
|
-
}
|
|
3650
|
+
} )
|
|
3776
3651
|
#end
|
|
3777
3652
|
#else
|
|
3778
3653
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -3829,9 +3704,9 @@ $util.toJson({})
|
|
|
3829
3704
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3830
3705
|
#set( $filter = $ctx.stash.authFilter )
|
|
3831
3706
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3832
|
-
#set( $filter =
|
|
3707
|
+
#set( $filter = {
|
|
3833
3708
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3834
|
-
}
|
|
3709
|
+
} )
|
|
3835
3710
|
#end
|
|
3836
3711
|
#else
|
|
3837
3712
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -3888,9 +3763,9 @@ $util.toJson({})
|
|
|
3888
3763
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3889
3764
|
#set( $filter = $ctx.stash.authFilter )
|
|
3890
3765
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3891
|
-
#set( $filter =
|
|
3766
|
+
#set( $filter = {
|
|
3892
3767
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3893
|
-
}
|
|
3768
|
+
} )
|
|
3894
3769
|
#end
|
|
3895
3770
|
#else
|
|
3896
3771
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -3947,9 +3822,9 @@ $util.toJson({})
|
|
|
3947
3822
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
3948
3823
|
#set( $filter = $ctx.stash.authFilter )
|
|
3949
3824
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
3950
|
-
#set( $filter =
|
|
3825
|
+
#set( $filter = {
|
|
3951
3826
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
3952
|
-
}
|
|
3827
|
+
} )
|
|
3953
3828
|
#end
|
|
3954
3829
|
#else
|
|
3955
3830
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -4006,9 +3881,9 @@ $util.toJson({})
|
|
|
4006
3881
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
4007
3882
|
#set( $filter = $ctx.stash.authFilter )
|
|
4008
3883
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
4009
|
-
#set( $filter =
|
|
3884
|
+
#set( $filter = {
|
|
4010
3885
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
4011
|
-
}
|
|
3886
|
+
} )
|
|
4012
3887
|
#end
|
|
4013
3888
|
#else
|
|
4014
3889
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -4065,9 +3940,9 @@ $util.toJson({})
|
|
|
4065
3940
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
4066
3941
|
#set( $filter = $ctx.stash.authFilter )
|
|
4067
3942
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
4068
|
-
#set( $filter =
|
|
3943
|
+
#set( $filter = {
|
|
4069
3944
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
4070
|
-
}
|
|
3945
|
+
} )
|
|
4071
3946
|
#end
|
|
4072
3947
|
#else
|
|
4073
3948
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -4124,9 +3999,9 @@ $util.toJson({})
|
|
|
4124
3999
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
4125
4000
|
#set( $filter = $ctx.stash.authFilter )
|
|
4126
4001
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
4127
|
-
#set( $filter =
|
|
4002
|
+
#set( $filter = {
|
|
4128
4003
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
4129
|
-
}
|
|
4004
|
+
} )
|
|
4130
4005
|
#end
|
|
4131
4006
|
#else
|
|
4132
4007
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -4175,9 +4050,9 @@ $util.toJson({})
|
|
|
4175
4050
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
4176
4051
|
#set( $filter = $ctx.stash.authFilter )
|
|
4177
4052
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
4178
|
-
#set( $filter =
|
|
4053
|
+
#set( $filter = {
|
|
4179
4054
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
4180
|
-
}
|
|
4055
|
+
} )
|
|
4181
4056
|
#end
|
|
4182
4057
|
#else
|
|
4183
4058
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -4225,9 +4100,9 @@ $util.toJson({
|
|
|
4225
4100
|
\\"payload\\": {}
|
|
4226
4101
|
})
|
|
4227
4102
|
## [End] Subscription Request template. **",
|
|
4228
|
-
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription
|
|
4103
|
+
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
4229
4104
|
$util.toJson(null)
|
|
4230
|
-
## [End] Subscription
|
|
4105
|
+
## [End] Subscription Response template. **",
|
|
4231
4106
|
"Subscription.onCreateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4232
4107
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4233
4108
|
$util.unauthorized()
|
|
@@ -4240,9 +4115,9 @@ $util.toJson({
|
|
|
4240
4115
|
\\"payload\\": {}
|
|
4241
4116
|
})
|
|
4242
4117
|
## [End] Subscription Request template. **",
|
|
4243
|
-
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription
|
|
4118
|
+
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
4244
4119
|
$util.toJson(null)
|
|
4245
|
-
## [End] Subscription
|
|
4120
|
+
## [End] Subscription Response template. **",
|
|
4246
4121
|
"Subscription.onCreateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4247
4122
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4248
4123
|
$util.unauthorized()
|
|
@@ -4255,9 +4130,9 @@ $util.toJson({
|
|
|
4255
4130
|
\\"payload\\": {}
|
|
4256
4131
|
})
|
|
4257
4132
|
## [End] Subscription Request template. **",
|
|
4258
|
-
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription
|
|
4133
|
+
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
4259
4134
|
$util.toJson(null)
|
|
4260
|
-
## [End] Subscription
|
|
4135
|
+
## [End] Subscription Response template. **",
|
|
4261
4136
|
"Subscription.onCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4262
4137
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4263
4138
|
$util.unauthorized()
|
|
@@ -4270,9 +4145,9 @@ $util.toJson({
|
|
|
4270
4145
|
\\"payload\\": {}
|
|
4271
4146
|
})
|
|
4272
4147
|
## [End] Subscription Request template. **",
|
|
4273
|
-
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription
|
|
4148
|
+
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
4274
4149
|
$util.toJson(null)
|
|
4275
|
-
## [End] Subscription
|
|
4150
|
+
## [End] Subscription Response template. **",
|
|
4276
4151
|
"Subscription.onCreateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4277
4152
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4278
4153
|
$util.unauthorized()
|
|
@@ -4285,9 +4160,9 @@ $util.toJson({
|
|
|
4285
4160
|
\\"payload\\": {}
|
|
4286
4161
|
})
|
|
4287
4162
|
## [End] Subscription Request template. **",
|
|
4288
|
-
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription
|
|
4163
|
+
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
4289
4164
|
$util.toJson(null)
|
|
4290
|
-
## [End] Subscription
|
|
4165
|
+
## [End] Subscription Response template. **",
|
|
4291
4166
|
"Subscription.onCreateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4292
4167
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4293
4168
|
$util.unauthorized()
|
|
@@ -4300,9 +4175,9 @@ $util.toJson({
|
|
|
4300
4175
|
\\"payload\\": {}
|
|
4301
4176
|
})
|
|
4302
4177
|
## [End] Subscription Request template. **",
|
|
4303
|
-
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription
|
|
4178
|
+
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
4304
4179
|
$util.toJson(null)
|
|
4305
|
-
## [End] Subscription
|
|
4180
|
+
## [End] Subscription Response template. **",
|
|
4306
4181
|
"Subscription.onCreateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4307
4182
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4308
4183
|
$util.unauthorized()
|
|
@@ -4315,9 +4190,9 @@ $util.toJson({
|
|
|
4315
4190
|
\\"payload\\": {}
|
|
4316
4191
|
})
|
|
4317
4192
|
## [End] Subscription Request template. **",
|
|
4318
|
-
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription
|
|
4193
|
+
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
4319
4194
|
$util.toJson(null)
|
|
4320
|
-
## [End] Subscription
|
|
4195
|
+
## [End] Subscription Response template. **",
|
|
4321
4196
|
"Subscription.onDeleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4322
4197
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4323
4198
|
$util.unauthorized()
|
|
@@ -4330,9 +4205,9 @@ $util.toJson({
|
|
|
4330
4205
|
\\"payload\\": {}
|
|
4331
4206
|
})
|
|
4332
4207
|
## [End] Subscription Request template. **",
|
|
4333
|
-
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription
|
|
4208
|
+
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
4334
4209
|
$util.toJson(null)
|
|
4335
|
-
## [End] Subscription
|
|
4210
|
+
## [End] Subscription Response template. **",
|
|
4336
4211
|
"Subscription.onDeleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4337
4212
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4338
4213
|
$util.unauthorized()
|
|
@@ -4345,9 +4220,9 @@ $util.toJson({
|
|
|
4345
4220
|
\\"payload\\": {}
|
|
4346
4221
|
})
|
|
4347
4222
|
## [End] Subscription Request template. **",
|
|
4348
|
-
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription
|
|
4223
|
+
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Response template. **
|
|
4349
4224
|
$util.toJson(null)
|
|
4350
|
-
## [End] Subscription
|
|
4225
|
+
## [End] Subscription Response template. **",
|
|
4351
4226
|
"Subscription.onDeleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4352
4227
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4353
4228
|
$util.unauthorized()
|
|
@@ -4360,9 +4235,9 @@ $util.toJson({
|
|
|
4360
4235
|
\\"payload\\": {}
|
|
4361
4236
|
})
|
|
4362
4237
|
## [End] Subscription Request template. **",
|
|
4363
|
-
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription
|
|
4238
|
+
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
4364
4239
|
$util.toJson(null)
|
|
4365
|
-
## [End] Subscription
|
|
4240
|
+
## [End] Subscription Response template. **",
|
|
4366
4241
|
"Subscription.onDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4367
4242
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4368
4243
|
$util.unauthorized()
|
|
@@ -4375,9 +4250,9 @@ $util.toJson({
|
|
|
4375
4250
|
\\"payload\\": {}
|
|
4376
4251
|
})
|
|
4377
4252
|
## [End] Subscription Request template. **",
|
|
4378
|
-
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription
|
|
4253
|
+
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription Response template. **
|
|
4379
4254
|
$util.toJson(null)
|
|
4380
|
-
## [End] Subscription
|
|
4255
|
+
## [End] Subscription Response template. **",
|
|
4381
4256
|
"Subscription.onDeleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4382
4257
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4383
4258
|
$util.unauthorized()
|
|
@@ -4390,9 +4265,9 @@ $util.toJson({
|
|
|
4390
4265
|
\\"payload\\": {}
|
|
4391
4266
|
})
|
|
4392
4267
|
## [End] Subscription Request template. **",
|
|
4393
|
-
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription
|
|
4268
|
+
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
4394
4269
|
$util.toJson(null)
|
|
4395
|
-
## [End] Subscription
|
|
4270
|
+
## [End] Subscription Response template. **",
|
|
4396
4271
|
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4397
4272
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4398
4273
|
$util.unauthorized()
|
|
@@ -4405,9 +4280,9 @@ $util.toJson({
|
|
|
4405
4280
|
\\"payload\\": {}
|
|
4406
4281
|
})
|
|
4407
4282
|
## [End] Subscription Request template. **",
|
|
4408
|
-
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription
|
|
4283
|
+
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
|
|
4409
4284
|
$util.toJson(null)
|
|
4410
|
-
## [End] Subscription
|
|
4285
|
+
## [End] Subscription Response template. **",
|
|
4411
4286
|
"Subscription.onDeleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4412
4287
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4413
4288
|
$util.unauthorized()
|
|
@@ -4420,9 +4295,9 @@ $util.toJson({
|
|
|
4420
4295
|
\\"payload\\": {}
|
|
4421
4296
|
})
|
|
4422
4297
|
## [End] Subscription Request template. **",
|
|
4423
|
-
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription
|
|
4298
|
+
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Response template. **
|
|
4424
4299
|
$util.toJson(null)
|
|
4425
|
-
## [End] Subscription
|
|
4300
|
+
## [End] Subscription Response template. **",
|
|
4426
4301
|
"Subscription.onUpdateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4427
4302
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4428
4303
|
$util.unauthorized()
|
|
@@ -4435,9 +4310,9 @@ $util.toJson({
|
|
|
4435
4310
|
\\"payload\\": {}
|
|
4436
4311
|
})
|
|
4437
4312
|
## [End] Subscription Request template. **",
|
|
4438
|
-
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription
|
|
4313
|
+
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
4439
4314
|
$util.toJson(null)
|
|
4440
|
-
## [End] Subscription
|
|
4315
|
+
## [End] Subscription Response template. **",
|
|
4441
4316
|
"Subscription.onUpdateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4442
4317
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4443
4318
|
$util.unauthorized()
|
|
@@ -4450,9 +4325,9 @@ $util.toJson({
|
|
|
4450
4325
|
\\"payload\\": {}
|
|
4451
4326
|
})
|
|
4452
4327
|
## [End] Subscription Request template. **",
|
|
4453
|
-
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription
|
|
4328
|
+
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
4454
4329
|
$util.toJson(null)
|
|
4455
|
-
## [End] Subscription
|
|
4330
|
+
## [End] Subscription Response template. **",
|
|
4456
4331
|
"Subscription.onUpdateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4457
4332
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4458
4333
|
$util.unauthorized()
|
|
@@ -4465,9 +4340,9 @@ $util.toJson({
|
|
|
4465
4340
|
\\"payload\\": {}
|
|
4466
4341
|
})
|
|
4467
4342
|
## [End] Subscription Request template. **",
|
|
4468
|
-
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription
|
|
4343
|
+
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
4469
4344
|
$util.toJson(null)
|
|
4470
|
-
## [End] Subscription
|
|
4345
|
+
## [End] Subscription Response template. **",
|
|
4471
4346
|
"Subscription.onUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4472
4347
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4473
4348
|
$util.unauthorized()
|
|
@@ -4480,9 +4355,9 @@ $util.toJson({
|
|
|
4480
4355
|
\\"payload\\": {}
|
|
4481
4356
|
})
|
|
4482
4357
|
## [End] Subscription Request template. **",
|
|
4483
|
-
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription
|
|
4358
|
+
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
4484
4359
|
$util.toJson(null)
|
|
4485
|
-
## [End] Subscription
|
|
4360
|
+
## [End] Subscription Response template. **",
|
|
4486
4361
|
"Subscription.onUpdateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4487
4362
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4488
4363
|
$util.unauthorized()
|
|
@@ -4495,9 +4370,9 @@ $util.toJson({
|
|
|
4495
4370
|
\\"payload\\": {}
|
|
4496
4371
|
})
|
|
4497
4372
|
## [End] Subscription Request template. **",
|
|
4498
|
-
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription
|
|
4373
|
+
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
4499
4374
|
$util.toJson(null)
|
|
4500
|
-
## [End] Subscription
|
|
4375
|
+
## [End] Subscription Response template. **",
|
|
4501
4376
|
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4502
4377
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4503
4378
|
$util.unauthorized()
|
|
@@ -4510,9 +4385,9 @@ $util.toJson({
|
|
|
4510
4385
|
\\"payload\\": {}
|
|
4511
4386
|
})
|
|
4512
4387
|
## [End] Subscription Request template. **",
|
|
4513
|
-
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription
|
|
4388
|
+
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
4514
4389
|
$util.toJson(null)
|
|
4515
|
-
## [End] Subscription
|
|
4390
|
+
## [End] Subscription Response template. **",
|
|
4516
4391
|
"Subscription.onUpdateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
4517
4392
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
4518
4393
|
$util.unauthorized()
|
|
@@ -4525,13 +4400,13 @@ $util.toJson({
|
|
|
4525
4400
|
\\"payload\\": {}
|
|
4526
4401
|
})
|
|
4527
4402
|
## [End] Subscription Request template. **",
|
|
4528
|
-
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription
|
|
4403
|
+
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
4529
4404
|
$util.toJson(null)
|
|
4530
|
-
## [End] Subscription
|
|
4405
|
+
## [End] Subscription Response template. **",
|
|
4531
4406
|
}
|
|
4532
4407
|
`;
|
|
4533
4408
|
|
|
4534
|
-
exports[`ModelTransformer: should generate sync resolver with ConflictHandlerType.
|
|
4409
|
+
exports[`ModelTransformer: should generate sync resolver with ConflictHandlerType.LAMBDA 1`] = `
|
|
4535
4410
|
Object {
|
|
4536
4411
|
"Mutation.createAuthor.init.1.req.vtl": "## [Start] Initialization default values. **
|
|
4537
4412
|
$util.qr($ctx.stash.put(\\"defaultValues\\", $util.defaultIfNull($ctx.stash.defaultValues, {})))
|
|
@@ -4551,25 +4426,6 @@ $util.toJson({
|
|
|
4551
4426
|
$util.toJson({})
|
|
4552
4427
|
## [End] Sandbox Mode Disabled. **",
|
|
4553
4428
|
"Mutation.createAuthor.req.vtl": "## [Start] Create Request template. **
|
|
4554
|
-
## Begin - key condition **
|
|
4555
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
4556
|
-
#set( $keyConditionExpr = {} )
|
|
4557
|
-
#set( $keyConditionExprNames = {} )
|
|
4558
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
4559
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
4560
|
-
\\"attributeExists\\": false
|
|
4561
|
-
}))
|
|
4562
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
4563
|
-
#end
|
|
4564
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
4565
|
-
#else
|
|
4566
|
-
$util.qr($ctx.stash.conditions.add({
|
|
4567
|
-
\\"id\\": {
|
|
4568
|
-
\\"attributeExists\\": false
|
|
4569
|
-
}
|
|
4570
|
-
}))
|
|
4571
|
-
#end
|
|
4572
|
-
## End - key condition **
|
|
4573
4429
|
## Set the default values to put request **
|
|
4574
4430
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
4575
4431
|
## copy the values from input **
|
|
@@ -4660,25 +4516,6 @@ $util.toJson({
|
|
|
4660
4516
|
$util.toJson({})
|
|
4661
4517
|
## [End] Sandbox Mode Disabled. **",
|
|
4662
4518
|
"Mutation.createComment.req.vtl": "## [Start] Create Request template. **
|
|
4663
|
-
## Begin - key condition **
|
|
4664
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
4665
|
-
#set( $keyConditionExpr = {} )
|
|
4666
|
-
#set( $keyConditionExprNames = {} )
|
|
4667
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
4668
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
4669
|
-
\\"attributeExists\\": false
|
|
4670
|
-
}))
|
|
4671
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
4672
|
-
#end
|
|
4673
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
4674
|
-
#else
|
|
4675
|
-
$util.qr($ctx.stash.conditions.add({
|
|
4676
|
-
\\"id\\": {
|
|
4677
|
-
\\"attributeExists\\": false
|
|
4678
|
-
}
|
|
4679
|
-
}))
|
|
4680
|
-
#end
|
|
4681
|
-
## End - key condition **
|
|
4682
4519
|
## Set the default values to put request **
|
|
4683
4520
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
4684
4521
|
## copy the values from input **
|
|
@@ -4769,25 +4606,6 @@ $util.toJson({
|
|
|
4769
4606
|
$util.toJson({})
|
|
4770
4607
|
## [End] Sandbox Mode Disabled. **",
|
|
4771
4608
|
"Mutation.createEmail.req.vtl": "## [Start] Create Request template. **
|
|
4772
|
-
## Begin - key condition **
|
|
4773
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
4774
|
-
#set( $keyConditionExpr = {} )
|
|
4775
|
-
#set( $keyConditionExprNames = {} )
|
|
4776
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
4777
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
4778
|
-
\\"attributeExists\\": false
|
|
4779
|
-
}))
|
|
4780
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
4781
|
-
#end
|
|
4782
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
4783
|
-
#else
|
|
4784
|
-
$util.qr($ctx.stash.conditions.add({
|
|
4785
|
-
\\"id\\": {
|
|
4786
|
-
\\"attributeExists\\": false
|
|
4787
|
-
}
|
|
4788
|
-
}))
|
|
4789
|
-
#end
|
|
4790
|
-
## End - key condition **
|
|
4791
4609
|
## Set the default values to put request **
|
|
4792
4610
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
4793
4611
|
## copy the values from input **
|
|
@@ -4878,25 +4696,6 @@ $util.toJson({
|
|
|
4878
4696
|
$util.toJson({})
|
|
4879
4697
|
## [End] Sandbox Mode Disabled. **",
|
|
4880
4698
|
"Mutation.createPost.req.vtl": "## [Start] Create Request template. **
|
|
4881
|
-
## Begin - key condition **
|
|
4882
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
4883
|
-
#set( $keyConditionExpr = {} )
|
|
4884
|
-
#set( $keyConditionExprNames = {} )
|
|
4885
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
4886
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
4887
|
-
\\"attributeExists\\": false
|
|
4888
|
-
}))
|
|
4889
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
4890
|
-
#end
|
|
4891
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
4892
|
-
#else
|
|
4893
|
-
$util.qr($ctx.stash.conditions.add({
|
|
4894
|
-
\\"id\\": {
|
|
4895
|
-
\\"attributeExists\\": false
|
|
4896
|
-
}
|
|
4897
|
-
}))
|
|
4898
|
-
#end
|
|
4899
|
-
## End - key condition **
|
|
4900
4699
|
## Set the default values to put request **
|
|
4901
4700
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
4902
4701
|
## copy the values from input **
|
|
@@ -4987,25 +4786,6 @@ $util.toJson({
|
|
|
4987
4786
|
$util.toJson({})
|
|
4988
4787
|
## [End] Sandbox Mode Disabled. **",
|
|
4989
4788
|
"Mutation.createRequire.req.vtl": "## [Start] Create Request template. **
|
|
4990
|
-
## Begin - key condition **
|
|
4991
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
4992
|
-
#set( $keyConditionExpr = {} )
|
|
4993
|
-
#set( $keyConditionExprNames = {} )
|
|
4994
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
4995
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
4996
|
-
\\"attributeExists\\": false
|
|
4997
|
-
}))
|
|
4998
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
4999
|
-
#end
|
|
5000
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
5001
|
-
#else
|
|
5002
|
-
$util.qr($ctx.stash.conditions.add({
|
|
5003
|
-
\\"id\\": {
|
|
5004
|
-
\\"attributeExists\\": false
|
|
5005
|
-
}
|
|
5006
|
-
}))
|
|
5007
|
-
#end
|
|
5008
|
-
## End - key condition **
|
|
5009
4789
|
## Set the default values to put request **
|
|
5010
4790
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
5011
4791
|
## copy the values from input **
|
|
@@ -5096,25 +4876,6 @@ $util.toJson({
|
|
|
5096
4876
|
$util.toJson({})
|
|
5097
4877
|
## [End] Sandbox Mode Disabled. **",
|
|
5098
4878
|
"Mutation.createTest.req.vtl": "## [Start] Create Request template. **
|
|
5099
|
-
## Begin - key condition **
|
|
5100
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
5101
|
-
#set( $keyConditionExpr = {} )
|
|
5102
|
-
#set( $keyConditionExprNames = {} )
|
|
5103
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
5104
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
5105
|
-
\\"attributeExists\\": false
|
|
5106
|
-
}))
|
|
5107
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
5108
|
-
#end
|
|
5109
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
5110
|
-
#else
|
|
5111
|
-
$util.qr($ctx.stash.conditions.add({
|
|
5112
|
-
\\"id\\": {
|
|
5113
|
-
\\"attributeExists\\": false
|
|
5114
|
-
}
|
|
5115
|
-
}))
|
|
5116
|
-
#end
|
|
5117
|
-
## End - key condition **
|
|
5118
4879
|
## Set the default values to put request **
|
|
5119
4880
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
5120
4881
|
## copy the values from input **
|
|
@@ -5205,25 +4966,6 @@ $util.toJson({
|
|
|
5205
4966
|
$util.toJson({})
|
|
5206
4967
|
## [End] Sandbox Mode Disabled. **",
|
|
5207
4968
|
"Mutation.createUser.req.vtl": "## [Start] Create Request template. **
|
|
5208
|
-
## Begin - key condition **
|
|
5209
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
5210
|
-
#set( $keyConditionExpr = {} )
|
|
5211
|
-
#set( $keyConditionExprNames = {} )
|
|
5212
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
5213
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
5214
|
-
\\"attributeExists\\": false
|
|
5215
|
-
}))
|
|
5216
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
5217
|
-
#end
|
|
5218
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
5219
|
-
#else
|
|
5220
|
-
$util.qr($ctx.stash.conditions.add({
|
|
5221
|
-
\\"id\\": {
|
|
5222
|
-
\\"attributeExists\\": false
|
|
5223
|
-
}
|
|
5224
|
-
}))
|
|
5225
|
-
#end
|
|
5226
|
-
## End - key condition **
|
|
5227
4969
|
## Set the default values to put request **
|
|
5228
4970
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
5229
4971
|
## copy the values from input **
|
|
@@ -5314,25 +5056,6 @@ $util.toJson({
|
|
|
5314
5056
|
$util.toJson({})
|
|
5315
5057
|
## [End] Sandbox Mode Disabled. **",
|
|
5316
5058
|
"Mutation.customCreatePost.req.vtl": "## [Start] Create Request template. **
|
|
5317
|
-
## Begin - key condition **
|
|
5318
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
5319
|
-
#set( $keyConditionExpr = {} )
|
|
5320
|
-
#set( $keyConditionExprNames = {} )
|
|
5321
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
5322
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
5323
|
-
\\"attributeExists\\": false
|
|
5324
|
-
}))
|
|
5325
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
5326
|
-
#end
|
|
5327
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
5328
|
-
#else
|
|
5329
|
-
$util.qr($ctx.stash.conditions.add({
|
|
5330
|
-
\\"id\\": {
|
|
5331
|
-
\\"attributeExists\\": false
|
|
5332
|
-
}
|
|
5333
|
-
}))
|
|
5334
|
-
#end
|
|
5335
|
-
## End - key condition **
|
|
5336
5059
|
## Set the default values to put request **
|
|
5337
5060
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
5338
5061
|
## copy the values from input **
|
|
@@ -7204,14 +6927,17 @@ $util.toJson({})
|
|
|
7204
6927
|
} )
|
|
7205
6928
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7206
6929
|
#set( $expression = \\"\\" )
|
|
6930
|
+
#set( $expressionNames = {} )
|
|
7207
6931
|
#set( $expressionValues = {} )
|
|
7208
6932
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7209
|
-
#set( $expression = \\"$expression$
|
|
7210
|
-
$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))
|
|
7211
6936
|
#end
|
|
7212
6937
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7213
6938
|
#set( $query = {
|
|
7214
6939
|
\\"expression\\": $expression,
|
|
6940
|
+
\\"expressionNames\\": $expressionNames,
|
|
7215
6941
|
\\"expressionValues\\": $expressionValues
|
|
7216
6942
|
} )
|
|
7217
6943
|
#else
|
|
@@ -7259,9 +6985,9 @@ $util.toJson({})
|
|
|
7259
6985
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7260
6986
|
#set( $filter = $ctx.stash.authFilter )
|
|
7261
6987
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7262
|
-
#set( $filter =
|
|
6988
|
+
#set( $filter = {
|
|
7263
6989
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7264
|
-
}
|
|
6990
|
+
} )
|
|
7265
6991
|
#end
|
|
7266
6992
|
#else
|
|
7267
6993
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7313,14 +7039,17 @@ $util.toJson({})
|
|
|
7313
7039
|
} )
|
|
7314
7040
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7315
7041
|
#set( $expression = \\"\\" )
|
|
7042
|
+
#set( $expressionNames = {} )
|
|
7316
7043
|
#set( $expressionValues = {} )
|
|
7317
7044
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7318
|
-
#set( $expression = \\"$expression$
|
|
7319
|
-
$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))
|
|
7320
7048
|
#end
|
|
7321
7049
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7322
7050
|
#set( $query = {
|
|
7323
7051
|
\\"expression\\": $expression,
|
|
7052
|
+
\\"expressionNames\\": $expressionNames,
|
|
7324
7053
|
\\"expressionValues\\": $expressionValues
|
|
7325
7054
|
} )
|
|
7326
7055
|
#else
|
|
@@ -7363,14 +7092,17 @@ $util.toJson({})
|
|
|
7363
7092
|
} )
|
|
7364
7093
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7365
7094
|
#set( $expression = \\"\\" )
|
|
7095
|
+
#set( $expressionNames = {} )
|
|
7366
7096
|
#set( $expressionValues = {} )
|
|
7367
7097
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7368
|
-
#set( $expression = \\"$expression$
|
|
7369
|
-
$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))
|
|
7370
7101
|
#end
|
|
7371
7102
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7372
7103
|
#set( $query = {
|
|
7373
7104
|
\\"expression\\": $expression,
|
|
7105
|
+
\\"expressionNames\\": $expressionNames,
|
|
7374
7106
|
\\"expressionValues\\": $expressionValues
|
|
7375
7107
|
} )
|
|
7376
7108
|
#else
|
|
@@ -7413,14 +7145,17 @@ $util.toJson({})
|
|
|
7413
7145
|
} )
|
|
7414
7146
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7415
7147
|
#set( $expression = \\"\\" )
|
|
7148
|
+
#set( $expressionNames = {} )
|
|
7416
7149
|
#set( $expressionValues = {} )
|
|
7417
7150
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7418
|
-
#set( $expression = \\"$expression$
|
|
7419
|
-
$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))
|
|
7420
7154
|
#end
|
|
7421
7155
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7422
7156
|
#set( $query = {
|
|
7423
7157
|
\\"expression\\": $expression,
|
|
7158
|
+
\\"expressionNames\\": $expressionNames,
|
|
7424
7159
|
\\"expressionValues\\": $expressionValues
|
|
7425
7160
|
} )
|
|
7426
7161
|
#else
|
|
@@ -7463,14 +7198,17 @@ $util.toJson({})
|
|
|
7463
7198
|
} )
|
|
7464
7199
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7465
7200
|
#set( $expression = \\"\\" )
|
|
7201
|
+
#set( $expressionNames = {} )
|
|
7466
7202
|
#set( $expressionValues = {} )
|
|
7467
7203
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7468
|
-
#set( $expression = \\"$expression$
|
|
7469
|
-
$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))
|
|
7470
7207
|
#end
|
|
7471
7208
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7472
7209
|
#set( $query = {
|
|
7473
7210
|
\\"expression\\": $expression,
|
|
7211
|
+
\\"expressionNames\\": $expressionNames,
|
|
7474
7212
|
\\"expressionValues\\": $expressionValues
|
|
7475
7213
|
} )
|
|
7476
7214
|
#else
|
|
@@ -7513,14 +7251,17 @@ $util.toJson({})
|
|
|
7513
7251
|
} )
|
|
7514
7252
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7515
7253
|
#set( $expression = \\"\\" )
|
|
7254
|
+
#set( $expressionNames = {} )
|
|
7516
7255
|
#set( $expressionValues = {} )
|
|
7517
7256
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7518
|
-
#set( $expression = \\"$expression$
|
|
7519
|
-
$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))
|
|
7520
7260
|
#end
|
|
7521
7261
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7522
7262
|
#set( $query = {
|
|
7523
7263
|
\\"expression\\": $expression,
|
|
7264
|
+
\\"expressionNames\\": $expressionNames,
|
|
7524
7265
|
\\"expressionValues\\": $expressionValues
|
|
7525
7266
|
} )
|
|
7526
7267
|
#else
|
|
@@ -7563,14 +7304,17 @@ $util.toJson({})
|
|
|
7563
7304
|
} )
|
|
7564
7305
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7565
7306
|
#set( $expression = \\"\\" )
|
|
7307
|
+
#set( $expressionNames = {} )
|
|
7566
7308
|
#set( $expressionValues = {} )
|
|
7567
7309
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7568
|
-
#set( $expression = \\"$expression$
|
|
7569
|
-
$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))
|
|
7570
7313
|
#end
|
|
7571
7314
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7572
7315
|
#set( $query = {
|
|
7573
7316
|
\\"expression\\": $expression,
|
|
7317
|
+
\\"expressionNames\\": $expressionNames,
|
|
7574
7318
|
\\"expressionValues\\": $expressionValues
|
|
7575
7319
|
} )
|
|
7576
7320
|
#else
|
|
@@ -7613,14 +7357,17 @@ $util.toJson({})
|
|
|
7613
7357
|
} )
|
|
7614
7358
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7615
7359
|
#set( $expression = \\"\\" )
|
|
7360
|
+
#set( $expressionNames = {} )
|
|
7616
7361
|
#set( $expressionValues = {} )
|
|
7617
7362
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7618
|
-
#set( $expression = \\"$expression$
|
|
7619
|
-
$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))
|
|
7620
7366
|
#end
|
|
7621
7367
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7622
7368
|
#set( $query = {
|
|
7623
7369
|
\\"expression\\": $expression,
|
|
7370
|
+
\\"expressionNames\\": $expressionNames,
|
|
7624
7371
|
\\"expressionValues\\": $expressionValues
|
|
7625
7372
|
} )
|
|
7626
7373
|
#else
|
|
@@ -7663,14 +7410,17 @@ $util.toJson({})
|
|
|
7663
7410
|
} )
|
|
7664
7411
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
7665
7412
|
#set( $expression = \\"\\" )
|
|
7413
|
+
#set( $expressionNames = {} )
|
|
7666
7414
|
#set( $expressionValues = {} )
|
|
7667
7415
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
7668
|
-
#set( $expression = \\"$expression$
|
|
7669
|
-
$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))
|
|
7670
7419
|
#end
|
|
7671
7420
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
7672
7421
|
#set( $query = {
|
|
7673
7422
|
\\"expression\\": $expression,
|
|
7423
|
+
\\"expressionNames\\": $expressionNames,
|
|
7674
7424
|
\\"expressionValues\\": $expressionValues
|
|
7675
7425
|
} )
|
|
7676
7426
|
#else
|
|
@@ -7718,9 +7468,9 @@ $util.toJson({})
|
|
|
7718
7468
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7719
7469
|
#set( $filter = $ctx.stash.authFilter )
|
|
7720
7470
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7721
|
-
#set( $filter =
|
|
7471
|
+
#set( $filter = {
|
|
7722
7472
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7723
|
-
}
|
|
7473
|
+
} )
|
|
7724
7474
|
#end
|
|
7725
7475
|
#else
|
|
7726
7476
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7777,9 +7527,9 @@ $util.toJson({})
|
|
|
7777
7527
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7778
7528
|
#set( $filter = $ctx.stash.authFilter )
|
|
7779
7529
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7780
|
-
#set( $filter =
|
|
7530
|
+
#set( $filter = {
|
|
7781
7531
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7782
|
-
}
|
|
7532
|
+
} )
|
|
7783
7533
|
#end
|
|
7784
7534
|
#else
|
|
7785
7535
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7836,9 +7586,9 @@ $util.toJson({})
|
|
|
7836
7586
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7837
7587
|
#set( $filter = $ctx.stash.authFilter )
|
|
7838
7588
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7839
|
-
#set( $filter =
|
|
7589
|
+
#set( $filter = {
|
|
7840
7590
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7841
|
-
}
|
|
7591
|
+
} )
|
|
7842
7592
|
#end
|
|
7843
7593
|
#else
|
|
7844
7594
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7895,9 +7645,9 @@ $util.toJson({})
|
|
|
7895
7645
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7896
7646
|
#set( $filter = $ctx.stash.authFilter )
|
|
7897
7647
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7898
|
-
#set( $filter =
|
|
7648
|
+
#set( $filter = {
|
|
7899
7649
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7900
|
-
}
|
|
7650
|
+
} )
|
|
7901
7651
|
#end
|
|
7902
7652
|
#else
|
|
7903
7653
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -7954,9 +7704,9 @@ $util.toJson({})
|
|
|
7954
7704
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
7955
7705
|
#set( $filter = $ctx.stash.authFilter )
|
|
7956
7706
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
7957
|
-
#set( $filter =
|
|
7707
|
+
#set( $filter = {
|
|
7958
7708
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
7959
|
-
}
|
|
7709
|
+
} )
|
|
7960
7710
|
#end
|
|
7961
7711
|
#else
|
|
7962
7712
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -8013,9 +7763,9 @@ $util.toJson({})
|
|
|
8013
7763
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
8014
7764
|
#set( $filter = $ctx.stash.authFilter )
|
|
8015
7765
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
8016
|
-
#set( $filter =
|
|
7766
|
+
#set( $filter = {
|
|
8017
7767
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
8018
|
-
}
|
|
7768
|
+
} )
|
|
8019
7769
|
#end
|
|
8020
7770
|
#else
|
|
8021
7771
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -8072,9 +7822,9 @@ $util.toJson({})
|
|
|
8072
7822
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
8073
7823
|
#set( $filter = $ctx.stash.authFilter )
|
|
8074
7824
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
8075
|
-
#set( $filter =
|
|
7825
|
+
#set( $filter = {
|
|
8076
7826
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
8077
|
-
}
|
|
7827
|
+
} )
|
|
8078
7828
|
#end
|
|
8079
7829
|
#else
|
|
8080
7830
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -8123,9 +7873,9 @@ $util.toJson({})
|
|
|
8123
7873
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
8124
7874
|
#set( $filter = $ctx.stash.authFilter )
|
|
8125
7875
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
8126
|
-
#set( $filter =
|
|
7876
|
+
#set( $filter = {
|
|
8127
7877
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
8128
|
-
}
|
|
7878
|
+
} )
|
|
8129
7879
|
#end
|
|
8130
7880
|
#else
|
|
8131
7881
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -8173,9 +7923,9 @@ $util.toJson({
|
|
|
8173
7923
|
\\"payload\\": {}
|
|
8174
7924
|
})
|
|
8175
7925
|
## [End] Subscription Request template. **",
|
|
8176
|
-
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription
|
|
7926
|
+
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
8177
7927
|
$util.toJson(null)
|
|
8178
|
-
## [End] Subscription
|
|
7928
|
+
## [End] Subscription Response template. **",
|
|
8179
7929
|
"Subscription.onCreateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8180
7930
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8181
7931
|
$util.unauthorized()
|
|
@@ -8188,9 +7938,9 @@ $util.toJson({
|
|
|
8188
7938
|
\\"payload\\": {}
|
|
8189
7939
|
})
|
|
8190
7940
|
## [End] Subscription Request template. **",
|
|
8191
|
-
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription
|
|
7941
|
+
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
8192
7942
|
$util.toJson(null)
|
|
8193
|
-
## [End] Subscription
|
|
7943
|
+
## [End] Subscription Response template. **",
|
|
8194
7944
|
"Subscription.onCreateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8195
7945
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8196
7946
|
$util.unauthorized()
|
|
@@ -8203,9 +7953,9 @@ $util.toJson({
|
|
|
8203
7953
|
\\"payload\\": {}
|
|
8204
7954
|
})
|
|
8205
7955
|
## [End] Subscription Request template. **",
|
|
8206
|
-
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription
|
|
7956
|
+
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
8207
7957
|
$util.toJson(null)
|
|
8208
|
-
## [End] Subscription
|
|
7958
|
+
## [End] Subscription Response template. **",
|
|
8209
7959
|
"Subscription.onCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8210
7960
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8211
7961
|
$util.unauthorized()
|
|
@@ -8218,9 +7968,9 @@ $util.toJson({
|
|
|
8218
7968
|
\\"payload\\": {}
|
|
8219
7969
|
})
|
|
8220
7970
|
## [End] Subscription Request template. **",
|
|
8221
|
-
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription
|
|
7971
|
+
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
8222
7972
|
$util.toJson(null)
|
|
8223
|
-
## [End] Subscription
|
|
7973
|
+
## [End] Subscription Response template. **",
|
|
8224
7974
|
"Subscription.onCreateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8225
7975
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8226
7976
|
$util.unauthorized()
|
|
@@ -8233,9 +7983,9 @@ $util.toJson({
|
|
|
8233
7983
|
\\"payload\\": {}
|
|
8234
7984
|
})
|
|
8235
7985
|
## [End] Subscription Request template. **",
|
|
8236
|
-
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription
|
|
7986
|
+
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
8237
7987
|
$util.toJson(null)
|
|
8238
|
-
## [End] Subscription
|
|
7988
|
+
## [End] Subscription Response template. **",
|
|
8239
7989
|
"Subscription.onCreateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8240
7990
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8241
7991
|
$util.unauthorized()
|
|
@@ -8248,9 +7998,9 @@ $util.toJson({
|
|
|
8248
7998
|
\\"payload\\": {}
|
|
8249
7999
|
})
|
|
8250
8000
|
## [End] Subscription Request template. **",
|
|
8251
|
-
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription
|
|
8001
|
+
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
8252
8002
|
$util.toJson(null)
|
|
8253
|
-
## [End] Subscription
|
|
8003
|
+
## [End] Subscription Response template. **",
|
|
8254
8004
|
"Subscription.onCreateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8255
8005
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8256
8006
|
$util.unauthorized()
|
|
@@ -8263,9 +8013,9 @@ $util.toJson({
|
|
|
8263
8013
|
\\"payload\\": {}
|
|
8264
8014
|
})
|
|
8265
8015
|
## [End] Subscription Request template. **",
|
|
8266
|
-
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription
|
|
8016
|
+
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
8267
8017
|
$util.toJson(null)
|
|
8268
|
-
## [End] Subscription
|
|
8018
|
+
## [End] Subscription Response template. **",
|
|
8269
8019
|
"Subscription.onDeleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8270
8020
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8271
8021
|
$util.unauthorized()
|
|
@@ -8278,9 +8028,9 @@ $util.toJson({
|
|
|
8278
8028
|
\\"payload\\": {}
|
|
8279
8029
|
})
|
|
8280
8030
|
## [End] Subscription Request template. **",
|
|
8281
|
-
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription
|
|
8031
|
+
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
8282
8032
|
$util.toJson(null)
|
|
8283
|
-
## [End] Subscription
|
|
8033
|
+
## [End] Subscription Response template. **",
|
|
8284
8034
|
"Subscription.onDeleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8285
8035
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8286
8036
|
$util.unauthorized()
|
|
@@ -8293,9 +8043,9 @@ $util.toJson({
|
|
|
8293
8043
|
\\"payload\\": {}
|
|
8294
8044
|
})
|
|
8295
8045
|
## [End] Subscription Request template. **",
|
|
8296
|
-
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription
|
|
8046
|
+
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Response template. **
|
|
8297
8047
|
$util.toJson(null)
|
|
8298
|
-
## [End] Subscription
|
|
8048
|
+
## [End] Subscription Response template. **",
|
|
8299
8049
|
"Subscription.onDeleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8300
8050
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8301
8051
|
$util.unauthorized()
|
|
@@ -8308,9 +8058,9 @@ $util.toJson({
|
|
|
8308
8058
|
\\"payload\\": {}
|
|
8309
8059
|
})
|
|
8310
8060
|
## [End] Subscription Request template. **",
|
|
8311
|
-
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription
|
|
8061
|
+
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
8312
8062
|
$util.toJson(null)
|
|
8313
|
-
## [End] Subscription
|
|
8063
|
+
## [End] Subscription Response template. **",
|
|
8314
8064
|
"Subscription.onDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8315
8065
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8316
8066
|
$util.unauthorized()
|
|
@@ -8323,9 +8073,9 @@ $util.toJson({
|
|
|
8323
8073
|
\\"payload\\": {}
|
|
8324
8074
|
})
|
|
8325
8075
|
## [End] Subscription Request template. **",
|
|
8326
|
-
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription
|
|
8076
|
+
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription Response template. **
|
|
8327
8077
|
$util.toJson(null)
|
|
8328
|
-
## [End] Subscription
|
|
8078
|
+
## [End] Subscription Response template. **",
|
|
8329
8079
|
"Subscription.onDeleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8330
8080
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8331
8081
|
$util.unauthorized()
|
|
@@ -8338,9 +8088,9 @@ $util.toJson({
|
|
|
8338
8088
|
\\"payload\\": {}
|
|
8339
8089
|
})
|
|
8340
8090
|
## [End] Subscription Request template. **",
|
|
8341
|
-
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription
|
|
8091
|
+
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
8342
8092
|
$util.toJson(null)
|
|
8343
|
-
## [End] Subscription
|
|
8093
|
+
## [End] Subscription Response template. **",
|
|
8344
8094
|
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8345
8095
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8346
8096
|
$util.unauthorized()
|
|
@@ -8353,9 +8103,9 @@ $util.toJson({
|
|
|
8353
8103
|
\\"payload\\": {}
|
|
8354
8104
|
})
|
|
8355
8105
|
## [End] Subscription Request template. **",
|
|
8356
|
-
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription
|
|
8106
|
+
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
|
|
8357
8107
|
$util.toJson(null)
|
|
8358
|
-
## [End] Subscription
|
|
8108
|
+
## [End] Subscription Response template. **",
|
|
8359
8109
|
"Subscription.onDeleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8360
8110
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8361
8111
|
$util.unauthorized()
|
|
@@ -8368,9 +8118,9 @@ $util.toJson({
|
|
|
8368
8118
|
\\"payload\\": {}
|
|
8369
8119
|
})
|
|
8370
8120
|
## [End] Subscription Request template. **",
|
|
8371
|
-
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription
|
|
8121
|
+
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Response template. **
|
|
8372
8122
|
$util.toJson(null)
|
|
8373
|
-
## [End] Subscription
|
|
8123
|
+
## [End] Subscription Response template. **",
|
|
8374
8124
|
"Subscription.onUpdateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8375
8125
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8376
8126
|
$util.unauthorized()
|
|
@@ -8383,9 +8133,9 @@ $util.toJson({
|
|
|
8383
8133
|
\\"payload\\": {}
|
|
8384
8134
|
})
|
|
8385
8135
|
## [End] Subscription Request template. **",
|
|
8386
|
-
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription
|
|
8136
|
+
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
8387
8137
|
$util.toJson(null)
|
|
8388
|
-
## [End] Subscription
|
|
8138
|
+
## [End] Subscription Response template. **",
|
|
8389
8139
|
"Subscription.onUpdateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8390
8140
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8391
8141
|
$util.unauthorized()
|
|
@@ -8398,9 +8148,9 @@ $util.toJson({
|
|
|
8398
8148
|
\\"payload\\": {}
|
|
8399
8149
|
})
|
|
8400
8150
|
## [End] Subscription Request template. **",
|
|
8401
|
-
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription
|
|
8151
|
+
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
8402
8152
|
$util.toJson(null)
|
|
8403
|
-
## [End] Subscription
|
|
8153
|
+
## [End] Subscription Response template. **",
|
|
8404
8154
|
"Subscription.onUpdateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8405
8155
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8406
8156
|
$util.unauthorized()
|
|
@@ -8413,9 +8163,9 @@ $util.toJson({
|
|
|
8413
8163
|
\\"payload\\": {}
|
|
8414
8164
|
})
|
|
8415
8165
|
## [End] Subscription Request template. **",
|
|
8416
|
-
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription
|
|
8166
|
+
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
8417
8167
|
$util.toJson(null)
|
|
8418
|
-
## [End] Subscription
|
|
8168
|
+
## [End] Subscription Response template. **",
|
|
8419
8169
|
"Subscription.onUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8420
8170
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8421
8171
|
$util.unauthorized()
|
|
@@ -8428,9 +8178,9 @@ $util.toJson({
|
|
|
8428
8178
|
\\"payload\\": {}
|
|
8429
8179
|
})
|
|
8430
8180
|
## [End] Subscription Request template. **",
|
|
8431
|
-
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription
|
|
8181
|
+
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
8432
8182
|
$util.toJson(null)
|
|
8433
|
-
## [End] Subscription
|
|
8183
|
+
## [End] Subscription Response template. **",
|
|
8434
8184
|
"Subscription.onUpdateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8435
8185
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8436
8186
|
$util.unauthorized()
|
|
@@ -8443,9 +8193,9 @@ $util.toJson({
|
|
|
8443
8193
|
\\"payload\\": {}
|
|
8444
8194
|
})
|
|
8445
8195
|
## [End] Subscription Request template. **",
|
|
8446
|
-
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription
|
|
8196
|
+
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
8447
8197
|
$util.toJson(null)
|
|
8448
|
-
## [End] Subscription
|
|
8198
|
+
## [End] Subscription Response template. **",
|
|
8449
8199
|
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8450
8200
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8451
8201
|
$util.unauthorized()
|
|
@@ -8458,9 +8208,9 @@ $util.toJson({
|
|
|
8458
8208
|
\\"payload\\": {}
|
|
8459
8209
|
})
|
|
8460
8210
|
## [End] Subscription Request template. **",
|
|
8461
|
-
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription
|
|
8211
|
+
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
8462
8212
|
$util.toJson(null)
|
|
8463
|
-
## [End] Subscription
|
|
8213
|
+
## [End] Subscription Response template. **",
|
|
8464
8214
|
"Subscription.onUpdateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
8465
8215
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
8466
8216
|
$util.unauthorized()
|
|
@@ -8473,9 +8223,9 @@ $util.toJson({
|
|
|
8473
8223
|
\\"payload\\": {}
|
|
8474
8224
|
})
|
|
8475
8225
|
## [End] Subscription Request template. **",
|
|
8476
|
-
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription
|
|
8226
|
+
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
8477
8227
|
$util.toJson(null)
|
|
8478
|
-
## [End] Subscription
|
|
8228
|
+
## [End] Subscription Response template. **",
|
|
8479
8229
|
}
|
|
8480
8230
|
`;
|
|
8481
8231
|
|
|
@@ -8499,25 +8249,6 @@ $util.toJson({
|
|
|
8499
8249
|
$util.toJson({})
|
|
8500
8250
|
## [End] Sandbox Mode Disabled. **",
|
|
8501
8251
|
"Mutation.createAuthor.req.vtl": "## [Start] Create Request template. **
|
|
8502
|
-
## Begin - key condition **
|
|
8503
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8504
|
-
#set( $keyConditionExpr = {} )
|
|
8505
|
-
#set( $keyConditionExprNames = {} )
|
|
8506
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8507
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8508
|
-
\\"attributeExists\\": false
|
|
8509
|
-
}))
|
|
8510
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8511
|
-
#end
|
|
8512
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8513
|
-
#else
|
|
8514
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8515
|
-
\\"id\\": {
|
|
8516
|
-
\\"attributeExists\\": false
|
|
8517
|
-
}
|
|
8518
|
-
}))
|
|
8519
|
-
#end
|
|
8520
|
-
## End - key condition **
|
|
8521
8252
|
## Set the default values to put request **
|
|
8522
8253
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8523
8254
|
## copy the values from input **
|
|
@@ -8608,25 +8339,6 @@ $util.toJson({
|
|
|
8608
8339
|
$util.toJson({})
|
|
8609
8340
|
## [End] Sandbox Mode Disabled. **",
|
|
8610
8341
|
"Mutation.createComment.req.vtl": "## [Start] Create Request template. **
|
|
8611
|
-
## Begin - key condition **
|
|
8612
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8613
|
-
#set( $keyConditionExpr = {} )
|
|
8614
|
-
#set( $keyConditionExprNames = {} )
|
|
8615
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8616
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8617
|
-
\\"attributeExists\\": false
|
|
8618
|
-
}))
|
|
8619
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8620
|
-
#end
|
|
8621
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8622
|
-
#else
|
|
8623
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8624
|
-
\\"id\\": {
|
|
8625
|
-
\\"attributeExists\\": false
|
|
8626
|
-
}
|
|
8627
|
-
}))
|
|
8628
|
-
#end
|
|
8629
|
-
## End - key condition **
|
|
8630
8342
|
## Set the default values to put request **
|
|
8631
8343
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8632
8344
|
## copy the values from input **
|
|
@@ -8717,25 +8429,6 @@ $util.toJson({
|
|
|
8717
8429
|
$util.toJson({})
|
|
8718
8430
|
## [End] Sandbox Mode Disabled. **",
|
|
8719
8431
|
"Mutation.createEmail.req.vtl": "## [Start] Create Request template. **
|
|
8720
|
-
## Begin - key condition **
|
|
8721
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8722
|
-
#set( $keyConditionExpr = {} )
|
|
8723
|
-
#set( $keyConditionExprNames = {} )
|
|
8724
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8725
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8726
|
-
\\"attributeExists\\": false
|
|
8727
|
-
}))
|
|
8728
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8729
|
-
#end
|
|
8730
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8731
|
-
#else
|
|
8732
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8733
|
-
\\"id\\": {
|
|
8734
|
-
\\"attributeExists\\": false
|
|
8735
|
-
}
|
|
8736
|
-
}))
|
|
8737
|
-
#end
|
|
8738
|
-
## End - key condition **
|
|
8739
8432
|
## Set the default values to put request **
|
|
8740
8433
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8741
8434
|
## copy the values from input **
|
|
@@ -8826,25 +8519,6 @@ $util.toJson({
|
|
|
8826
8519
|
$util.toJson({})
|
|
8827
8520
|
## [End] Sandbox Mode Disabled. **",
|
|
8828
8521
|
"Mutation.createPost.req.vtl": "## [Start] Create Request template. **
|
|
8829
|
-
## Begin - key condition **
|
|
8830
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8831
|
-
#set( $keyConditionExpr = {} )
|
|
8832
|
-
#set( $keyConditionExprNames = {} )
|
|
8833
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8834
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8835
|
-
\\"attributeExists\\": false
|
|
8836
|
-
}))
|
|
8837
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8838
|
-
#end
|
|
8839
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8840
|
-
#else
|
|
8841
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8842
|
-
\\"id\\": {
|
|
8843
|
-
\\"attributeExists\\": false
|
|
8844
|
-
}
|
|
8845
|
-
}))
|
|
8846
|
-
#end
|
|
8847
|
-
## End - key condition **
|
|
8848
8522
|
## Set the default values to put request **
|
|
8849
8523
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8850
8524
|
## copy the values from input **
|
|
@@ -8935,25 +8609,6 @@ $util.toJson({
|
|
|
8935
8609
|
$util.toJson({})
|
|
8936
8610
|
## [End] Sandbox Mode Disabled. **",
|
|
8937
8611
|
"Mutation.createRequire.req.vtl": "## [Start] Create Request template. **
|
|
8938
|
-
## Begin - key condition **
|
|
8939
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
8940
|
-
#set( $keyConditionExpr = {} )
|
|
8941
|
-
#set( $keyConditionExprNames = {} )
|
|
8942
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
8943
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
8944
|
-
\\"attributeExists\\": false
|
|
8945
|
-
}))
|
|
8946
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
8947
|
-
#end
|
|
8948
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
8949
|
-
#else
|
|
8950
|
-
$util.qr($ctx.stash.conditions.add({
|
|
8951
|
-
\\"id\\": {
|
|
8952
|
-
\\"attributeExists\\": false
|
|
8953
|
-
}
|
|
8954
|
-
}))
|
|
8955
|
-
#end
|
|
8956
|
-
## End - key condition **
|
|
8957
8612
|
## Set the default values to put request **
|
|
8958
8613
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
8959
8614
|
## copy the values from input **
|
|
@@ -9044,25 +8699,6 @@ $util.toJson({
|
|
|
9044
8699
|
$util.toJson({})
|
|
9045
8700
|
## [End] Sandbox Mode Disabled. **",
|
|
9046
8701
|
"Mutation.createTest.req.vtl": "## [Start] Create Request template. **
|
|
9047
|
-
## Begin - key condition **
|
|
9048
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
9049
|
-
#set( $keyConditionExpr = {} )
|
|
9050
|
-
#set( $keyConditionExprNames = {} )
|
|
9051
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
9052
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
9053
|
-
\\"attributeExists\\": false
|
|
9054
|
-
}))
|
|
9055
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
9056
|
-
#end
|
|
9057
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
9058
|
-
#else
|
|
9059
|
-
$util.qr($ctx.stash.conditions.add({
|
|
9060
|
-
\\"id\\": {
|
|
9061
|
-
\\"attributeExists\\": false
|
|
9062
|
-
}
|
|
9063
|
-
}))
|
|
9064
|
-
#end
|
|
9065
|
-
## End - key condition **
|
|
9066
8702
|
## Set the default values to put request **
|
|
9067
8703
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
9068
8704
|
## copy the values from input **
|
|
@@ -9153,25 +8789,6 @@ $util.toJson({
|
|
|
9153
8789
|
$util.toJson({})
|
|
9154
8790
|
## [End] Sandbox Mode Disabled. **",
|
|
9155
8791
|
"Mutation.createUser.req.vtl": "## [Start] Create Request template. **
|
|
9156
|
-
## Begin - key condition **
|
|
9157
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
9158
|
-
#set( $keyConditionExpr = {} )
|
|
9159
|
-
#set( $keyConditionExprNames = {} )
|
|
9160
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
9161
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
9162
|
-
\\"attributeExists\\": false
|
|
9163
|
-
}))
|
|
9164
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
9165
|
-
#end
|
|
9166
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
9167
|
-
#else
|
|
9168
|
-
$util.qr($ctx.stash.conditions.add({
|
|
9169
|
-
\\"id\\": {
|
|
9170
|
-
\\"attributeExists\\": false
|
|
9171
|
-
}
|
|
9172
|
-
}))
|
|
9173
|
-
#end
|
|
9174
|
-
## End - key condition **
|
|
9175
8792
|
## Set the default values to put request **
|
|
9176
8793
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
9177
8794
|
## copy the values from input **
|
|
@@ -9262,25 +8879,6 @@ $util.toJson({
|
|
|
9262
8879
|
$util.toJson({})
|
|
9263
8880
|
## [End] Sandbox Mode Disabled. **",
|
|
9264
8881
|
"Mutation.customCreatePost.req.vtl": "## [Start] Create Request template. **
|
|
9265
|
-
## Begin - key condition **
|
|
9266
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
9267
|
-
#set( $keyConditionExpr = {} )
|
|
9268
|
-
#set( $keyConditionExprNames = {} )
|
|
9269
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
9270
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
9271
|
-
\\"attributeExists\\": false
|
|
9272
|
-
}))
|
|
9273
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
9274
|
-
#end
|
|
9275
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
9276
|
-
#else
|
|
9277
|
-
$util.qr($ctx.stash.conditions.add({
|
|
9278
|
-
\\"id\\": {
|
|
9279
|
-
\\"attributeExists\\": false
|
|
9280
|
-
}
|
|
9281
|
-
}))
|
|
9282
|
-
#end
|
|
9283
|
-
## End - key condition **
|
|
9284
8882
|
## Set the default values to put request **
|
|
9285
8883
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
9286
8884
|
## copy the values from input **
|
|
@@ -11152,14 +10750,17 @@ $util.toJson({})
|
|
|
11152
10750
|
} )
|
|
11153
10751
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11154
10752
|
#set( $expression = \\"\\" )
|
|
10753
|
+
#set( $expressionNames = {} )
|
|
11155
10754
|
#set( $expressionValues = {} )
|
|
11156
10755
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11157
|
-
#set( $expression = \\"$expression$
|
|
11158
|
-
$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))
|
|
11159
10759
|
#end
|
|
11160
10760
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11161
10761
|
#set( $query = {
|
|
11162
10762
|
\\"expression\\": $expression,
|
|
10763
|
+
\\"expressionNames\\": $expressionNames,
|
|
11163
10764
|
\\"expressionValues\\": $expressionValues
|
|
11164
10765
|
} )
|
|
11165
10766
|
#else
|
|
@@ -11207,9 +10808,9 @@ $util.toJson({})
|
|
|
11207
10808
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11208
10809
|
#set( $filter = $ctx.stash.authFilter )
|
|
11209
10810
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11210
|
-
#set( $filter =
|
|
10811
|
+
#set( $filter = {
|
|
11211
10812
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11212
|
-
}
|
|
10813
|
+
} )
|
|
11213
10814
|
#end
|
|
11214
10815
|
#else
|
|
11215
10816
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11261,14 +10862,17 @@ $util.toJson({})
|
|
|
11261
10862
|
} )
|
|
11262
10863
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11263
10864
|
#set( $expression = \\"\\" )
|
|
10865
|
+
#set( $expressionNames = {} )
|
|
11264
10866
|
#set( $expressionValues = {} )
|
|
11265
10867
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11266
|
-
#set( $expression = \\"$expression$
|
|
11267
|
-
$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))
|
|
11268
10871
|
#end
|
|
11269
10872
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11270
10873
|
#set( $query = {
|
|
11271
10874
|
\\"expression\\": $expression,
|
|
10875
|
+
\\"expressionNames\\": $expressionNames,
|
|
11272
10876
|
\\"expressionValues\\": $expressionValues
|
|
11273
10877
|
} )
|
|
11274
10878
|
#else
|
|
@@ -11311,14 +10915,17 @@ $util.toJson({})
|
|
|
11311
10915
|
} )
|
|
11312
10916
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11313
10917
|
#set( $expression = \\"\\" )
|
|
10918
|
+
#set( $expressionNames = {} )
|
|
11314
10919
|
#set( $expressionValues = {} )
|
|
11315
10920
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11316
|
-
#set( $expression = \\"$expression$
|
|
11317
|
-
$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))
|
|
11318
10924
|
#end
|
|
11319
10925
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11320
10926
|
#set( $query = {
|
|
11321
10927
|
\\"expression\\": $expression,
|
|
10928
|
+
\\"expressionNames\\": $expressionNames,
|
|
11322
10929
|
\\"expressionValues\\": $expressionValues
|
|
11323
10930
|
} )
|
|
11324
10931
|
#else
|
|
@@ -11361,14 +10968,17 @@ $util.toJson({})
|
|
|
11361
10968
|
} )
|
|
11362
10969
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11363
10970
|
#set( $expression = \\"\\" )
|
|
10971
|
+
#set( $expressionNames = {} )
|
|
11364
10972
|
#set( $expressionValues = {} )
|
|
11365
10973
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11366
|
-
#set( $expression = \\"$expression$
|
|
11367
|
-
$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))
|
|
11368
10977
|
#end
|
|
11369
10978
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11370
10979
|
#set( $query = {
|
|
11371
10980
|
\\"expression\\": $expression,
|
|
10981
|
+
\\"expressionNames\\": $expressionNames,
|
|
11372
10982
|
\\"expressionValues\\": $expressionValues
|
|
11373
10983
|
} )
|
|
11374
10984
|
#else
|
|
@@ -11411,14 +11021,17 @@ $util.toJson({})
|
|
|
11411
11021
|
} )
|
|
11412
11022
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11413
11023
|
#set( $expression = \\"\\" )
|
|
11024
|
+
#set( $expressionNames = {} )
|
|
11414
11025
|
#set( $expressionValues = {} )
|
|
11415
11026
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11416
|
-
#set( $expression = \\"$expression$
|
|
11417
|
-
$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))
|
|
11418
11030
|
#end
|
|
11419
11031
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11420
11032
|
#set( $query = {
|
|
11421
11033
|
\\"expression\\": $expression,
|
|
11034
|
+
\\"expressionNames\\": $expressionNames,
|
|
11422
11035
|
\\"expressionValues\\": $expressionValues
|
|
11423
11036
|
} )
|
|
11424
11037
|
#else
|
|
@@ -11461,14 +11074,17 @@ $util.toJson({})
|
|
|
11461
11074
|
} )
|
|
11462
11075
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11463
11076
|
#set( $expression = \\"\\" )
|
|
11077
|
+
#set( $expressionNames = {} )
|
|
11464
11078
|
#set( $expressionValues = {} )
|
|
11465
11079
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11466
|
-
#set( $expression = \\"$expression$
|
|
11467
|
-
$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))
|
|
11468
11083
|
#end
|
|
11469
11084
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11470
11085
|
#set( $query = {
|
|
11471
11086
|
\\"expression\\": $expression,
|
|
11087
|
+
\\"expressionNames\\": $expressionNames,
|
|
11472
11088
|
\\"expressionValues\\": $expressionValues
|
|
11473
11089
|
} )
|
|
11474
11090
|
#else
|
|
@@ -11511,14 +11127,17 @@ $util.toJson({})
|
|
|
11511
11127
|
} )
|
|
11512
11128
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11513
11129
|
#set( $expression = \\"\\" )
|
|
11130
|
+
#set( $expressionNames = {} )
|
|
11514
11131
|
#set( $expressionValues = {} )
|
|
11515
11132
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11516
|
-
#set( $expression = \\"$expression$
|
|
11517
|
-
$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))
|
|
11518
11136
|
#end
|
|
11519
11137
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11520
11138
|
#set( $query = {
|
|
11521
11139
|
\\"expression\\": $expression,
|
|
11140
|
+
\\"expressionNames\\": $expressionNames,
|
|
11522
11141
|
\\"expressionValues\\": $expressionValues
|
|
11523
11142
|
} )
|
|
11524
11143
|
#else
|
|
@@ -11561,14 +11180,17 @@ $util.toJson({})
|
|
|
11561
11180
|
} )
|
|
11562
11181
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11563
11182
|
#set( $expression = \\"\\" )
|
|
11183
|
+
#set( $expressionNames = {} )
|
|
11564
11184
|
#set( $expressionValues = {} )
|
|
11565
11185
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11566
|
-
#set( $expression = \\"$expression$
|
|
11567
|
-
$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))
|
|
11568
11189
|
#end
|
|
11569
11190
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11570
11191
|
#set( $query = {
|
|
11571
11192
|
\\"expression\\": $expression,
|
|
11193
|
+
\\"expressionNames\\": $expressionNames,
|
|
11572
11194
|
\\"expressionValues\\": $expressionValues
|
|
11573
11195
|
} )
|
|
11574
11196
|
#else
|
|
@@ -11611,14 +11233,17 @@ $util.toJson({})
|
|
|
11611
11233
|
} )
|
|
11612
11234
|
#if( $ctx.stash.metadata.modelObjectKey )
|
|
11613
11235
|
#set( $expression = \\"\\" )
|
|
11236
|
+
#set( $expressionNames = {} )
|
|
11614
11237
|
#set( $expressionValues = {} )
|
|
11615
11238
|
#foreach( $item in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
11616
|
-
#set( $expression = \\"$expression$
|
|
11617
|
-
$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))
|
|
11618
11242
|
#end
|
|
11619
11243
|
#set( $expression = $expression.replaceAll(\\"AND $\\", \\"\\") )
|
|
11620
11244
|
#set( $query = {
|
|
11621
11245
|
\\"expression\\": $expression,
|
|
11246
|
+
\\"expressionNames\\": $expressionNames,
|
|
11622
11247
|
\\"expressionValues\\": $expressionValues
|
|
11623
11248
|
} )
|
|
11624
11249
|
#else
|
|
@@ -11666,9 +11291,9 @@ $util.toJson({})
|
|
|
11666
11291
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11667
11292
|
#set( $filter = $ctx.stash.authFilter )
|
|
11668
11293
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11669
|
-
#set( $filter =
|
|
11294
|
+
#set( $filter = {
|
|
11670
11295
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11671
|
-
}
|
|
11296
|
+
} )
|
|
11672
11297
|
#end
|
|
11673
11298
|
#else
|
|
11674
11299
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11725,9 +11350,9 @@ $util.toJson({})
|
|
|
11725
11350
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11726
11351
|
#set( $filter = $ctx.stash.authFilter )
|
|
11727
11352
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11728
|
-
#set( $filter =
|
|
11353
|
+
#set( $filter = {
|
|
11729
11354
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11730
|
-
}
|
|
11355
|
+
} )
|
|
11731
11356
|
#end
|
|
11732
11357
|
#else
|
|
11733
11358
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11784,9 +11409,9 @@ $util.toJson({})
|
|
|
11784
11409
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11785
11410
|
#set( $filter = $ctx.stash.authFilter )
|
|
11786
11411
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11787
|
-
#set( $filter =
|
|
11412
|
+
#set( $filter = {
|
|
11788
11413
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11789
|
-
}
|
|
11414
|
+
} )
|
|
11790
11415
|
#end
|
|
11791
11416
|
#else
|
|
11792
11417
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11843,9 +11468,9 @@ $util.toJson({})
|
|
|
11843
11468
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11844
11469
|
#set( $filter = $ctx.stash.authFilter )
|
|
11845
11470
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11846
|
-
#set( $filter =
|
|
11471
|
+
#set( $filter = {
|
|
11847
11472
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11848
|
-
}
|
|
11473
|
+
} )
|
|
11849
11474
|
#end
|
|
11850
11475
|
#else
|
|
11851
11476
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11902,9 +11527,9 @@ $util.toJson({})
|
|
|
11902
11527
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11903
11528
|
#set( $filter = $ctx.stash.authFilter )
|
|
11904
11529
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11905
|
-
#set( $filter =
|
|
11530
|
+
#set( $filter = {
|
|
11906
11531
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11907
|
-
}
|
|
11532
|
+
} )
|
|
11908
11533
|
#end
|
|
11909
11534
|
#else
|
|
11910
11535
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -11961,9 +11586,9 @@ $util.toJson({})
|
|
|
11961
11586
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
11962
11587
|
#set( $filter = $ctx.stash.authFilter )
|
|
11963
11588
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
11964
|
-
#set( $filter =
|
|
11589
|
+
#set( $filter = {
|
|
11965
11590
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
11966
|
-
}
|
|
11591
|
+
} )
|
|
11967
11592
|
#end
|
|
11968
11593
|
#else
|
|
11969
11594
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -12020,9 +11645,9 @@ $util.toJson({})
|
|
|
12020
11645
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
12021
11646
|
#set( $filter = $ctx.stash.authFilter )
|
|
12022
11647
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
12023
|
-
#set( $filter =
|
|
11648
|
+
#set( $filter = {
|
|
12024
11649
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
12025
|
-
}
|
|
11650
|
+
} )
|
|
12026
11651
|
#end
|
|
12027
11652
|
#else
|
|
12028
11653
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -12071,9 +11696,9 @@ $util.toJson({})
|
|
|
12071
11696
|
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
|
|
12072
11697
|
#set( $filter = $ctx.stash.authFilter )
|
|
12073
11698
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
12074
|
-
#set( $filter =
|
|
11699
|
+
#set( $filter = {
|
|
12075
11700
|
\\"and\\": [$filter, $ctx.args.filter]
|
|
12076
|
-
}
|
|
11701
|
+
} )
|
|
12077
11702
|
#end
|
|
12078
11703
|
#else
|
|
12079
11704
|
#if( !$util.isNullOrEmpty($ctx.args.filter) )
|
|
@@ -12121,9 +11746,9 @@ $util.toJson({
|
|
|
12121
11746
|
\\"payload\\": {}
|
|
12122
11747
|
})
|
|
12123
11748
|
## [End] Subscription Request template. **",
|
|
12124
|
-
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription
|
|
11749
|
+
"Subscription.onCreateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
12125
11750
|
$util.toJson(null)
|
|
12126
|
-
## [End] Subscription
|
|
11751
|
+
## [End] Subscription Response template. **",
|
|
12127
11752
|
"Subscription.onCreateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12128
11753
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12129
11754
|
$util.unauthorized()
|
|
@@ -12136,9 +11761,9 @@ $util.toJson({
|
|
|
12136
11761
|
\\"payload\\": {}
|
|
12137
11762
|
})
|
|
12138
11763
|
## [End] Subscription Request template. **",
|
|
12139
|
-
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription
|
|
11764
|
+
"Subscription.onCreateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
12140
11765
|
$util.toJson(null)
|
|
12141
|
-
## [End] Subscription
|
|
11766
|
+
## [End] Subscription Response template. **",
|
|
12142
11767
|
"Subscription.onCreateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12143
11768
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12144
11769
|
$util.unauthorized()
|
|
@@ -12151,9 +11776,9 @@ $util.toJson({
|
|
|
12151
11776
|
\\"payload\\": {}
|
|
12152
11777
|
})
|
|
12153
11778
|
## [End] Subscription Request template. **",
|
|
12154
|
-
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription
|
|
11779
|
+
"Subscription.onCreateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
12155
11780
|
$util.toJson(null)
|
|
12156
|
-
## [End] Subscription
|
|
11781
|
+
## [End] Subscription Response template. **",
|
|
12157
11782
|
"Subscription.onCreatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12158
11783
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12159
11784
|
$util.unauthorized()
|
|
@@ -12166,9 +11791,9 @@ $util.toJson({
|
|
|
12166
11791
|
\\"payload\\": {}
|
|
12167
11792
|
})
|
|
12168
11793
|
## [End] Subscription Request template. **",
|
|
12169
|
-
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription
|
|
11794
|
+
"Subscription.onCreatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
12170
11795
|
$util.toJson(null)
|
|
12171
|
-
## [End] Subscription
|
|
11796
|
+
## [End] Subscription Response template. **",
|
|
12172
11797
|
"Subscription.onCreateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12173
11798
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12174
11799
|
$util.unauthorized()
|
|
@@ -12181,9 +11806,9 @@ $util.toJson({
|
|
|
12181
11806
|
\\"payload\\": {}
|
|
12182
11807
|
})
|
|
12183
11808
|
## [End] Subscription Request template. **",
|
|
12184
|
-
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription
|
|
11809
|
+
"Subscription.onCreateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
12185
11810
|
$util.toJson(null)
|
|
12186
|
-
## [End] Subscription
|
|
11811
|
+
## [End] Subscription Response template. **",
|
|
12187
11812
|
"Subscription.onCreateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12188
11813
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12189
11814
|
$util.unauthorized()
|
|
@@ -12196,9 +11821,9 @@ $util.toJson({
|
|
|
12196
11821
|
\\"payload\\": {}
|
|
12197
11822
|
})
|
|
12198
11823
|
## [End] Subscription Request template. **",
|
|
12199
|
-
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription
|
|
11824
|
+
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
12200
11825
|
$util.toJson(null)
|
|
12201
|
-
## [End] Subscription
|
|
11826
|
+
## [End] Subscription Response template. **",
|
|
12202
11827
|
"Subscription.onCreateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12203
11828
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12204
11829
|
$util.unauthorized()
|
|
@@ -12211,9 +11836,9 @@ $util.toJson({
|
|
|
12211
11836
|
\\"payload\\": {}
|
|
12212
11837
|
})
|
|
12213
11838
|
## [End] Subscription Request template. **",
|
|
12214
|
-
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription
|
|
11839
|
+
"Subscription.onCreateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
12215
11840
|
$util.toJson(null)
|
|
12216
|
-
## [End] Subscription
|
|
11841
|
+
## [End] Subscription Response template. **",
|
|
12217
11842
|
"Subscription.onDeleteAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12218
11843
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12219
11844
|
$util.unauthorized()
|
|
@@ -12226,9 +11851,9 @@ $util.toJson({
|
|
|
12226
11851
|
\\"payload\\": {}
|
|
12227
11852
|
})
|
|
12228
11853
|
## [End] Subscription Request template. **",
|
|
12229
|
-
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription
|
|
11854
|
+
"Subscription.onDeleteAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
12230
11855
|
$util.toJson(null)
|
|
12231
|
-
## [End] Subscription
|
|
11856
|
+
## [End] Subscription Response template. **",
|
|
12232
11857
|
"Subscription.onDeleteComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12233
11858
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12234
11859
|
$util.unauthorized()
|
|
@@ -12241,9 +11866,9 @@ $util.toJson({
|
|
|
12241
11866
|
\\"payload\\": {}
|
|
12242
11867
|
})
|
|
12243
11868
|
## [End] Subscription Request template. **",
|
|
12244
|
-
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription
|
|
11869
|
+
"Subscription.onDeleteComment.res.vtl": "## [Start] Subscription Response template. **
|
|
12245
11870
|
$util.toJson(null)
|
|
12246
|
-
## [End] Subscription
|
|
11871
|
+
## [End] Subscription Response template. **",
|
|
12247
11872
|
"Subscription.onDeleteEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12248
11873
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12249
11874
|
$util.unauthorized()
|
|
@@ -12256,9 +11881,9 @@ $util.toJson({
|
|
|
12256
11881
|
\\"payload\\": {}
|
|
12257
11882
|
})
|
|
12258
11883
|
## [End] Subscription Request template. **",
|
|
12259
|
-
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription
|
|
11884
|
+
"Subscription.onDeleteEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
12260
11885
|
$util.toJson(null)
|
|
12261
|
-
## [End] Subscription
|
|
11886
|
+
## [End] Subscription Response template. **",
|
|
12262
11887
|
"Subscription.onDeletePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12263
11888
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12264
11889
|
$util.unauthorized()
|
|
@@ -12271,9 +11896,9 @@ $util.toJson({
|
|
|
12271
11896
|
\\"payload\\": {}
|
|
12272
11897
|
})
|
|
12273
11898
|
## [End] Subscription Request template. **",
|
|
12274
|
-
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription
|
|
11899
|
+
"Subscription.onDeletePost.res.vtl": "## [Start] Subscription Response template. **
|
|
12275
11900
|
$util.toJson(null)
|
|
12276
|
-
## [End] Subscription
|
|
11901
|
+
## [End] Subscription Response template. **",
|
|
12277
11902
|
"Subscription.onDeleteRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12278
11903
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12279
11904
|
$util.unauthorized()
|
|
@@ -12286,9 +11911,9 @@ $util.toJson({
|
|
|
12286
11911
|
\\"payload\\": {}
|
|
12287
11912
|
})
|
|
12288
11913
|
## [End] Subscription Request template. **",
|
|
12289
|
-
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription
|
|
11914
|
+
"Subscription.onDeleteRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
12290
11915
|
$util.toJson(null)
|
|
12291
|
-
## [End] Subscription
|
|
11916
|
+
## [End] Subscription Response template. **",
|
|
12292
11917
|
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12293
11918
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12294
11919
|
$util.unauthorized()
|
|
@@ -12301,9 +11926,9 @@ $util.toJson({
|
|
|
12301
11926
|
\\"payload\\": {}
|
|
12302
11927
|
})
|
|
12303
11928
|
## [End] Subscription Request template. **",
|
|
12304
|
-
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription
|
|
11929
|
+
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
|
|
12305
11930
|
$util.toJson(null)
|
|
12306
|
-
## [End] Subscription
|
|
11931
|
+
## [End] Subscription Response template. **",
|
|
12307
11932
|
"Subscription.onDeleteUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12308
11933
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12309
11934
|
$util.unauthorized()
|
|
@@ -12316,9 +11941,9 @@ $util.toJson({
|
|
|
12316
11941
|
\\"payload\\": {}
|
|
12317
11942
|
})
|
|
12318
11943
|
## [End] Subscription Request template. **",
|
|
12319
|
-
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription
|
|
11944
|
+
"Subscription.onDeleteUser.res.vtl": "## [Start] Subscription Response template. **
|
|
12320
11945
|
$util.toJson(null)
|
|
12321
|
-
## [End] Subscription
|
|
11946
|
+
## [End] Subscription Response template. **",
|
|
12322
11947
|
"Subscription.onUpdateAuthor.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12323
11948
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12324
11949
|
$util.unauthorized()
|
|
@@ -12331,9 +11956,9 @@ $util.toJson({
|
|
|
12331
11956
|
\\"payload\\": {}
|
|
12332
11957
|
})
|
|
12333
11958
|
## [End] Subscription Request template. **",
|
|
12334
|
-
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription
|
|
11959
|
+
"Subscription.onUpdateAuthor.res.vtl": "## [Start] Subscription Response template. **
|
|
12335
11960
|
$util.toJson(null)
|
|
12336
|
-
## [End] Subscription
|
|
11961
|
+
## [End] Subscription Response template. **",
|
|
12337
11962
|
"Subscription.onUpdateComment.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12338
11963
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12339
11964
|
$util.unauthorized()
|
|
@@ -12346,9 +11971,9 @@ $util.toJson({
|
|
|
12346
11971
|
\\"payload\\": {}
|
|
12347
11972
|
})
|
|
12348
11973
|
## [End] Subscription Request template. **",
|
|
12349
|
-
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription
|
|
11974
|
+
"Subscription.onUpdateComment.res.vtl": "## [Start] Subscription Response template. **
|
|
12350
11975
|
$util.toJson(null)
|
|
12351
|
-
## [End] Subscription
|
|
11976
|
+
## [End] Subscription Response template. **",
|
|
12352
11977
|
"Subscription.onUpdateEmail.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12353
11978
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12354
11979
|
$util.unauthorized()
|
|
@@ -12361,9 +11986,9 @@ $util.toJson({
|
|
|
12361
11986
|
\\"payload\\": {}
|
|
12362
11987
|
})
|
|
12363
11988
|
## [End] Subscription Request template. **",
|
|
12364
|
-
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription
|
|
11989
|
+
"Subscription.onUpdateEmail.res.vtl": "## [Start] Subscription Response template. **
|
|
12365
11990
|
$util.toJson(null)
|
|
12366
|
-
## [End] Subscription
|
|
11991
|
+
## [End] Subscription Response template. **",
|
|
12367
11992
|
"Subscription.onUpdatePost.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12368
11993
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12369
11994
|
$util.unauthorized()
|
|
@@ -12376,9 +12001,9 @@ $util.toJson({
|
|
|
12376
12001
|
\\"payload\\": {}
|
|
12377
12002
|
})
|
|
12378
12003
|
## [End] Subscription Request template. **",
|
|
12379
|
-
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription
|
|
12004
|
+
"Subscription.onUpdatePost.res.vtl": "## [Start] Subscription Response template. **
|
|
12380
12005
|
$util.toJson(null)
|
|
12381
|
-
## [End] Subscription
|
|
12006
|
+
## [End] Subscription Response template. **",
|
|
12382
12007
|
"Subscription.onUpdateRequire.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12383
12008
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12384
12009
|
$util.unauthorized()
|
|
@@ -12391,9 +12016,9 @@ $util.toJson({
|
|
|
12391
12016
|
\\"payload\\": {}
|
|
12392
12017
|
})
|
|
12393
12018
|
## [End] Subscription Request template. **",
|
|
12394
|
-
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription
|
|
12019
|
+
"Subscription.onUpdateRequire.res.vtl": "## [Start] Subscription Response template. **
|
|
12395
12020
|
$util.toJson(null)
|
|
12396
|
-
## [End] Subscription
|
|
12021
|
+
## [End] Subscription Response template. **",
|
|
12397
12022
|
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12398
12023
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12399
12024
|
$util.unauthorized()
|
|
@@ -12406,9 +12031,9 @@ $util.toJson({
|
|
|
12406
12031
|
\\"payload\\": {}
|
|
12407
12032
|
})
|
|
12408
12033
|
## [End] Subscription Request template. **",
|
|
12409
|
-
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription
|
|
12034
|
+
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
|
|
12410
12035
|
$util.toJson(null)
|
|
12411
|
-
## [End] Subscription
|
|
12036
|
+
## [End] Subscription Response template. **",
|
|
12412
12037
|
"Subscription.onUpdateUser.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
|
|
12413
12038
|
#if( !$ctx.stash.get(\\"hasAuth\\") )
|
|
12414
12039
|
$util.unauthorized()
|
|
@@ -12421,9 +12046,9 @@ $util.toJson({
|
|
|
12421
12046
|
\\"payload\\": {}
|
|
12422
12047
|
})
|
|
12423
12048
|
## [End] Subscription Request template. **",
|
|
12424
|
-
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription
|
|
12049
|
+
"Subscription.onUpdateUser.res.vtl": "## [Start] Subscription Response template. **
|
|
12425
12050
|
$util.toJson(null)
|
|
12426
|
-
## [End] Subscription
|
|
12051
|
+
## [End] Subscription Response template. **",
|
|
12427
12052
|
}
|
|
12428
12053
|
`;
|
|
12429
12054
|
|
|
@@ -12528,7 +12153,7 @@ enum ModelSortDirection {
|
|
|
12528
12153
|
}
|
|
12529
12154
|
|
|
12530
12155
|
type ModelPostConnection {
|
|
12531
|
-
items: [Post]
|
|
12156
|
+
items: [Post!]!
|
|
12532
12157
|
nextToken: String
|
|
12533
12158
|
}
|
|
12534
12159
|
|
|
@@ -12591,25 +12216,6 @@ type Subscription {
|
|
|
12591
12216
|
|
|
12592
12217
|
exports[`ModelTransformer: should have timestamps as nullable fields when the type makes it non-nullable 2`] = `
|
|
12593
12218
|
"## [Start] Create Request template. **
|
|
12594
|
-
## Begin - key condition **
|
|
12595
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
12596
|
-
#set( $keyConditionExpr = {} )
|
|
12597
|
-
#set( $keyConditionExprNames = {} )
|
|
12598
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
12599
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
12600
|
-
\\"attributeExists\\": false
|
|
12601
|
-
}))
|
|
12602
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
12603
|
-
#end
|
|
12604
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
12605
|
-
#else
|
|
12606
|
-
$util.qr($ctx.stash.conditions.add({
|
|
12607
|
-
\\"id\\": {
|
|
12608
|
-
\\"attributeExists\\": false
|
|
12609
|
-
}
|
|
12610
|
-
}))
|
|
12611
|
-
#end
|
|
12612
|
-
## End - key condition **
|
|
12613
12219
|
## Set the default values to put request **
|
|
12614
12220
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
12615
12221
|
## copy the values from input **
|
|
@@ -12810,25 +12416,6 @@ $util.toJson($UpdateItem)
|
|
|
12810
12416
|
|
|
12811
12417
|
exports[`ModelTransformer: should not add default primary key when ID is defined 1`] = `
|
|
12812
12418
|
"## [Start] Create Request template. **
|
|
12813
|
-
## Begin - key condition **
|
|
12814
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
12815
|
-
#set( $keyConditionExpr = {} )
|
|
12816
|
-
#set( $keyConditionExprNames = {} )
|
|
12817
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
12818
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
12819
|
-
\\"attributeExists\\": false
|
|
12820
|
-
}))
|
|
12821
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
12822
|
-
#end
|
|
12823
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
12824
|
-
#else
|
|
12825
|
-
$util.qr($ctx.stash.conditions.add({
|
|
12826
|
-
\\"id\\": {
|
|
12827
|
-
\\"attributeExists\\": false
|
|
12828
|
-
}
|
|
12829
|
-
}))
|
|
12830
|
-
#end
|
|
12831
|
-
## End - key condition **
|
|
12832
12419
|
## Set the default values to put request **
|
|
12833
12420
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
12834
12421
|
## copy the values from input **
|
|
@@ -13103,7 +12690,7 @@ enum ModelSortDirection {
|
|
|
13103
12690
|
}
|
|
13104
12691
|
|
|
13105
12692
|
type ModelPostConnection {
|
|
13106
|
-
items: [Post]
|
|
12693
|
+
items: [Post!]!
|
|
13107
12694
|
nextToken: String
|
|
13108
12695
|
}
|
|
13109
12696
|
|
|
@@ -13166,25 +12753,6 @@ type Subscription {
|
|
|
13166
12753
|
|
|
13167
12754
|
exports[`ModelTransformer: should not to auto generate createdAt and updatedAt when the type in schema is not AWSDateTime 2`] = `
|
|
13168
12755
|
"## [Start] Create Request template. **
|
|
13169
|
-
## Begin - key condition **
|
|
13170
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
13171
|
-
#set( $keyConditionExpr = {} )
|
|
13172
|
-
#set( $keyConditionExprNames = {} )
|
|
13173
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
13174
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
13175
|
-
\\"attributeExists\\": false
|
|
13176
|
-
}))
|
|
13177
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
13178
|
-
#end
|
|
13179
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
13180
|
-
#else
|
|
13181
|
-
$util.qr($ctx.stash.conditions.add({
|
|
13182
|
-
\\"id\\": {
|
|
13183
|
-
\\"attributeExists\\": false
|
|
13184
|
-
}
|
|
13185
|
-
}))
|
|
13186
|
-
#end
|
|
13187
|
-
## End - key condition **
|
|
13188
12756
|
## Set the default values to put request **
|
|
13189
12757
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
13190
12758
|
## copy the values from input **
|
|
@@ -13482,7 +13050,7 @@ enum ModelSortDirection {
|
|
|
13482
13050
|
}
|
|
13483
13051
|
|
|
13484
13052
|
type ModelPostConnection {
|
|
13485
|
-
items: [Post]
|
|
13053
|
+
items: [Post!]!
|
|
13486
13054
|
nextToken: String
|
|
13487
13055
|
}
|
|
13488
13056
|
|
|
@@ -13537,25 +13105,6 @@ type Subscription {
|
|
|
13537
13105
|
|
|
13538
13106
|
exports[`ModelTransformer: should not to include createdAt and updatedAt field when timestamps is set to null 2`] = `
|
|
13539
13107
|
"## [Start] Create Request template. **
|
|
13540
|
-
## Begin - key condition **
|
|
13541
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
13542
|
-
#set( $keyConditionExpr = {} )
|
|
13543
|
-
#set( $keyConditionExprNames = {} )
|
|
13544
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
13545
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
13546
|
-
\\"attributeExists\\": false
|
|
13547
|
-
}))
|
|
13548
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
13549
|
-
#end
|
|
13550
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
13551
|
-
#else
|
|
13552
|
-
$util.qr($ctx.stash.conditions.add({
|
|
13553
|
-
\\"id\\": {
|
|
13554
|
-
\\"attributeExists\\": false
|
|
13555
|
-
}
|
|
13556
|
-
}))
|
|
13557
|
-
#end
|
|
13558
|
-
## End - key condition **
|
|
13559
13108
|
## Set the default values to put request **
|
|
13560
13109
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
13561
13110
|
## copy the values from input **
|
|
@@ -13855,7 +13404,7 @@ enum ModelSortDirection {
|
|
|
13855
13404
|
}
|
|
13856
13405
|
|
|
13857
13406
|
type ModelPostConnection {
|
|
13858
|
-
items: [Post]
|
|
13407
|
+
items: [Post!]!
|
|
13859
13408
|
nextToken: String
|
|
13860
13409
|
}
|
|
13861
13410
|
|
|
@@ -13910,25 +13459,6 @@ type Subscription {
|
|
|
13910
13459
|
|
|
13911
13460
|
exports[`ModelTransformer: should support timestamp parameters when generating pipelineFunctions and output schema 2`] = `
|
|
13912
13461
|
"## [Start] Create Request template. **
|
|
13913
|
-
## Begin - key condition **
|
|
13914
|
-
#if( $ctx.stash.metadata.modelObjectKey )
|
|
13915
|
-
#set( $keyConditionExpr = {} )
|
|
13916
|
-
#set( $keyConditionExprNames = {} )
|
|
13917
|
-
#foreach( $entry in $ctx.stash.metadata.modelObjectKey.entrySet() )
|
|
13918
|
-
$util.qr($keyConditionExpr.put(\\"keyCondition$velocityCount\\", {
|
|
13919
|
-
\\"attributeExists\\": false
|
|
13920
|
-
}))
|
|
13921
|
-
$util.qr($keyConditionExprNames.put(\\"#keyCondition$velocityCount\\", \\"$entry.key\\"))
|
|
13922
|
-
#end
|
|
13923
|
-
$util.qr($ctx.stash.conditions.add($keyConditionExpr))
|
|
13924
|
-
#else
|
|
13925
|
-
$util.qr($ctx.stash.conditions.add({
|
|
13926
|
-
\\"id\\": {
|
|
13927
|
-
\\"attributeExists\\": false
|
|
13928
|
-
}
|
|
13929
|
-
}))
|
|
13930
|
-
#end
|
|
13931
|
-
## End - key condition **
|
|
13932
13462
|
## Set the default values to put request **
|
|
13933
13463
|
#set( $mergedValues = $util.defaultIfNull($ctx.stash.defaultValues, {}) )
|
|
13934
13464
|
## copy the values from input **
|