@izara_project/izara-core-generate-service-code 1.0.43 → 1.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-generate-service-code",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "Code for locally generating per service files",
5
5
  "author": "Sven Mason <thebarbariansven@gmail.com>",
6
6
  "license": "AGPL-3.0-or-later",
@@ -55,7 +55,7 @@ export default async function <%- functionName %>(
55
55
  _izContext.logger.debug('<%- functionName %> callingFlowConfig: ', callingFlowConfig);
56
56
 
57
57
  //(<hookCode>)
58
- //(<hookCode>)
58
+ //(</hookCode>)
59
59
 
60
60
  <% if (handleLogic === 'awaitingMultipleSteps') { %>
61
61
  <%- include(templateAwaitingStep, { childFlow, mainObjType }) %>
@@ -1,22 +1,22 @@
1
1
  #------- queue ---------
2
- <%- queueName %>HdrSqs:
2
+ <%- queueName %>:
3
3
  Type: "AWS::SQS::Queue"
4
4
  Properties:
5
- QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqs
5
+ QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>
6
6
  RedrivePolicy:
7
7
  deadLetterTargetArn: #!GetAtt
8
8
  Fn::GetAtt:
9
- - <%- queueName %>HdrSqsDLQ
9
+ - <%- queueName %>DLQ
10
10
  - Arn
11
11
  maxReceiveCount: 3
12
12
  VisibilityTimeout: 120
13
13
 
14
- <%- queueName %>HdrSqsDLQ:
14
+ <%- queueName %>DLQ:
15
15
  Type: AWS::SQS::Queue
16
16
  Properties:
17
- QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>HdrSqsDLQ
17
+ QueueName: ${self:custom.iz_resourcePrefix}<%- queueName %>DLQ
18
18
 
19
- <%- queueName %>HdrSqsPolicy:
19
+ <%- queueName %>Policy:
20
20
  Type: AWS::SQS::QueuePolicy
21
21
  Properties:
22
22
  PolicyDocument:
@@ -27,11 +27,11 @@
27
27
  Principal: "*"
28
28
  Resource: #!GetAtt
29
29
  Fn::GetAtt:
30
- - <%- queueName %>HdrSqs
30
+ - <%- queueName %>
31
31
  - Arn
32
32
  Action: "SQS:SendMessage"
33
33
  Queues:
34
- - Ref: <%- queueName %>HdrSqs
34
+ - Ref: <%- queueName %>
35
35
  #<#<%- firstLetterUpperCase(queueName) %>QueueSetting#>
36
36
  #<#/<%- firstLetterUpperCase(queueName) %>QueueSetting#>
37
37
 
@@ -85,7 +85,7 @@ async function createExternalLambdaRole(
85
85
  role(
86
86
  lam,
87
87
  LAMBDA_RESOURCE.invokeFunction,
88
- extRes(lam, 'GetNodeV2HdrInv', resourceGraphServiceTag)
88
+ extRes(lam, 'GetNodeHdrInv', resourceGraphServiceTag)
89
89
  ),
90
90
  role(
91
91
  sns,
@@ -97,16 +97,16 @@ async function createExternalLambdaRole(
97
97
  SNS_RESOURCE.publish,
98
98
  extRes(sns, 'CreateNode_In', resourceGraphServiceTag)
99
99
  ),
100
- role(
101
- lam,
102
- LAMBDA_RESOURCE.invokeFunction,
103
- extRes(lam, 'CreateNodeV2HdrInv', resourceGraphServiceTag)
104
- ),
105
- role(
106
- lam,
107
- LAMBDA_RESOURCE.invokeFunction,
108
- extRes(lam, 'UpdateNodeHdrInv', resourceGraphServiceTag)
109
- )
100
+ // role(
101
+ // lam,
102
+ // LAMBDA_RESOURCE.invokeFunction,
103
+ // extRes(lam, 'CreateNodeV2HdrInv', resourceGraphServiceTag)
104
+ // ),
105
+ // role(
106
+ // lam,
107
+ // LAMBDA_RESOURCE.invokeFunction,
108
+ // extRes(lam, 'UpdateNodeHdrInv', resourceGraphServiceTag)
109
+ // )
110
110
  ]
111
111
  });
112
112
  }
@@ -167,7 +167,7 @@ async function createExternalLambdaRole(
167
167
  role(
168
168
  lam,
169
169
  LAMBDA_RESOURCE.invokeFunction,
170
- extRes(lam, 'GetNodeV2HdrInv', processTags)
170
+ extRes(lam, 'GetNodeHdrInv', processTags)
171
171
  )
172
172
  ]
173
173
  });
@@ -109,7 +109,7 @@ export default async function getMain(
109
109
  //(<beforeGetGraph>)
110
110
  //(</beforeGetGraph>)
111
111
 
112
- const dataFromGraph = await graphSharedLib.getNodeV2(
112
+ const dataFromGraph = await graphSharedLib.getNode(
113
113
  _izContext,
114
114
  graphServiceName,
115
115
  objType,
@@ -6,7 +6,7 @@ const graphHandlerServiceTag = await serviceConfig.getGraphServiceTagWithCache(
6
6
  );
7
7
  _izContext.logger.debug('graphHandlerServiceTag: ', graphHandlerServiceTag)
8
8
 
9
- let getDataByGraph = await graphSharedLib.getNodeV2(
9
+ let getDataByGraph = await graphSharedLib.getNode(
10
10
  _izContext,
11
11
  graphHandlerServiceTag,
12
12
  objType,