@futdevpro/fsm-dynamo 1.5.17 → 1.5.18
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/lib/_models/control-models/dynamobe-data-property-params.d.ts.map +1 -1
- package/lib/_models/control-models/dynamobe-data-property-params.js +5 -19
- package/lib/_models/control-models/dynamobe-data-property-params.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +2 -3
- package/package.json +1 -1
- package/src/_models/control-models/dynamobe-data-property-params.ts +6 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamobe-data-property-params.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/dynamobe-data-property-params.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dynamobe-data-property-params.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/dynamobe-data-property-params.ts"],"names":[],"mappings":"AACA,qBAAa,0BAA0B;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAEpE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,eAAe,CAAC,EAAE,0BAA0B,EAAE,CAAM;IAEpD,oBAAoB,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC,EAAE,CAAC;gBAG7C,GAAG,EAAE;QACH,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;QAEnE,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAC;QAEjC,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,eAAe,CAAC,EAAE,0BAA0B,EAAE,CAAC;QAE/C,oBAAoB,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC,EAAE,CAAC;KAChD;IA0BH,SAAS,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI;CAqBhF"}
|
|
@@ -1,31 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DynamoBEDataPropertyParams = void 0;
|
|
4
|
-
const dynamobe_error_1 = require("./dynamobe-error");
|
|
5
4
|
class DynamoBEDataPropertyParams {
|
|
6
5
|
constructor(set) {
|
|
7
6
|
this.subObjectParams = [];
|
|
8
7
|
if (set) {
|
|
9
8
|
this.key = set.key;
|
|
10
9
|
this.type = set.type;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
console.log('DYNAMO ERROR: \n subObjectParams missing', '\n\n', new Error());
|
|
17
|
-
throw new dynamobe_error_1.DynamoBEError({ message: `subObjectParams missing (${this.key})` });
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
if (set.isDependencyHook) {
|
|
21
|
-
if (set.dependencyDBServiceName) {
|
|
22
|
-
this.isDependencyHook = set.isDependencyHook;
|
|
23
|
-
this.dependencyName = set.dependencyDBServiceName;
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
this.isDependencyHook = set.isDependencyHook;
|
|
27
|
-
console.log('DYNAMO ERROR: \n dependencyDBServiceName missing for dependencyHook', '\n\n', new Error());
|
|
28
|
-
}
|
|
10
|
+
this.subObjectParams = set.subObjectParams;
|
|
11
|
+
this.isDependencyHook = set.isDependencyHook;
|
|
12
|
+
this.dependencyName = set.dependencyDBServiceName;
|
|
13
|
+
if (set.isDependencyHook && set.dependencyDBServiceName) {
|
|
14
|
+
console.log('DYNAMO ERROR: \n dependencyDBServiceName missing for dependencyHook', '\n\n', new Error());
|
|
29
15
|
}
|
|
30
16
|
this.unique = set.unique;
|
|
31
17
|
this.required = set.required;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamobe-data-property-params.js","sourceRoot":"","sources":["../../../src/_models/control-models/dynamobe-data-property-params.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"dynamobe-data-property-params.js","sourceRoot":"","sources":["../../../src/_models/control-models/dynamobe-data-property-params.ts"],"names":[],"mappings":";;;AACA,MAAa,0BAA0B;IAkBrC,YACE,GAiBC;QAtBH,oBAAe,GAAkC,EAAE,CAAC;QAwBlD,IAAI,GAAG,EAAE;YACP,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;YACnB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;YAErB,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;YAE3C,IAAI,CAAC,gBAAgB,GAAG,GAAG,CAAC,gBAAgB,CAAC;YAC7C,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC,uBAAuB,CAAC;YAClD,IAAI,GAAG,CAAC,gBAAgB,IAAI,GAAG,CAAC,uBAAuB,EAAE;gBACvD,OAAO,CAAC,GAAG,CAAC,qEAAqE,EAAE,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC,CAAC;aACzG;YAED,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;YACzB,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;YAC7B,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;YACvB,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;YAC/B,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;YAC/B,IAAI,CAAC,oBAAoB,GAAG,GAAG,CAAC,oBAAoB,CAAC;SACtD;aAAM;YACL,OAAO,CAAC,GAAG,CAAC,sEAAsE,EAAE,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC,CAAC;SAC1G;IACH,CAAC;IAED,sCAAsC;IACtC,SAAS;;QACP,QAAQ,IAAI,CAAC,IAAI,EAAE;YACjB,KAAK,QAAQ;gBACX,OAAO,MAAM,CAAC;YAChB,KAAK,QAAQ;gBACX,OAAO,MAAM,CAAC;YAChB,KAAK,SAAS;gBACZ,OAAO,OAAO,CAAC;YACjB,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC;YACd,KAAK,QAAQ,CAAC;YACd;gBACE,UAAI,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAC,IAAI,GAAG;oBAC7B,OAAO,KAAK,CAAC;iBACd;qBAAM,IAAI,OAAA,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAC,IAAI,aAAK,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAC,UAAU,EAAC,EAAE;oBACvE,OAAO,QAAQ,CAAC;iBACjB;qBAAM;oBACL,OAAO,MAAM,CAAC;iBACf;SACJ;IACH,CAAC;CACF;AAnFD,gEAmFC"}
|
package/lib/tsconfig.tsbuildinfo
CHANGED
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"affectsGlobalScope": false
|
|
273
273
|
},
|
|
274
274
|
"../src/_models/control-models/dynamobe-data-property-params.ts": {
|
|
275
|
-
"version": "
|
|
275
|
+
"version": "ce1829c1a68c72dc59c47c3cd836818a8dd90fb70d15472a7a414f47dbfbf5a4",
|
|
276
276
|
"signature": "df9c1f50654e34f0e4255c8f880dfde3af6531db086c70755382840a0011b8d4",
|
|
277
277
|
"affectsGlobalScope": false
|
|
278
278
|
},
|
|
@@ -1547,8 +1547,7 @@
|
|
|
1547
1547
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
1548
1548
|
"../node_modules/@types/node/ts3.2/process.d.ts",
|
|
1549
1549
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
1550
|
-
"../node_modules/@types/node/util.d.ts"
|
|
1551
|
-
"../src/_models/control-models/dynamobe-error.ts"
|
|
1550
|
+
"../node_modules/@types/node/util.d.ts"
|
|
1552
1551
|
],
|
|
1553
1552
|
"../src/_models/control-models/dynamobe-error.ts": [
|
|
1554
1553
|
"../node_modules/@types/node/fs.d.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/fsm-dynamo",
|
|
3
|
-
"version": "01.05.
|
|
3
|
+
"version": "01.05.18",
|
|
4
4
|
"description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Ltd.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
import { DynamoBEError } from './dynamobe-error';
|
|
3
|
-
|
|
4
2
|
export class DynamoBEDataPropertyParams {
|
|
5
3
|
key?: string;
|
|
6
4
|
type?: 'string' | 'number' | 'boolean' | 'Date' | 'object' | string;
|
|
@@ -43,24 +41,14 @@ export class DynamoBEDataPropertyParams {
|
|
|
43
41
|
this.key = set.key;
|
|
44
42
|
this.type = set.type;
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
if (set?.subObjectParams) {
|
|
48
|
-
this.subObjectParams = set.subObjectParams;
|
|
49
|
-
} else {
|
|
50
|
-
console.log('DYNAMO ERROR: \n subObjectParams missing', '\n\n', new Error());
|
|
51
|
-
throw new DynamoBEError({ message: `subObjectParams missing (${this.key})` });
|
|
52
|
-
}
|
|
53
|
-
}
|
|
44
|
+
this.subObjectParams = set.subObjectParams;
|
|
54
45
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
} else {
|
|
60
|
-
this.isDependencyHook = set.isDependencyHook;
|
|
61
|
-
console.log('DYNAMO ERROR: \n dependencyDBServiceName missing for dependencyHook', '\n\n', new Error());
|
|
62
|
-
}
|
|
46
|
+
this.isDependencyHook = set.isDependencyHook;
|
|
47
|
+
this.dependencyName = set.dependencyDBServiceName;
|
|
48
|
+
if (set.isDependencyHook && set.dependencyDBServiceName) {
|
|
49
|
+
console.log('DYNAMO ERROR: \n dependencyDBServiceName missing for dependencyHook', '\n\n', new Error());
|
|
63
50
|
}
|
|
51
|
+
|
|
64
52
|
this.unique = set.unique;
|
|
65
53
|
this.required = set.required;
|
|
66
54
|
this.index = set.index;
|