@aws-amplify/graphql-model-transformer 0.9.2 → 0.10.0-gql-ext1.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.
@@ -3,105 +3,105 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generateSyncRequestTemplate = exports.generateListRequestTemplate = exports.generateGetResponseTemplate = exports.generateGetRequestTemplate = void 0;
4
4
  const graphql_mapping_template_1 = require("graphql-mapping-template");
5
5
  const graphql_transformer_common_1 = require("graphql-transformer-common");
6
- const authFilter = graphql_mapping_template_1.ref('ctx.stash.authFilter');
6
+ const authFilter = (0, graphql_mapping_template_1.ref)('ctx.stash.authFilter');
7
7
  const generateGetRequestTemplate = () => {
8
8
  const statements = [
9
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('GetRequest'), graphql_mapping_template_1.obj({ version: graphql_mapping_template_1.str('2018-05-29'), operation: graphql_mapping_template_1.str('Query') })),
10
- graphql_mapping_template_1.ifElse(graphql_mapping_template_1.ref('ctx.stash.metadata.modelObjectKey'), graphql_mapping_template_1.compoundExpression([
11
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('expression'), graphql_mapping_template_1.str('')),
12
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('expressionNames'), graphql_mapping_template_1.obj({})),
13
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('expressionValues'), graphql_mapping_template_1.obj({})),
14
- graphql_mapping_template_1.forEach(graphql_mapping_template_1.ref('item'), graphql_mapping_template_1.ref('ctx.stash.metadata.modelObjectKey.entrySet()'), [
15
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('expression'), graphql_mapping_template_1.str('$expression#keyCount$velocityCount = :valueCount$velocityCount AND ')),
16
- graphql_mapping_template_1.qref(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('expressionNames.put'), graphql_mapping_template_1.str('#keyCount$velocityCount'), graphql_mapping_template_1.ref('item.key'))),
17
- graphql_mapping_template_1.qref(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('expressionValues.put'), graphql_mapping_template_1.str(':valueCount$velocityCount'), graphql_mapping_template_1.ref('item.value'))),
9
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('GetRequest'), (0, graphql_mapping_template_1.obj)({ version: (0, graphql_mapping_template_1.str)('2018-05-29'), operation: (0, graphql_mapping_template_1.str)('Query') })),
10
+ (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.ref)('ctx.stash.metadata.modelObjectKey'), (0, graphql_mapping_template_1.compoundExpression)([
11
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('expression'), (0, graphql_mapping_template_1.str)('')),
12
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('expressionNames'), (0, graphql_mapping_template_1.obj)({})),
13
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('expressionValues'), (0, graphql_mapping_template_1.obj)({})),
14
+ (0, graphql_mapping_template_1.forEach)((0, graphql_mapping_template_1.ref)('item'), (0, graphql_mapping_template_1.ref)('ctx.stash.metadata.modelObjectKey.entrySet()'), [
15
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('expression'), (0, graphql_mapping_template_1.str)('$expression#keyCount$velocityCount = :valueCount$velocityCount AND ')),
16
+ (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('expressionNames.put'), (0, graphql_mapping_template_1.str)('#keyCount$velocityCount'), (0, graphql_mapping_template_1.ref)('item.key'))),
17
+ (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('expressionValues.put'), (0, graphql_mapping_template_1.str)(':valueCount$velocityCount'), (0, graphql_mapping_template_1.ref)('item.value'))),
18
18
  ]),
19
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('expression'), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('expression.replaceAll'), graphql_mapping_template_1.str('AND $'), graphql_mapping_template_1.str(''))),
20
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('query'), graphql_mapping_template_1.obj({ expression: graphql_mapping_template_1.ref('expression'), expressionNames: graphql_mapping_template_1.ref('expressionNames'), expressionValues: graphql_mapping_template_1.ref('expressionValues') })),
21
- ]), graphql_mapping_template_1.set(graphql_mapping_template_1.ref('query'), graphql_mapping_template_1.obj({
22
- expression: graphql_mapping_template_1.str('id = :id'),
23
- expressionValues: graphql_mapping_template_1.obj({
24
- ':id': graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.parseJson'), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.dynamodb.toDynamoDBJson'), graphql_mapping_template_1.ref('ctx.args.id'))),
19
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('expression'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('expression.replaceAll'), (0, graphql_mapping_template_1.str)('AND $'), (0, graphql_mapping_template_1.str)(''))),
20
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('query'), (0, graphql_mapping_template_1.obj)({ expression: (0, graphql_mapping_template_1.ref)('expression'), expressionNames: (0, graphql_mapping_template_1.ref)('expressionNames'), expressionValues: (0, graphql_mapping_template_1.ref)('expressionValues') })),
21
+ ]), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('query'), (0, graphql_mapping_template_1.obj)({
22
+ expression: (0, graphql_mapping_template_1.str)('id = :id'),
23
+ expressionValues: (0, graphql_mapping_template_1.obj)({
24
+ ':id': (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.parseJson'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.dynamodb.toDynamoDBJson'), (0, graphql_mapping_template_1.ref)('ctx.args.id'))),
25
25
  }),
26
26
  }))),
27
- graphql_mapping_template_1.qref(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('GetRequest.put'), graphql_mapping_template_1.str('query'), graphql_mapping_template_1.ref('query'))),
28
- graphql_mapping_template_1.iff(graphql_mapping_template_1.not(graphql_mapping_template_1.isNullOrEmpty(authFilter)), graphql_mapping_template_1.qref(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('GetRequest.put'), graphql_mapping_template_1.str('filter'), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.parseJson'), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.transform.toDynamoDBFilterExpression'), authFilter))))),
29
- graphql_mapping_template_1.toJson(graphql_mapping_template_1.ref('GetRequest')),
27
+ (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('GetRequest.put'), (0, graphql_mapping_template_1.str)('query'), (0, graphql_mapping_template_1.ref)('query'))),
28
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)(authFilter)), (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('GetRequest.put'), (0, graphql_mapping_template_1.str)('filter'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.parseJson'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.transform.toDynamoDBFilterExpression'), authFilter))))),
29
+ (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.ref)('GetRequest')),
30
30
  ];
31
- return graphql_mapping_template_1.printBlock('Get Request template')(graphql_mapping_template_1.compoundExpression(statements));
31
+ return (0, graphql_mapping_template_1.printBlock)('Get Request template')((0, graphql_mapping_template_1.compoundExpression)(statements));
32
32
  };
33
33
  exports.generateGetRequestTemplate = generateGetRequestTemplate;
34
34
  const generateGetResponseTemplate = (isSyncEnabled) => {
35
35
  const statements = new Array();
36
36
  if (isSyncEnabled) {
37
- statements.push(graphql_mapping_template_1.iff(graphql_mapping_template_1.ref('ctx.error'), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.error'), graphql_mapping_template_1.ref('ctx.error.message'), graphql_mapping_template_1.ref('ctx.error.type'), graphql_mapping_template_1.ref('ctx.result'))));
37
+ statements.push((0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.ref)('ctx.error'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.error'), (0, graphql_mapping_template_1.ref)('ctx.error.message'), (0, graphql_mapping_template_1.ref)('ctx.error.type'), (0, graphql_mapping_template_1.ref)('ctx.result'))));
38
38
  }
39
39
  else {
40
- statements.push(graphql_mapping_template_1.iff(graphql_mapping_template_1.ref('ctx.error'), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.error'), graphql_mapping_template_1.ref('ctx.error.message'), graphql_mapping_template_1.ref('ctx.error.type'))));
40
+ statements.push((0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.ref)('ctx.error'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.error'), (0, graphql_mapping_template_1.ref)('ctx.error.message'), (0, graphql_mapping_template_1.ref)('ctx.error.type'))));
41
41
  }
42
- statements.push(graphql_mapping_template_1.ifElse(graphql_mapping_template_1.and([graphql_mapping_template_1.not(graphql_mapping_template_1.ref('ctx.result.items.isEmpty()')), graphql_mapping_template_1.equals(graphql_mapping_template_1.ref('ctx.result.scannedCount'), graphql_mapping_template_1.int(1))]), graphql_mapping_template_1.toJson(graphql_mapping_template_1.ref('ctx.result.items[0]')), graphql_mapping_template_1.compoundExpression([
43
- graphql_mapping_template_1.iff(graphql_mapping_template_1.and([graphql_mapping_template_1.ref('ctx.result.items.isEmpty()'), graphql_mapping_template_1.equals(graphql_mapping_template_1.ref('ctx.result.scannedCount'), graphql_mapping_template_1.int(1))]), graphql_mapping_template_1.ref('util.unauthorized()')),
44
- graphql_mapping_template_1.toJson(graphql_mapping_template_1.nul()),
42
+ statements.push((0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.and)([(0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.ref)('ctx.result.items.isEmpty()')), (0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.ref)('ctx.result.scannedCount'), (0, graphql_mapping_template_1.int)(1))]), (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.ref)('ctx.result.items[0]')), (0, graphql_mapping_template_1.compoundExpression)([
43
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.and)([(0, graphql_mapping_template_1.ref)('ctx.result.items.isEmpty()'), (0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.ref)('ctx.result.scannedCount'), (0, graphql_mapping_template_1.int)(1))]), (0, graphql_mapping_template_1.ref)('util.unauthorized()')),
44
+ (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.nul)()),
45
45
  ])));
46
- return graphql_mapping_template_1.printBlock('Get Response template')(graphql_mapping_template_1.compoundExpression(statements));
46
+ return (0, graphql_mapping_template_1.printBlock)('Get Response template')((0, graphql_mapping_template_1.compoundExpression)(statements));
47
47
  };
48
48
  exports.generateGetResponseTemplate = generateGetResponseTemplate;
49
49
  const generateListRequestTemplate = () => {
50
50
  const requestVariable = 'ListRequest';
51
51
  const modelQueryObj = 'ctx.stash.modelQueryExpression';
52
52
  const indexNameVariable = 'ctx.stash.metadata.index';
53
- const expression = graphql_mapping_template_1.compoundExpression([
54
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('limit'), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref(`util.defaultIfNull`), graphql_mapping_template_1.ref('context.args.limit'), graphql_mapping_template_1.int(100))),
55
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref(requestVariable), graphql_mapping_template_1.obj({
56
- version: graphql_mapping_template_1.str('2018-05-29'),
57
- limit: graphql_mapping_template_1.ref('limit'),
53
+ const expression = (0, graphql_mapping_template_1.compoundExpression)([
54
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('limit'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.defaultIfNull`), (0, graphql_mapping_template_1.ref)('context.args.limit'), (0, graphql_mapping_template_1.int)(100))),
55
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(requestVariable), (0, graphql_mapping_template_1.obj)({
56
+ version: (0, graphql_mapping_template_1.str)('2018-05-29'),
57
+ limit: (0, graphql_mapping_template_1.ref)('limit'),
58
58
  })),
59
- graphql_mapping_template_1.iff(graphql_mapping_template_1.ref('context.args.nextToken'), graphql_mapping_template_1.set(graphql_mapping_template_1.ref(`${requestVariable}.nextToken`), graphql_mapping_template_1.ref('context.args.nextToken'))),
60
- graphql_mapping_template_1.ifElse(graphql_mapping_template_1.not(graphql_mapping_template_1.isNullOrEmpty(authFilter)), graphql_mapping_template_1.compoundExpression([
61
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('filter'), authFilter),
62
- graphql_mapping_template_1.iff(graphql_mapping_template_1.not(graphql_mapping_template_1.isNullOrEmpty(graphql_mapping_template_1.ref('ctx.args.filter'))), graphql_mapping_template_1.set(graphql_mapping_template_1.ref('filter'), graphql_mapping_template_1.obj({ and: graphql_mapping_template_1.list([graphql_mapping_template_1.ref('filter'), graphql_mapping_template_1.ref('ctx.args.filter')]) }))),
63
- ]), graphql_mapping_template_1.iff(graphql_mapping_template_1.not(graphql_mapping_template_1.isNullOrEmpty(graphql_mapping_template_1.ref('ctx.args.filter'))), graphql_mapping_template_1.set(graphql_mapping_template_1.ref('filter'), graphql_mapping_template_1.ref('ctx.args.filter')))),
64
- graphql_mapping_template_1.iff(graphql_mapping_template_1.not(graphql_mapping_template_1.isNullOrEmpty(graphql_mapping_template_1.ref('filter'))), graphql_mapping_template_1.compoundExpression([
65
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref(`filterExpression`), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.parseJson'), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.transform.toDynamoDBFilterExpression'), graphql_mapping_template_1.ref('filter')))),
66
- graphql_mapping_template_1.iff(graphql_mapping_template_1.not(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.isNullOrBlank'), graphql_mapping_template_1.ref('filterExpression.expression'))), graphql_mapping_template_1.compoundExpression([
67
- graphql_mapping_template_1.iff(graphql_mapping_template_1.equals(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('filterEpression.expressionValues.size')), graphql_mapping_template_1.int(0)), graphql_mapping_template_1.qref(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('filterEpression.remove'), graphql_mapping_template_1.str('expressionValues')))),
68
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref(`${requestVariable}.filter`), graphql_mapping_template_1.ref(`filterExpression`)),
59
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.ref)('context.args.nextToken'), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`${requestVariable}.nextToken`), (0, graphql_mapping_template_1.ref)('context.args.nextToken'))),
60
+ (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)(authFilter)), (0, graphql_mapping_template_1.compoundExpression)([
61
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), authFilter),
62
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)((0, graphql_mapping_template_1.ref)('ctx.args.filter'))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.obj)({ and: (0, graphql_mapping_template_1.list)([(0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.ref)('ctx.args.filter')]) }))),
63
+ ]), (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)((0, graphql_mapping_template_1.ref)('ctx.args.filter'))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.ref)('ctx.args.filter')))),
64
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)((0, graphql_mapping_template_1.ref)('filter'))), (0, graphql_mapping_template_1.compoundExpression)([
65
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`filterExpression`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.parseJson'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.transform.toDynamoDBFilterExpression'), (0, graphql_mapping_template_1.ref)('filter')))),
66
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNullOrBlank'), (0, graphql_mapping_template_1.ref)('filterExpression.expression'))), (0, graphql_mapping_template_1.compoundExpression)([
67
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('filterEpression.expressionValues.size')), (0, graphql_mapping_template_1.int)(0)), (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('filterEpression.remove'), (0, graphql_mapping_template_1.str)('expressionValues')))),
68
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`${requestVariable}.filter`), (0, graphql_mapping_template_1.ref)(`filterExpression`)),
69
69
  ])),
70
70
  ])),
71
- graphql_mapping_template_1.ifElse(graphql_mapping_template_1.and([
72
- graphql_mapping_template_1.not(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.isNull'), graphql_mapping_template_1.ref(modelQueryObj))),
73
- graphql_mapping_template_1.not(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.isNullOrEmpty'), graphql_mapping_template_1.ref(`${modelQueryObj}.expression`))),
74
- ]), graphql_mapping_template_1.compoundExpression([
75
- graphql_mapping_template_1.qref(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref(`${requestVariable}.put`), graphql_mapping_template_1.str('operation'), graphql_mapping_template_1.str('Query'))),
76
- graphql_mapping_template_1.qref(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref(`${requestVariable}.put`), graphql_mapping_template_1.str('query'), graphql_mapping_template_1.ref(modelQueryObj))),
77
- graphql_mapping_template_1.ifElse(graphql_mapping_template_1.and([graphql_mapping_template_1.not(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.isNull'), graphql_mapping_template_1.ref('ctx.args.sortDirection'))), graphql_mapping_template_1.equals(graphql_mapping_template_1.ref('ctx.args.sortDirection'), graphql_mapping_template_1.str('DESC'))]), graphql_mapping_template_1.set(graphql_mapping_template_1.ref(`${requestVariable}.scanIndexForward`), graphql_mapping_template_1.bool(false)), graphql_mapping_template_1.set(graphql_mapping_template_1.ref(`${requestVariable}.scanIndexForward`), graphql_mapping_template_1.bool(true))),
78
- ]), graphql_mapping_template_1.qref(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref(`${requestVariable}.put`), graphql_mapping_template_1.str('operation'), graphql_mapping_template_1.str('Scan')))),
79
- graphql_mapping_template_1.iff(graphql_mapping_template_1.not(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.isNull'), graphql_mapping_template_1.ref(indexNameVariable))), graphql_mapping_template_1.set(graphql_mapping_template_1.ref(`${requestVariable}.IndexName`), graphql_mapping_template_1.ref(indexNameVariable))),
80
- graphql_mapping_template_1.toJson(graphql_mapping_template_1.ref(requestVariable)),
71
+ (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.and)([
72
+ (0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNull'), (0, graphql_mapping_template_1.ref)(modelQueryObj))),
73
+ (0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNullOrEmpty'), (0, graphql_mapping_template_1.ref)(`${modelQueryObj}.expression`))),
74
+ ]), (0, graphql_mapping_template_1.compoundExpression)([
75
+ (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`${requestVariable}.put`), (0, graphql_mapping_template_1.str)('operation'), (0, graphql_mapping_template_1.str)('Query'))),
76
+ (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`${requestVariable}.put`), (0, graphql_mapping_template_1.str)('query'), (0, graphql_mapping_template_1.ref)(modelQueryObj))),
77
+ (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.and)([(0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNull'), (0, graphql_mapping_template_1.ref)('ctx.args.sortDirection'))), (0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.ref)('ctx.args.sortDirection'), (0, graphql_mapping_template_1.str)('DESC'))]), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`${requestVariable}.scanIndexForward`), (0, graphql_mapping_template_1.bool)(false)), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`${requestVariable}.scanIndexForward`), (0, graphql_mapping_template_1.bool)(true))),
78
+ ]), (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`${requestVariable}.put`), (0, graphql_mapping_template_1.str)('operation'), (0, graphql_mapping_template_1.str)('Scan')))),
79
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNull'), (0, graphql_mapping_template_1.ref)(indexNameVariable))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`${requestVariable}.IndexName`), (0, graphql_mapping_template_1.ref)(indexNameVariable))),
80
+ (0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.ref)(requestVariable)),
81
81
  ]);
82
- return graphql_mapping_template_1.printBlock('List Request')(expression);
82
+ return (0, graphql_mapping_template_1.printBlock)('List Request')(expression);
83
83
  };
84
84
  exports.generateListRequestTemplate = generateListRequestTemplate;
85
85
  const generateSyncRequestTemplate = () => {
86
- return graphql_mapping_template_1.printBlock('Sync Request template')(graphql_mapping_template_1.compoundExpression([
87
- graphql_mapping_template_1.ifElse(graphql_mapping_template_1.not(graphql_mapping_template_1.isNullOrEmpty(authFilter)), graphql_mapping_template_1.compoundExpression([
88
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('filter'), authFilter),
89
- graphql_mapping_template_1.iff(graphql_mapping_template_1.not(graphql_mapping_template_1.isNullOrEmpty(graphql_mapping_template_1.ref('ctx.args.filter'))), graphql_mapping_template_1.set(graphql_mapping_template_1.ref('filter'), graphql_mapping_template_1.obj({ and: graphql_mapping_template_1.list([graphql_mapping_template_1.ref('filter'), graphql_mapping_template_1.ref('ctx.args.filter')]) }))),
90
- ]), graphql_mapping_template_1.iff(graphql_mapping_template_1.not(graphql_mapping_template_1.isNullOrEmpty(graphql_mapping_template_1.ref('ctx.args.filter'))), graphql_mapping_template_1.set(graphql_mapping_template_1.ref('filter'), graphql_mapping_template_1.ref('ctx.args.filter')))),
91
- graphql_mapping_template_1.iff(graphql_mapping_template_1.not(graphql_mapping_template_1.isNullOrEmpty(graphql_mapping_template_1.ref('filter'))), graphql_mapping_template_1.compoundExpression([
92
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref(`filterExpression`), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.parseJson'), graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.transform.toDynamoDBFilterExpression'), graphql_mapping_template_1.ref('filter')))),
93
- graphql_mapping_template_1.iff(graphql_mapping_template_1.not(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('util.isNullOrBlank'), graphql_mapping_template_1.ref('filterExpression.expression'))), graphql_mapping_template_1.compoundExpression([
94
- graphql_mapping_template_1.iff(graphql_mapping_template_1.equals(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('filterEpression.expressionValues.size')), graphql_mapping_template_1.int(0)), graphql_mapping_template_1.qref(graphql_mapping_template_1.methodCall(graphql_mapping_template_1.ref('filterEpression.remove'), graphql_mapping_template_1.str('expressionValues')))),
95
- graphql_mapping_template_1.set(graphql_mapping_template_1.ref('filter'), graphql_mapping_template_1.ref('filterExpression')),
86
+ return (0, graphql_mapping_template_1.printBlock)('Sync Request template')((0, graphql_mapping_template_1.compoundExpression)([
87
+ (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)(authFilter)), (0, graphql_mapping_template_1.compoundExpression)([
88
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), authFilter),
89
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)((0, graphql_mapping_template_1.ref)('ctx.args.filter'))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.obj)({ and: (0, graphql_mapping_template_1.list)([(0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.ref)('ctx.args.filter')]) }))),
90
+ ]), (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)((0, graphql_mapping_template_1.ref)('ctx.args.filter'))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.ref)('ctx.args.filter')))),
91
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.isNullOrEmpty)((0, graphql_mapping_template_1.ref)('filter'))), (0, graphql_mapping_template_1.compoundExpression)([
92
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`filterExpression`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.parseJson'), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.transform.toDynamoDBFilterExpression'), (0, graphql_mapping_template_1.ref)('filter')))),
93
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('util.isNullOrBlank'), (0, graphql_mapping_template_1.ref)('filterExpression.expression'))), (0, graphql_mapping_template_1.compoundExpression)([
94
+ (0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.equals)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('filterEpression.expressionValues.size')), (0, graphql_mapping_template_1.int)(0)), (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('filterEpression.remove'), (0, graphql_mapping_template_1.str)('expressionValues')))),
95
+ (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.ref)('filterExpression')),
96
96
  ])),
97
97
  ])),
98
- graphql_mapping_template_1.obj({
99
- version: graphql_mapping_template_1.str('2018-05-29'),
100
- operation: graphql_mapping_template_1.str('Sync'),
101
- filter: graphql_mapping_template_1.ifElse(graphql_mapping_template_1.ref('filter'), graphql_mapping_template_1.ref('util.toJson($filter)'), graphql_mapping_template_1.nul()),
102
- limit: graphql_mapping_template_1.ref(`util.defaultIfNull($ctx.args.limit, ${graphql_transformer_common_1.ResourceConstants.DEFAULT_SYNC_QUERY_PAGE_LIMIT})`),
103
- lastSync: graphql_mapping_template_1.ref('util.toJson($util.defaultIfNull($ctx.args.lastSync, null))'),
104
- nextToken: graphql_mapping_template_1.ref('util.toJson($util.defaultIfNull($ctx.args.nextToken, null))'),
98
+ (0, graphql_mapping_template_1.obj)({
99
+ version: (0, graphql_mapping_template_1.str)('2018-05-29'),
100
+ operation: (0, graphql_mapping_template_1.str)('Sync'),
101
+ filter: (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.ref)('filter'), (0, graphql_mapping_template_1.ref)('util.toJson($filter)'), (0, graphql_mapping_template_1.nul)()),
102
+ limit: (0, graphql_mapping_template_1.ref)(`util.defaultIfNull($ctx.args.limit, ${graphql_transformer_common_1.ResourceConstants.DEFAULT_SYNC_QUERY_PAGE_LIMIT})`),
103
+ lastSync: (0, graphql_mapping_template_1.ref)('util.toJson($util.defaultIfNull($ctx.args.lastSync, null))'),
104
+ nextToken: (0, graphql_mapping_template_1.ref)('util.toJson($util.defaultIfNull($ctx.args.nextToken, null))'),
105
105
  }),
106
106
  ]));
107
107
  };
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/resolvers/query.ts"],"names":[],"mappings":";;;AAAA,uEAsBkC;AAClC,2EAA+D;AAC/D,MAAM,UAAU,GAAG,8BAAG,CAAC,sBAAsB,CAAC,CAAC;AAKxC,MAAM,0BAA0B,GAAG,GAAW,EAAE;IACrD,MAAM,UAAU,GAAiB;QAC/B,8BAAG,CAAC,8BAAG,CAAC,YAAY,CAAC,EAAE,8BAAG,CAAC,EAAE,OAAO,EAAE,8BAAG,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,8BAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACpF,iCAAM,CACJ,8BAAG,CAAC,mCAAmC,CAAC,EACxC,6CAAkB,CAAC;YACjB,8BAAG,CAAC,8BAAG,CAAC,YAAY,CAAC,EAAE,8BAAG,CAAC,EAAE,CAAC,CAAC;YAC/B,8BAAG,CAAC,8BAAG,CAAC,iBAAiB,CAAC,EAAE,8BAAG,CAAC,EAAE,CAAC,CAAC;YACpC,8BAAG,CAAC,8BAAG,CAAC,kBAAkB,CAAC,EAAE,8BAAG,CAAC,EAAE,CAAC,CAAC;YACrC,kCAAO,CAAC,8BAAG,CAAC,MAAM,CAAC,EAAE,8BAA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AAE,IAAA,8BAAG,EAAC,6DAA6D,CAAC;SAC9E,CAAC;KACH,CAAC,CACH,CAAC;AACJ,CAAC,CAAC;AAxCW,QAAA,2BAA2B,+BAwCtC"}
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.generateSubscriptionResponseTemplate = exports.generateSubscriptionRequestTemplate = void 0;
4
4
  const graphql_mapping_template_1 = require("graphql-mapping-template");
5
5
  const generateSubscriptionRequestTemplate = () => {
6
- const statements = [graphql_mapping_template_1.toJson(graphql_mapping_template_1.obj({ version: graphql_mapping_template_1.str('2018-05-29'), payload: graphql_mapping_template_1.obj({}) }))];
7
- return graphql_mapping_template_1.printBlock('Subscription Request template')(graphql_mapping_template_1.compoundExpression(statements));
6
+ const statements = [(0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.obj)({ version: (0, graphql_mapping_template_1.str)('2018-05-29'), payload: (0, graphql_mapping_template_1.obj)({}) }))];
7
+ return (0, graphql_mapping_template_1.printBlock)('Subscription Request template')((0, graphql_mapping_template_1.compoundExpression)(statements));
8
8
  };
9
9
  exports.generateSubscriptionRequestTemplate = generateSubscriptionRequestTemplate;
10
10
  const generateSubscriptionResponseTemplate = () => {
11
- const statements = [graphql_mapping_template_1.toJson(graphql_mapping_template_1.nul())];
12
- return graphql_mapping_template_1.printBlock('Subscription Response template')(graphql_mapping_template_1.compoundExpression(statements));
11
+ const statements = [(0, graphql_mapping_template_1.toJson)((0, graphql_mapping_template_1.nul)())];
12
+ return (0, graphql_mapping_template_1.printBlock)('Subscription Response template')((0, graphql_mapping_template_1.compoundExpression)(statements));
13
13
  };
14
14
  exports.generateSubscriptionResponseTemplate = generateSubscriptionResponseTemplate;
15
15
  //# sourceMappingURL=subscriptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/resolvers/subscriptions.ts"],"names":[],"mappings":";;;AAAA,uEAA6G;AAEtG,MAAM,mCAAmC,GAAG,GAA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kB,EAAC,UAAU,CAAC,CAAC,CAAC;AACtF,CAAC,CAAC;AAHW,QAAA,oCAAoC,wCAG/C"}
@@ -44,7 +44,7 @@ class GenericFieldWrapper {
44
44
  };
45
45
  this.isListType = (type) => {
46
46
  if (type.kind === graphql_1.Kind.NON_NULL_TYPE) {
47
- return graphql_1.isListType(type.type);
47
+ return (0, graphql_1.isListType)(type.type);
48
48
  }
49
49
  else {
50
50
  return type.kind === graphql_1.Kind.LIST_TYPE;
@@ -99,14 +99,14 @@ InputFieldWrapper.fromField = (name, field, document) => {
99
99
  };
100
100
  let type;
101
101
  if (Object.keys(autoGeneratableFieldsWithType).indexOf(name) !== -1 &&
102
- autoGeneratableFieldsWithType[name].indexOf(graphql_transformer_common_1.unwrapNonNull(field.type).name.value) !== -1) {
103
- type = graphql_transformer_common_1.unwrapNonNull(field.type);
102
+ autoGeneratableFieldsWithType[name].indexOf((0, graphql_transformer_common_1.unwrapNonNull)(field.type).name.value) !== -1) {
103
+ type = (0, graphql_transformer_common_1.unwrapNonNull)(field.type);
104
104
  }
105
105
  else {
106
106
  type =
107
- graphql_transformer_common_1.isScalar(field.type) || graphql_transformer_common_1.isEnum(field.type, document)
107
+ (0, graphql_transformer_common_1.isScalar)(field.type) || (0, graphql_transformer_common_1.isEnum)(field.type, document)
108
108
  ? field.type
109
- : graphql_transformer_common_1.withNamedNodeNamed(field.type, graphql_transformer_common_1.ModelResourceIDs.NonModelInputObjectName(graphql_transformer_common_1.getBaseType(field.type)));
109
+ : (0, graphql_transformer_common_1.withNamedNodeNamed)(field.type, graphql_transformer_common_1.ModelResourceIDs.NonModelInputObjectName((0, graphql_transformer_common_1.getBaseType)(field.type)));
110
110
  }
111
111
  return new InputFieldWrapper({
112
112
  kind: 'InputValueDefinition',
@@ -1 +1 @@
1
- {"version":3,"file":"object-definition-wrapper.js","sourceRoot":"","sources":["../../src/wrappers/object-definition-wrapper.ts"],"names":[],"mappings":";;;AAAA,oFAAyE;AACzE,qCAgBiB;AACjB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J,CAAC;QACJ,CAAC,CAAC;QAzBA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAI,EAAE,CAAC;QACxD,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,2CAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,CAAC;;AARH,kCA6CC;AAdQ,kBAAM,GAAG,CAAC,IAAY,EAAE,SAAmB,EAAE,EAAe,EAAE;IACnE,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC;QAClC,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,IAAI;SACZ;QACD,MAAM,EAAE,EAAE;KACX,CAAC,CAAC;IACH,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACnB,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/graphql-model-transformer",
3
- "version": "0.9.2",
3
+ "version": "0.10.0-gql-ext1.0",
4
4
  "description": "Amplify graphql @model transformer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "test-watch": "jest --watch"
29
29
  },
30
30
  "dependencies": {
31
- "@aws-amplify/graphql-transformer-core": "0.13.0",
31
+ "@aws-amplify/graphql-transformer-core": "0.14.0-gql-ext1.0",
32
32
  "@aws-amplify/graphql-transformer-interfaces": "1.12.2",
33
33
  "@aws-cdk/assets": "~1.124.0",
34
34
  "@aws-cdk/aws-applicationautoscaling": "~1.124.0",
@@ -81,7 +81,10 @@
81
81
  "json",
82
82
  "node"
83
83
  ],
84
- "collectCoverage": true
84
+ "collectCoverage": true,
85
+ "modulePathIgnorePatterns": [
86
+ "overrides"
87
+ ]
85
88
  },
86
- "gitHead": "efc99baf0d9f5695210275865cd78a5cd9097ca7"
89
+ "gitHead": "875f54abfcc326a70fe4ba6827f9bf42c1bb4912"
87
90
  }