@izara_project/izara-core-library-lock-update 1.0.1 → 1.0.2

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/index.js CHANGED
@@ -15,3 +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
 
18
+ 'use strict';
19
+
20
+ import lockUpdateConstants from './src/constants/lockUpdateConstants.js';
21
+ import lockUpdateLib from './src/lockUpdateLib.js';
22
+ import lockUpdateSharedLib from './src/lockUpdateSharedLib.js';
23
+
24
+ export {
25
+ lockUpdateConstants,
26
+ lockUpdateLib,
27
+ lockUpdateSharedLib
28
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-library-lock-update",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Lock an object instance",
5
5
  "homepage": "https://izara.io/wiki/index.php/Data_Models",
6
6
  "repository": {
@@ -20,15 +20,26 @@
20
20
  "src"
21
21
  ],
22
22
  "dependencies": {
23
- "@izara_project/izara-core-library-correlation-ids": "^1.0.4",
24
- "@izara_project/izara-core-library-logger": "^1.0.11"
23
+ "@izara_project/izara-core-library-graph-service": "^1.0.43"
25
24
  },
26
25
  "devDependencies": {
27
- "@izara_project/izara-core-library-core": "1.0.37",
28
- "@izara_project/izara-core-library-service-schemas": "^1.0.181"
26
+ "@izara_project/izara-core-library-asynchronous-flow": "^1.0.53",
27
+ "@izara_project/izara-core-library-calling-flow": "^1.0.10",
28
+ "@izara_project/izara-core-library-core": "^1.0.37",
29
+ "@izara_project/izara-core-library-dynamodb": "^1.0.24",
30
+ "@izara_project/izara-core-library-error-handling": "^1.0.8",
31
+ "@izara_project/izara-core-library-external-request": "^1.0.32",
32
+ "@izara_project/izara-core-library-service-schemas": "^1.0.185",
33
+ "@izara_project/izara-core-library-sns": "^1.0.8"
29
34
  },
30
35
  "peerDependencies": {
31
- "@izara_project/izara-core-library-core": "1.0.37",
32
- "@izara_project/izara-core-library-service-schemas": "^1.0.174"
36
+ "@izara_project/izara-core-library-asynchronous-flow": "^1.0.53",
37
+ "@izara_project/izara-core-library-calling-flow": "^1.0.10",
38
+ "@izara_project/izara-core-library-core": "^1.0.37",
39
+ "@izara_project/izara-core-library-dynamodb": "^1.0.24",
40
+ "@izara_project/izara-core-library-error-handling": "^1.0.7",
41
+ "@izara_project/izara-core-library-external-request": "^1.0.32",
42
+ "@izara_project/izara-core-library-service-schemas": "^1.0.174",
43
+ "@izara_project/izara-core-library-sns": "^1.0.8"
33
44
  }
34
- }
45
+ }
@@ -0,0 +1,57 @@
1
+ /*
2
+ Copyright (C) 2021 Sven Mason <http://izara.io>
3
+
4
+ This program is free software: you can redistribute it and/or modify
5
+ it under the terms of the GNU Affero General Public License as
6
+ published by the Free Software Foundation, either version 3 of the
7
+ License, or (at your option) any later version.
8
+
9
+ This program is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU Affero General Public License for more details.
13
+
14
+ You should have received a copy of the GNU Affero General Public License
15
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
16
+ */
17
+
18
+ 'use strict';
19
+
20
+ import { NoRetryError } from "@izara_project/izara-core-library-core";
21
+
22
+ function _createPrefixedName(lockTag, suffix) {
23
+ return lockTag + suffix;
24
+ }
25
+
26
+ function createLockStatusFieldName(lockTag) {
27
+ return _createPrefixedName(lockTag, 'LockStatus');
28
+ }
29
+
30
+ function createUniqueRequestIdFieldName(lockTag) {
31
+ return _createPrefixedName(lockTag, 'UniqueRequestId');
32
+ }
33
+
34
+ function createStatusFieldName(lockTag) {
35
+ return _createPrefixedName(lockTag, 'Status');
36
+ }
37
+
38
+ function createHistoryObjectName(lockTag) {
39
+ return _createPrefixedName(lockTag, 'History');
40
+ }
41
+
42
+ function createQueueObjectName(lockTag) {
43
+ return _createPrefixedName(lockTag, 'Queue');
44
+ }
45
+
46
+
47
+
48
+ export default {
49
+
50
+ createLockStatusFieldName,
51
+ createUniqueRequestIdFieldName,
52
+
53
+ createStatusFieldName,
54
+
55
+ createHistoryObjectName,
56
+ createQueueObjectName,
57
+ };