@izara_project/izara-market-library-service-schemas 1.0.27 → 1.0.28
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 +9 -5
- package/src/GenerateCodeLibs/src/Consts.js +5 -2
- package/src/GenerateCodeLibs/src/GenerateCodeLibs.js +5 -5
- package/src/MainLibs/src/Consts.js +44 -2
- package/src/reStructure/GenerateCode.js +0 -4
- package/src/reStructure/GenerateSchema.js +17 -5
- package/src/reStructure/SchemaConfig.js +3 -2
- package/src/reStructure/TemplateData/attributeTreeSchema/generateTemplateData.js +58 -6
- package/src/reStructure/TemplateData/attributeTreeSchema/mainAttributeTreeSchema/data.js +161 -101
- package/src/reStructure/TemplateData/externalService/lambdaRole/template.ejs +3 -4
- package/src/reStructure/TemplateData/findData/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/findData/mainFunction/template.ejs +3 -3
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/handler/template.ejs +2 -3
- package/src/reStructure/TemplateData/flowSchema/components/upload/confirmReserved/mainFunction/template.ejs +2 -3
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/template.ejs +2 -3
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/mainFunction/template.ejs +5 -6
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/handler/template.ejs +1 -2
- package/src/reStructure/TemplateData/flowSchema/components/upload/createObjectComplete/mainFunction/template.ejs +3 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/getSignUrls/handler/template.ejs +2 -2
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/getSignUrls/mainFunction/template.ejs +3 -4
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/handler/template.ejs +2 -3
- package/src/reStructure/TemplateData/flowSchema/components/upload/preSignUrl/reservedLimit/mainFunction/template.ejs +5 -6
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/handler/handlerS3/template.ejs +1 -1
- package/src/reStructure/TemplateData/flowSchema/components/upload/processFile/mainFunction/template.ejs +4 -5
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/ReservedTableData.js +1 -0
- package/src/reStructure/TemplateData/flowSchema/components/websocket/dynamoDb/WebSocketTaskData.js +1 -0
- package/src/reStructure/TemplateData/perActionComplete/create/handler/template.ejs +2 -3
- package/src/reStructure/TemplateData/perActionComplete/create/mainFunction/template.ejs +4 -5
- package/src/reStructure/TemplateData/perActionComplete/delete/handler/template.ejs +2 -2
- package/src/reStructure/TemplateData/perActionComplete/delete/mainFunction/template.ejs +4 -6
- package/src/reStructure/TemplateData/perActionComplete/generateTemplateData.js +1 -1
- package/src/reStructure/TemplateData/perActionComplete/get/handler/template.ejs +2 -3
- package/src/reStructure/TemplateData/perActionComplete/get/mainFunction/template.ejs +4 -6
- package/src/reStructure/TemplateData/perActionComplete/update/handler/template.ejs +2 -3
- package/src/reStructure/TemplateData/perActionComplete/update/mainFunction/template.ejs +4 -6
- package/src/reStructure/TemplateData/perActionEndpoint/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/perActionEndpoint/handler/dsq/template.ejs +2 -2
- package/src/reStructure/TemplateData/perActionEndpoint/handler/inv/template.ejs +1 -3
- package/src/reStructure/TemplateData/perActionEndpoint/handler/sqs/template.ejs +2 -2
- package/src/reStructure/TemplateData/perActionEndpoint/handler/webSocket/template.ejs +3 -3
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/create/template.ejs +6 -7
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/delete/template.ejs +5 -4
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/get/template.ejs +5 -6
- package/src/reStructure/TemplateData/perActionEndpoint/mainFunction/update/template.ejs +5 -6
- package/src/reStructure/TemplateData/processLogical/handler/template.ejs +1 -1
- package/src/reStructure/TemplateData/processLogical/mainFunction/template.ejs +5 -6
- package/src/reStructure/TemplateData/processLogicalPagination/handler/dsq/template.ejs +1 -1
- package/src/reStructure/TemplateData/processLogicalPagination/handler/sqs/template.ejs +1 -1
- package/src/reStructure/TemplateData/processLogicalPagination/mainFunction/template.ejs +6 -5
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/api/data.js +27 -6
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/dsq/data.js +25 -4
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/inv/data.js +26 -4
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/functionYaml/sqs/data.js +26 -4
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/dsq/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/handler/sqs/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/create/action/mainFunction/template.ejs +66 -18
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/handler/sqs/template.ejs +2 -3
- package/src/reStructure/TemplateData/relationshipPerAction/create/complete/mainFunction/template.ejs +5 -6
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/api/data.js +25 -4
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/dsq/data.js +25 -4
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/inv/data.js +25 -4
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/functionYaml/sqs/data.js +26 -4
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/dsq/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/handler/sqs/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/delete/action/mainFunction/template.ejs +55 -5
- package/src/reStructure/TemplateData/relationshipPerAction/generateTemplateData.js +62 -6
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/api/data.js +119 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/api/template.ejs +20 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/data.js +131 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/dsq/template.ejs +17 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/inv/data.js +119 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/inv/template.ejs +13 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/data.js +131 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/functionYaml/sqs/template.ejs +17 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/data.js +57 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/api/template.ejs +138 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/data.js +58 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/dsq/template.ejs +183 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/data.js +59 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/inv/template.ejs +125 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/data.js +59 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/handler/sqs/template.ejs +163 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/data.js +59 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/mainFunction/template.ejs +322 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/data.js +77 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/snsTemplate.ejs +59 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/action/sns-in-sqs/sqsTemplate.ejs +43 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/data.js +110 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/functionYaml/template.ejs +20 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/data.js +60 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/handler/sqs/template.ejs +125 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/data.js +55 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/mainFunction/template.ejs +141 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/data.js +71 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-in-sqs/template.ejs +47 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/data.js +71 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/request.json +0 -0
- package/src/reStructure/TemplateData/relationshipPerAction/get/complete/sns-out/template.ejs +10 -0
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/api/data.js +25 -22
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/dsq/data.js +25 -5
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/inv/data.js +26 -5
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/functionYaml/sqs/data.js +25 -4
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/api/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/dsq/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/inv/template.ejs +1 -1
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/handler/sqs/template.ejs +2 -2
- package/src/reStructure/TemplateData/relationshipPerAction/update/action/mainFunction/template.ejs +55 -7
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/defaultDynamoDbTable.js +50 -42
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/generateDynamoPerLink.js +98 -0
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/mainResourcePerObjectSchemaData.js +4 -5
- package/src/reStructure/TemplateData/resourceYaml/dynamodb/template.ejs +1 -1
- package/src/reStructure/TemplateData/resourceYaml/generateTemplateData.js +11 -2
- package/src/reStructure/TemplateData/testTemplate/data.js +27 -0
- package/src/reStructure/TemplateData/testTemplate/template.ejs +5 -0
- /package/src/reStructure/TemplateData/attributeTreeSchema/mainAttributeTreeSchema/{attributeLink.ejs → attributeLinkTemplate.ejs} +0 -0
|
@@ -22,10 +22,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
22
22
|
|
|
23
23
|
const izara = require("@izara_project/izara-middleware");
|
|
24
24
|
const middleware = izara.middlewareHandler;
|
|
25
|
-
const recordHandlerSharedLib = require("@izara_project/izara-
|
|
25
|
+
const recordHandlerSharedLib = require("@izara_project/izara-core-library-record-handler");
|
|
26
26
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
27
|
-
const
|
|
28
|
-
const callingFlowSharedLib = izaraShared.callingFlowSharedLib;
|
|
27
|
+
const callingFlowSharedLib = require("@izara_project/izara-core-library-calling-flow")
|
|
29
28
|
|
|
30
29
|
const confirmNewReserved = require('./ConfirmNewReserved_Main')
|
|
31
30
|
|
|
@@ -17,9 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const snsSharedLib = izaraShared.snsSharedLib;
|
|
20
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb')
|
|
21
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns')
|
|
23
22
|
const sns = require('@izara_project/izara-core-library-external-request').sns
|
|
24
23
|
const consts = require('@izara_project/izara-market-library-service-schemas/src/GenerateCodeLibs/src/Consts')
|
|
25
24
|
const { getNestObject } = require('../../libs/source/ImportDataLib')
|
package/src/reStructure/TemplateData/flowSchema/components/upload/createObject/handler/template.ejs
CHANGED
|
@@ -21,9 +21,8 @@ const izara = require("@izara_project/izara-middleware");
|
|
|
21
21
|
const middleware = izara.middlewareHandler;
|
|
22
22
|
// const AWS = require('aws-sdk');
|
|
23
23
|
// const api = new AWS.ApiGatewayManagementApi({ endpoint: process.env.iz_webSocketEndpoint });
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const callingFlowSharedLib = izaraShared.callingFlowSharedLib;
|
|
24
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb')
|
|
25
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-calling-flow')
|
|
27
26
|
const hash = require('object-hash')
|
|
28
27
|
// const coreConsts = require("@izara_project/izara-core-library-core/src/Consts");
|
|
29
28
|
const consts = require('@izara_project/izara-middleware/src/MiddlewareCore/Consts')
|
|
@@ -21,12 +21,11 @@ along with this program. If not, see
|
|
|
21
21
|
const hash = require("object-hash");
|
|
22
22
|
const getObjectSchema = require('@izara_project/izara-core-library-service-schemas/src/GetObjectSchema');
|
|
23
23
|
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const lambdaSharedLib = izaraShared.lambdaSharedLib
|
|
24
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
25
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
26
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
27
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
28
|
+
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
30
29
|
|
|
31
30
|
const externalRequest = require('@izara_project/izara-core-library-external-request');
|
|
32
31
|
const sns = externalRequest.sns
|
|
@@ -22,8 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
22
22
|
const izara = require('@izara_project/izara-middleware');
|
|
23
23
|
const middleware = izara.middlewareHandler;;
|
|
24
24
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
25
|
-
const
|
|
26
|
-
const recordHandlerSharedLib = izaraShared.recordHandlerSharedLib
|
|
25
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
27
26
|
|
|
28
27
|
const webSocketTaskComplete = require('./WebSocketTaskComplete_Main')
|
|
29
28
|
|
|
@@ -16,10 +16,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16
16
|
*/
|
|
17
17
|
'use strict';
|
|
18
18
|
const { NoRetryError } = require('@izara_project/izara-core-library-core');
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const asyncFlowSharedLib = izaraShared.asyncFlowSharedLib;
|
|
19
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
20
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
21
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
23
22
|
let coreConsts = require('@izara_project/izara-middleware/src/MiddlewareCore/Consts')
|
|
24
23
|
|
|
25
24
|
const { postToConnection } = require('../../libs/source/ImportDataLib')
|
|
@@ -20,8 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
20
20
|
const izara = require("@izara_project/izara-middleware");
|
|
21
21
|
const middleware = izara.middlewareHandler;
|
|
22
22
|
const izaraShared = require('@izara_project/izara-shared');
|
|
23
|
-
const recordHandlerSharedLib =
|
|
24
|
-
const callingFlowSharedLib =
|
|
23
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
24
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
25
25
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
26
26
|
|
|
27
27
|
const getPresignUrl = require('./GetPresignUrl_Main');
|
|
@@ -17,10 +17,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const snsSharedLib = izaraShared.snsSharedLib
|
|
20
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
21
|
+
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
22
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
24
23
|
|
|
25
24
|
const externalRequest = require('@izara_project/izara-core-library-external-request')
|
|
26
25
|
const sns = externalRequest.sns;
|
|
@@ -22,10 +22,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
22
22
|
|
|
23
23
|
const izara = require("@izara_project/izara-middleware");
|
|
24
24
|
const middleware = izara.middlewareHandler;
|
|
25
|
-
const recordHandlerSharedLib = require(
|
|
25
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
26
26
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
27
|
-
const
|
|
28
|
-
const callingFlowSharedLib = izaraShared.callingFlowSharedLib;
|
|
27
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
29
28
|
|
|
30
29
|
const reservedLimitComplete = require('./ReservedLimitComplete_Main');
|
|
31
30
|
|
|
@@ -17,12 +17,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const dynamodbSharedLib = izaraShared.dynamodbSharedLib;
|
|
20
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
21
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
22
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
23
|
+
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
24
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
26
25
|
|
|
27
26
|
const externalRequest = require('@izara_project/izara-core-library-external-request')
|
|
28
27
|
const lambda = externalRequest.lambda;
|
|
@@ -22,7 +22,7 @@ const izara = require("@izara_project/izara-middleware");
|
|
|
22
22
|
const middleware = izara.middlewareHandler;
|
|
23
23
|
const Logger = require('@izara_project/izara-core-library-logger/src/Logger');
|
|
24
24
|
const izaraShared = require("@izara_project/izara-shared");
|
|
25
|
-
const recordHandlerS3SharedLib =
|
|
25
|
+
const recordHandlerS3SharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
26
26
|
|
|
27
27
|
const processAfterUpload = require('./ProcessAfterUploadS3_Main')
|
|
28
28
|
//--------------------------------------------------------------------------
|
|
@@ -17,11 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const lambdaSharedLib = izaraShared.lambdaSharedLib;
|
|
20
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
21
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
22
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
23
|
+
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
25
24
|
|
|
26
25
|
const externalRequest = require('@izara_project/izara-core-library-external-request')
|
|
27
26
|
const lambda = externalRequest.lambda;
|
|
@@ -22,9 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
22
22
|
|
|
23
23
|
const izara = require("@izara_project/izara-middleware");
|
|
24
24
|
const middleware = izara.middlewareHandler;
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const callingFlowSharedLib = izaraShared.callingFlowSharedLib;
|
|
25
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
26
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
28
27
|
|
|
29
28
|
const createObjectComplete = require('./CreateObjectComplete_Main');
|
|
30
29
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
@@ -15,15 +15,14 @@ You should have received a copy of the GNU Affero General Public License
|
|
|
15
15
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
16
|
*/
|
|
17
17
|
'use strict';
|
|
18
|
-
const asyncFlowSharedLib = require('@izara_project/izara-
|
|
19
|
-
const
|
|
20
|
-
const
|
|
18
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
19
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
20
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
21
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
21
22
|
const sns = require('@izara_project/izara-core-library-external-request/src/resources/Sns');
|
|
22
|
-
const callingFlowSharedLib = require('@izara_project/izara-shared/src/CallingFlowSharedLib');
|
|
23
23
|
const _ = require('lodash');
|
|
24
24
|
const hash = require("object-hash")
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
const PREFIX = {
|
|
28
27
|
CREATE_OBJECT_ASYNC: "createObjectAsync",
|
|
29
28
|
CREATE_OBJECT_ASYNC_COMPLETE: "createObjectAsyncComplete"
|
|
@@ -23,8 +23,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
23
23
|
const izara = require("@izara_project/izara-middleware");
|
|
24
24
|
const middleware = izara.middlewareHandler;
|
|
25
25
|
const izaraShared = require('@izara_project/izara-shared');
|
|
26
|
-
const recordHandlerSharedLib =
|
|
27
|
-
const callingFlowSharedLib =
|
|
26
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
27
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
28
28
|
|
|
29
29
|
const <%- functionName %> = require('./<%- firstLetterUpperCase(functionName) %>_Main');
|
|
30
30
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
@@ -18,12 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const hash = require("object-hash");
|
|
20
20
|
|
|
21
|
-
const
|
|
22
|
-
const callingFlowSharedLib =
|
|
23
|
-
const
|
|
24
|
-
const snsSharedLib =
|
|
25
|
-
const asyncFlowSharedLib = izaraShared.asyncFlowSharedLib;
|
|
26
|
-
const dynamodbSharedLib = izaraShared.dynamodbSharedLib;
|
|
21
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
22
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
23
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
24
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
27
25
|
|
|
28
26
|
const sns = require("@izara_project/izara-core-library-external-request").sns;
|
|
29
27
|
const NoRetryError = require("@izara_project/izara-core-library-core/src/NoRetryError");
|
|
@@ -114,7 +114,7 @@ async function generateCodeWithTemplate(_izContext, objSchemaPath) {
|
|
|
114
114
|
...deleteComponents.flat()
|
|
115
115
|
];
|
|
116
116
|
|
|
117
|
-
console.log('createSourceParams:', createSourceParams);
|
|
117
|
+
// console.log('createSourceParams:', createSourceParams);
|
|
118
118
|
|
|
119
119
|
return createSourceParams;
|
|
120
120
|
} catch (error) {
|
|
@@ -22,9 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
22
22
|
|
|
23
23
|
const izara = require("@izara_project/izara-middleware");
|
|
24
24
|
const middleware = izara.middlewareHandler;
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const callingFlowSharedLib = izaraShared.callingFlowSharedLib;
|
|
25
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
26
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
28
27
|
|
|
29
28
|
const <%- functionName %> = require('./<%- firstLetterUpperCase(functionName) %>_Main');
|
|
30
29
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
@@ -18,12 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const hash = require("object-hash");
|
|
20
20
|
|
|
21
|
-
const
|
|
22
|
-
const callingFlowSharedLib =
|
|
23
|
-
const
|
|
24
|
-
const snsSharedLib =
|
|
25
|
-
const asyncFlowSharedLib = izaraShared.asyncFlowSharedLib;
|
|
26
|
-
const dynamodbSharedLib = izaraShared.dynamodbSharedLib;
|
|
21
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
22
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
23
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
24
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
27
25
|
|
|
28
26
|
const sns = require("@izara_project/izara-core-library-external-request").sns;
|
|
29
27
|
const NoRetryError = require("@izara_project/izara-core-library-core/src/NoRetryError");
|
|
@@ -22,9 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
22
22
|
|
|
23
23
|
const izara = require("@izara_project/izara-middleware");
|
|
24
24
|
const middleware = izara.middlewareHandler;
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const callingFlowSharedLib = izaraShared.callingFlowSharedLib;
|
|
25
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
26
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
28
27
|
|
|
29
28
|
const <%- functionName %> = require('./<%- firstLetterUpperCase(functionName) %>_Main');
|
|
30
29
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
@@ -18,12 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const hash = require("object-hash");
|
|
20
20
|
|
|
21
|
-
const
|
|
22
|
-
const callingFlowSharedLib =
|
|
23
|
-
const
|
|
24
|
-
const snsSharedLib =
|
|
25
|
-
const asyncFlowSharedLib = izaraShared.asyncFlowSharedLib;
|
|
26
|
-
const dynamodbSharedLib = izaraShared.dynamodbSharedLib;
|
|
21
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
22
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
23
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
24
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
27
25
|
|
|
28
26
|
const sns = require("@izara_project/izara-core-library-external-request").sns;
|
|
29
27
|
const NoRetryError = require("@izara_project/izara-core-library-core/src/NoRetryError");
|
|
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const izara = require("@izara_project/izara-middleware");
|
|
20
20
|
const middleware = izara.middlewareHandler;
|
|
21
|
-
const callingFlowSharedLib = require('@izara_project/izara-
|
|
21
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
22
22
|
const {
|
|
23
23
|
validateSchemaMiddleware
|
|
24
24
|
} = require('@izara_project/izara-market-library-service-schemas/src/GenerateCodeLibs/src/GenerateCodeLibs');
|
|
@@ -18,10 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const izara = require("@izara_project/izara-middleware");
|
|
20
20
|
const middleware = izara.middlewareHandler;
|
|
21
|
-
const callingFlowSharedLib = require('@izara_project/izara-
|
|
21
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
22
22
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
23
23
|
const {validateSchemaPerRecord} = require('@izara_project/izara-market-library-service-schemas/src/GenerateCodeLibs/src/GenerateCodeLibs')
|
|
24
|
-
const recordHandlerSharedLib = require('@izara_project/izara-
|
|
24
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
25
25
|
|
|
26
26
|
<%_ if (isCreateMainFunction == true) { _%>
|
|
27
27
|
// user generate main function
|
|
@@ -19,9 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
19
19
|
|
|
20
20
|
const middleware = require("@izara_project/izara-middleware/src/MiddlewareCore/MiddlewareHandler");
|
|
21
21
|
|
|
22
|
-
const callingFlowSharedLib = require('@izara_project/izara-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
25
23
|
const {
|
|
26
24
|
validateSchemaMiddleware
|
|
27
25
|
} = require('@izara_project/izara-market-library-service-schemas/src/GenerateCodeLibs/src/GenerateCodeLibs');
|
|
@@ -18,10 +18,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
18
18
|
'use strict';
|
|
19
19
|
const izara = require("@izara_project/izara-middleware");
|
|
20
20
|
const middleware = izara.middlewareHandler;
|
|
21
|
-
const callingFlowSharedLib = require('@izara_project/izara-
|
|
21
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
22
22
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
23
23
|
const {validateSchemaPerRecord} = require('@izara_project/izara-market-library-service-schemas/src/GenerateCodeLibs/src/GenerateCodeLibs')
|
|
24
|
-
const recordHandlerSharedLib = require('@izara_project/izara-
|
|
24
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
25
25
|
|
|
26
26
|
<%_ if (isCreateMainFunction == true) { _%>
|
|
27
27
|
// user generate main function
|
|
@@ -21,9 +21,9 @@ const izara = require("@izara_project/izara-middleware");
|
|
|
21
21
|
const middleware = izara.middlewareHandler;
|
|
22
22
|
const AWS = require('aws-sdk');
|
|
23
23
|
const api = new AWS.ApiGatewayManagementApi({ endpoint: process.env.iz_webSocketEndpoint });
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
|
|
24
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
25
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
26
|
+
|
|
27
27
|
|
|
28
28
|
const { validateSchemaPerWebSocket } = require('@izara_project/izara-market-library-service-schemas/src/GenerateCodeLibs/src/GenerateCodeLibs')
|
|
29
29
|
<%_ if (isCreateMainFunction == true) { _%>
|
|
@@ -16,12 +16,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const snsSharedLib = require('@izara_project/izara-shared/src/SnsSharedLib');
|
|
19
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
20
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
21
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
22
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
23
|
+
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
25
24
|
|
|
26
25
|
const externalRequest = require('@izara_project/izara-core-library-external-request');
|
|
27
26
|
const sns = externalRequest.sns;
|
|
@@ -363,7 +362,7 @@ module.exports.<%- functionName %>Main = async (
|
|
|
363
362
|
if (valueFieldNames.hasOwnProperty("hashOnCreate") && valueFieldNames.hashOnCreate.length) {
|
|
364
363
|
listOfRequiredOnCreate.push(keyFieldNames)
|
|
365
364
|
}
|
|
366
|
-
|
|
365
|
+
|
|
367
366
|
if (valueFieldNames.hasOwnProperty("optionalOnCreate") && valueFieldNames.optionalOnCreate === true) {
|
|
368
367
|
if ((valueFieldNames.requiredOnCreate === false) && valueFieldNames.optionalOnCreate === true) {
|
|
369
368
|
listOfOptionalOnCreate.push(keyFieldNames)
|
|
@@ -16,10 +16,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const callingFlowSharedLib = require('@izara_project/izara-
|
|
19
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
20
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
21
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
22
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
23
|
+
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
23
24
|
|
|
24
25
|
const sns = require('@izara_project/izara-core-library-external-request/src/resources/Sns');
|
|
25
26
|
const snsSharedLib = require('@izara_project/izara-shared/src/SnsSharedLib');
|
|
@@ -40,12 +40,11 @@ const {
|
|
|
40
40
|
|
|
41
41
|
const { createObjTypeConcat } = require('@izara_project/izara-core-library-service-schemas/src/Utils');
|
|
42
42
|
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const callingFlowSharedLib =
|
|
47
|
-
const
|
|
48
|
-
const lambdaSharedLib = izaraShared.lambdaSharedLib;
|
|
43
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
44
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
45
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
46
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
47
|
+
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
49
48
|
|
|
50
49
|
const externalRequest = require('@izara_project/izara-core-library-external-request');
|
|
51
50
|
const sns = externalRequest.sns
|
|
@@ -32,12 +32,11 @@ const {
|
|
|
32
32
|
createFieldForUpdateDynamoDb
|
|
33
33
|
} = require('@izara_project/izara-market-library-service-schemas/src/GenerateCodeLibs/src/GenerateCodeLibs');
|
|
34
34
|
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const lambdaSharedLib = izaraShared.lambdaSharedLib
|
|
35
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
36
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
37
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
38
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
39
|
+
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
41
40
|
|
|
42
41
|
const externalRequest = require('@izara_project/izara-core-library-external-request');
|
|
43
42
|
const sns = externalRequest.sns
|
|
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
22
22
|
|
|
23
23
|
const izara = require("@izara_project/izara-middleware");
|
|
24
24
|
const middleware = izara.middlewareHandler;
|
|
25
|
-
const recordHandlerSharedLib = require(
|
|
25
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
26
26
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
27
27
|
|
|
28
28
|
const processLogical = require('./ProcessLogical_Main');
|
|
@@ -17,12 +17,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const snsSharedLib = izaraShared.snsSharedLib;
|
|
20
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
21
|
+
const snsSharedLib = require('@izara_project/izara-core-library-sns');
|
|
22
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
23
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
24
|
+
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
26
25
|
|
|
27
26
|
const serviceSchemas = require('@izara_project/izara-core-library-service-schemas');
|
|
28
27
|
const getObjectSchemas = serviceSchemas.getObjectSchema;
|
|
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
22
22
|
|
|
23
23
|
const izara = require("@izara_project/izara-middleware");
|
|
24
24
|
const middleware = izara.middlewareHandler;
|
|
25
|
-
const recordHandlerSharedLib = require(
|
|
25
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
26
26
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
27
27
|
|
|
28
28
|
const paginateProcessLogical = require('./PaginateProcessLogical_Main');
|
|
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
22
22
|
|
|
23
23
|
const izara = require("@izara_project/izara-middleware");
|
|
24
24
|
const middleware = izara.middlewareHandler;
|
|
25
|
-
const recordHandlerSharedLib = require(
|
|
25
|
+
const recordHandlerSharedLib = require('@izara_project/izara-core-library-record-handler');
|
|
26
26
|
const Logger = require('@izara_project/izara-core-library-logger');
|
|
27
27
|
|
|
28
28
|
const paginateProcessLogical = require('./PaginateProcessLogical_Main');
|
|
@@ -17,11 +17,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const asyncFlowSharedLib =
|
|
24
|
-
const
|
|
20
|
+
const logicalResultSharedLib = require('@izara_project/izara-core-library-logical-result');
|
|
21
|
+
const sqsSharedLib = require('@izara_project/izara-core-library-sqs');
|
|
22
|
+
const dynamodbSharedLib = require('@izara_project/izara-core-library-dynamodb');
|
|
23
|
+
const asyncFlowSharedLib = require('@izara_project/izara-core-library-asynchronous-flow');
|
|
24
|
+
const callingFlowSharedLib = require('@izara_project/izara-core-library-calling-flow');
|
|
25
|
+
const lambdaSharedLib = require('@izara_project/izara-core-library-lambda');
|
|
25
26
|
|
|
26
27
|
const sqs = require('@izara_project/izara-core-library-external-request').sqs;
|
|
27
28
|
|