@futdevpro/fsm-dynamo 1.5.30 → 1.5.33

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.
@@ -24,4 +24,238 @@ export declare class Dynamo_Error {
24
24
  log?: boolean;
25
25
  });
26
26
  }
27
+ /**
28
+ * Returns the average of two numbers.
29
+ *
30
+ * @remarks
31
+ * This method is part of the {@link core-library#Statistics | Statistics subsystem}.
32
+ *
33
+ * @param x - The first input number
34
+ * @param y - The second input number
35
+ * @returns The arithmetic mean of `x` and `y`
36
+ *
37
+ * @beta
38
+ * @returns true if the specified tag is surrounded with `{`
39
+ * and `}` characters.
40
+ *
41
+ * @example
42
+ * Prints "true" for `{@link}` but "false" for `@internal`:
43
+ * ```ts
44
+ * console.log(isInlineTag('{@link}'));
45
+ * console.log(isInlineTag('@internal'));
46
+ * ```
47
+ *
48
+ *
49
+ * @alpha
50
+ * v
51
+ * sadfas d
52
+ * fs
53
+ * daf
54
+ * d as
55
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
56
+ * a
57
+ * @beta
58
+ * v
59
+ * sadfas d
60
+ * fs
61
+ * daf
62
+ * d as
63
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
64
+ * b
65
+ * @decorator
66
+ * v
67
+ * sadfas d
68
+ * fs
69
+ * daf
70
+ * d as
71
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
72
+ * dc
73
+ * @deprecated
74
+ * v
75
+ * sadfas d
76
+ * fs
77
+ * daf
78
+ * d as
79
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
80
+ * dp
81
+ * @defaultValue
82
+ * v
83
+ * sadfas d
84
+ * fs
85
+ * daf
86
+ * d as
87
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
88
+ * dv
89
+ * @eventProperty
90
+ * v
91
+ * sadfas d
92
+ * fs
93
+ * daf
94
+ * d as
95
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
96
+ * ep
97
+ * @example
98
+ * v
99
+ * sadfas d
100
+ * fs
101
+ * daf
102
+ * d as
103
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
104
+ * ex
105
+ * @experimental
106
+ * v
107
+ * sadfas d
108
+ * fs
109
+ * daf
110
+ * d as
111
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
112
+ * exp
113
+ * @inheritDoc
114
+ * v
115
+ * sadfas d
116
+ * fs
117
+ * daf
118
+ * d as
119
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
120
+ * in
121
+ * @internal
122
+ * v
123
+ * sadfas d
124
+ * fs
125
+ * daf
126
+ * d as
127
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
128
+ * int
129
+ * @label
130
+ * v
131
+ * sadfas d
132
+ * fs
133
+ * daf
134
+ * d as
135
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
136
+ * lab
137
+ * @link
138
+ * v
139
+ * sadfas d
140
+ * fs
141
+ * daf
142
+ * d as
143
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
144
+ * li
145
+ * @override
146
+ * v
147
+ * sadfas d
148
+ * fs
149
+ * daf
150
+ * d as
151
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
152
+ * v
153
+ * sadfas d
154
+ * fs
155
+ * daf
156
+ * d as
157
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
158
+ * ov
159
+ * @packageDocumentation
160
+ * v
161
+ * sadfas d
162
+ * fs
163
+ * daf
164
+ * d as
165
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
166
+ * pad
167
+ * @param
168
+ * v
169
+ * sadfas d
170
+ * fs
171
+ * daf
172
+ * d as
173
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
174
+ * par
175
+ * @privateRemarks
176
+ * v
177
+ * sadfas d
178
+ * fs
179
+ * daf
180
+ * d as
181
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
182
+ * pr
183
+ * @public
184
+ * v
185
+ * sadfas d
186
+ * fs
187
+ * daf
188
+ * d as
189
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
190
+ * p
191
+ * @readonly
192
+ * v
193
+ * sadfas d
194
+ * fs
195
+ * daf
196
+ * d as
197
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
198
+ * re
199
+ * @remarks
200
+ * v
201
+ * sadfas d
202
+ * fs
203
+ * daf
204
+ * d as
205
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
206
+ * rem
207
+ * @returns
208
+ * v
209
+ * sadfas d
210
+ * fs
211
+ * daf
212
+ * d as
213
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
214
+ * ret
215
+ * @sealed
216
+ * v
217
+ * sadfas d
218
+ * fs
219
+ * daf
220
+ * d as
221
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
222
+ * sea
223
+ * @see
224
+ * v
225
+ * sadfas d
226
+ * fs
227
+ * daf
228
+ * d as
229
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
230
+ * see
231
+ * @throws
232
+ * v
233
+ * sadfas d
234
+ * fs
235
+ * daf
236
+ * d as
237
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
238
+ * th
239
+ * @typeParam
240
+ * v
241
+ * sadfas d
242
+ * fs
243
+ * daf
244
+ * d as
245
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
246
+ * typ
247
+ * @virtual
248
+ * v
249
+ * sadfas d
250
+ * fs
251
+ * daf
252
+ * d as
253
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
254
+ *
255
+ *
256
+ * @see {@link http://example.com/@internal LINK}
257
+ * @see {@link http://example.com/@internal http://example.com/@internal}
258
+ */
259
+ export interface TestDocumentationComments {
260
+ }
27
261
  //# sourceMappingURL=dynamo-error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dynamo-error.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/dynamo-error.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IACvB,IAAI,SAAyB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,GAAG,EAAE,CAAM;IAEnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAM;IAExB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAM;gBAG1B,GAAG,CAAC,EAAE;QACJ,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,KAAK,CAAC,EAAE,GAAG,CAAC;QACZ,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;QAEf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,cAAc,CAAC,EAAE,OAAO,CAAC;QAEzB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,GAAG,CAAC,EAAE,OAAO,CAAC;KACf;CA+CJ"}
1
+ {"version":3,"file":"dynamo-error.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/dynamo-error.ts"],"names":[],"mappings":"AAEA,qBAAa,YAAY;IACvB,IAAI,SAAyB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,GAAG,EAAE,CAAM;IAEnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAM;IAExB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,EAAE,CAAM;gBAG1B,GAAG,CAAC,EAAE;QACJ,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,KAAK,CAAC,EAAE,GAAG,CAAC;QACZ,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;QAEf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,cAAc,CAAC,EAAE,OAAO,CAAC;QAEzB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,GAAG,CAAC,EAAE,OAAO,CAAC;KACf;CAyEJ;AA4ID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuOG;AACH,MAAM,WAAW,yBAAyB;CAAG"}
@@ -3,180 +3,79 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Dynamo_Error = void 0;
4
4
  class Dynamo_Error {
5
5
  constructor(set) {
6
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
6
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
7
7
  this.flag = 'DYNAMO ERROR OBJECT';
8
8
  this.errors = [];
9
9
  this.messages = [];
10
10
  this.userMessages = [];
11
- this.handled = !!set.handled;
12
- if (set) {
13
- this.status = (_a = set.status) !== null && _a !== void 0 ? _a : (_b = set === null || set === void 0 ? void 0 : set.error) === null || _b === void 0 ? void 0 : _b.status;
14
- this.errorCode = (_c = set.errorCode) !== null && _c !== void 0 ? _c : (_d = set === null || set === void 0 ? void 0 : set.error) === null || _d === void 0 ? void 0 : _d.errorCode;
15
- if (set.error) {
16
- if (set.error.error) {
17
- this.errors.push(set.error.error);
18
- }
19
- if (set.error.errors) {
20
- this.errors.push(...set.error.errors);
21
- }
22
- if (set.error.message) {
23
- this.messages.push(set.error.message);
24
- }
25
- if (set.error.messages) {
26
- this.messages.push(...set.error.messages);
27
- }
28
- if (set.error.userMessage) {
29
- this.userMessages.push(set.error.userMessage);
30
- }
31
- if (set.error.userMessages) {
32
- this.userMessages.push(...set.error.userMessages);
11
+ try {
12
+ this.handled = !!set.handled;
13
+ if (set) {
14
+ this.status = (_a = set.status) !== null && _a !== void 0 ? _a : (_b = set === null || set === void 0 ? void 0 : set.error) === null || _b === void 0 ? void 0 : _b.status;
15
+ this.errorCode = (_c = set.errorCode) !== null && _c !== void 0 ? _c : (_d = set === null || set === void 0 ? void 0 : set.error) === null || _d === void 0 ? void 0 : _d.errorCode;
16
+ if (set.error) {
17
+ if (set.error.error) {
18
+ this.errors.push(set.error.error);
19
+ }
20
+ if (set.error.errors) {
21
+ if (0 <= ((_e = set.error.errors) === null || _e === void 0 ? void 0 : _e.legnth)) {
22
+ this.errors.push(...set.error.errors);
23
+ }
24
+ else {
25
+ this.errors.push(set.error.errors);
26
+ }
27
+ }
28
+ if (set.error.message) {
29
+ this.messages.push(set.error.message);
30
+ }
31
+ if (set.error._message) {
32
+ this.messages.push(set.error._message);
33
+ }
34
+ if (set.error.messages) {
35
+ if (0 <= set.error.messages.legnth) {
36
+ if (set.error.messages[0] == this.error.messages[0]) {
37
+ set.error.messages.shift();
38
+ }
39
+ this.messages.push(...set.error.messages);
40
+ }
41
+ else {
42
+ this.messages.push(set.error.messages);
43
+ }
44
+ }
45
+ if (set.error.userMessage) {
46
+ this.userMessages.push(set.error.userMessage);
47
+ }
48
+ if (set.error.userMessages) {
49
+ if (0 <= ((_f = set.error.userMessages) === null || _f === void 0 ? void 0 : _f.legnth)) {
50
+ if (set.error.userMessages[0] == this.error.userMessages[0]) {
51
+ set.error.userMessages.shift();
52
+ }
53
+ this.userMessages.push(...set.error.userMessages);
54
+ }
55
+ else {
56
+ this.userMessages.push(set.error.userMessages);
57
+ }
58
+ }
33
59
  }
34
60
  }
61
+ this.userMessage = (_g = set === null || set === void 0 ? void 0 : set.userMessage) !== null && _g !== void 0 ? _g : this.userMessages[0];
62
+ this.message = (_h = set === null || set === void 0 ? void 0 : set.message) !== null && _h !== void 0 ? _h : this.messages[0];
63
+ this.error = (_k = (_j = set === null || set === void 0 ? void 0 : set.error) !== null && _j !== void 0 ? _j : this.errors[0]) !== null && _k !== void 0 ? _k : new Error(this.message);
64
+ if (set.addECToUserMsg) {
65
+ this.userMessage += `\nErrorCode: ${this.errorCode}`;
66
+ }
67
+ if (set === null || set === void 0 ? void 0 : set.modestLog) {
68
+ console.error((_m = (_l = this.message) !== null && _l !== void 0 ? _l : this.userMessage) !== null && _m !== void 0 ? _m : this.error);
69
+ }
70
+ if (set === null || set === void 0 ? void 0 : set.log) {
71
+ console.error(this);
72
+ }
35
73
  }
36
- this.error = (_f = (_e = set === null || set === void 0 ? void 0 : set.error) !== null && _e !== void 0 ? _e : this.errors[0]) !== null && _f !== void 0 ? _f : new Error();
37
- this.userMessage = (_g = set === null || set === void 0 ? void 0 : set.userMessage) !== null && _g !== void 0 ? _g : this.userMessages[0];
38
- this.message = (_j = (_h = set === null || set === void 0 ? void 0 : set.message) !== null && _h !== void 0 ? _h : this.messages[0]) !== null && _j !== void 0 ? _j : this.userMessage;
39
- if (set.addECToUserMsg) {
40
- this.userMessage += `\nErrorCode: ${this.errorCode}`;
41
- }
42
- if (set === null || set === void 0 ? void 0 : set.modestLog) {
43
- console.error((_l = (_k = this.message) !== null && _k !== void 0 ? _k : this.userMessage) !== null && _l !== void 0 ? _l : this.error);
44
- }
45
- if (set === null || set === void 0 ? void 0 : set.log) {
46
- console.error(this);
74
+ catch (error) {
75
+ console.error('Internal Dynamo ERROR: Failed to create Dynamo_Error...', error, set);
76
+ throw new Error('Internal Dynamo ERROR: Failed to create Dynamo_Error...');
47
77
  }
48
78
  }
49
79
  }
50
80
  exports.Dynamo_Error = Dynamo_Error;
51
- /*
52
-
53
- // //
54
- // RESPONSE STATUS //
55
- // //
56
-
57
- 1XX informational response
58
-
59
- 100 Continue
60
- 101 Switching Protocols
61
- 102 Processing
62
- 103 Early Hints
63
-
64
-
65
- 2XX success
66
-
67
- 200 OK
68
- 201 Created
69
- 202 Accepted
70
- 203 Non-Authoritative Information
71
- 204 No Content
72
- 205 Reset Content
73
- 206 Partial Content
74
- 207 Multi-Status
75
- 208 Already Reported
76
- 226 IM Used
77
-
78
-
79
- 3XX redirection
80
-
81
- 300 Multiple Choices
82
- 301 Moved Permanently
83
- 302 Found
84
- 303 See Other
85
- 304 Not Modified
86
- 305 Use Proxy
87
- 306 Switch Proxy
88
- 307 Temporary Redirect
89
- 308 Permanent Redirect
90
-
91
-
92
- 4XX client errors
93
-
94
- 400 Bad Request
95
- 401 Unauthorized
96
- 402 Payment Required
97
- 403 Forbidden
98
- 404 Not Found
99
- 405 Method Not Allowed
100
- 406 Not Acceptable
101
- 407 Proxy Authentication Required
102
- 408 Request Timeout
103
- 409 Conflict
104
- 410 Gone
105
- 411 Length Required
106
- 412 Precondition Failed
107
- 413 Payload Too Large
108
- 414 URI Too Long
109
- 415 Unsupported Media Type
110
- 416 Range Not Satisfiable
111
- 417 Expectation Failed
112
- 418 I'm a teapot
113
- 421 Misdirected Request
114
- 422 Unprocessable Entity
115
- 423 Locked
116
- 424 Failed Dependency
117
- 425 Too Early
118
- 426 Upgrade Required
119
- 428 Precondition Required
120
- 429 Too Many Requests
121
- 431 Request Header Fields Too Large
122
- 451 Unavailable For Legal Reasons
123
-
124
-
125
- 5XX server errors
126
-
127
- 500 Internal Server Error
128
- 501 Not Implemented
129
- 502 Bad Gateway
130
- 503 Service Unavailable
131
- 504 Gateway Timeout
132
- 505 HTTP Version Not Supported
133
- 506 Variant Also Negotiates
134
- 507 Insufficient Storage
135
- 508 Loop Detected
136
- 510 Not Extended
137
- 511 Network Authentication Required
138
-
139
-
140
- Unofficial codes
141
-
142
- 103 Checkpoint
143
- 218 This is fine (Apache Web Server)
144
- 419 Page Expired (Laravel Framework)
145
- 420 Enhance Your Calm (Twitter)
146
- 430 Request Header Fields Too Large (Shopify)
147
- 450 Blocked by Windows Parental Controls (Microsoft)
148
- 498 Invalid Token (Esri)
149
- 499 Token Required (Esri)
150
- 509 Bandwidth Limit Exceeded (Apache Web Server/cPanel)
151
- 526 Invalid SSL Certificate
152
- 529 Site is overloaded
153
- 530 Site is frozen
154
- 598 (Informal convention) Network read timeout error
155
-
156
- 440 Login Time-out
157
- 449 Retry With
158
- 451 Redirect
159
-
160
- 444 No Response
161
- 494 Request header too large
162
- 495 SSL Certificate Error
163
- 496 SSL Certificate Required
164
- 497 HTTP Request Sent to HTTPS Port
165
- 499 Client Closed Request
166
-
167
- 520 Web Server Returned an Unknown Error
168
- 521 Web Server Is Down
169
- 522 Connection Timed Out
170
- 523 Origin Is Unreachable
171
- 524 A Timeout Occurred
172
- 525 SSL Handshake Failed
173
- 526 Invalid SSL Certificate
174
- 527 Railgun Error
175
-
176
- 530
177
-
178
- 460
179
- 463
180
-
181
- */
182
81
  //# sourceMappingURL=dynamo-error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dynamo-error.js","sourceRoot":"","sources":["../../../src/_models/control-models/dynamo-error.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IAevB,YACE,GAiBC;;QAhCH,SAAI,GAAG,qBAAqB,CAAC;QAM7B,WAAM,GAAU,EAAE,CAAC;QAGnB,aAAQ,GAAa,EAAE,CAAC;QAGxB,iBAAY,GAAa,EAAE,CAAC;QAsB1B,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,CAAC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CAAC;YAC5D,IAAI,CAAC,OAAO,SAAG,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,mCAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,KAAK,eAAG,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,KAAK,mCAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,mCAAI,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAErE,IAAI,GAAG,CAAC,cAAc,EAAE;gBACtB,IAAI,CAAC,WAAW,IAAI,gBAAgB,IAAI,CAAC,SAAS,EAAE,CAAA;aACrD;YAED,IAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,SAAS,EAAE;gBAClB,OAAO,CAAC,KAAK,aAAC,IAAI,CAAC,OAAO,mCAAI,IAAI,CAAC,WAAW,mCAAI,IAAI,CAAC,KAAK,CAAC,CAAA;aAC9D;YACD,IAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,GAAG,EAAE;gBACZ,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aACrB;SACF;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,yDAAyD,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;YACrF,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;SAC5E;IACH,CAAC;CACF;AA1GD,oCA0GC"}
@@ -1,3 +1,6 @@
1
+ /**
2
+ * This will be used for setting up db. DataServices also uses this to prehook tools, as db service and dependency db service.
3
+ */
1
4
  export declare class DynamoNTS_DataPropertyParams {
2
5
  key?: string;
3
6
  type?: 'string' | 'number' | 'boolean' | 'Date' | 'object' | string;
@@ -5,7 +8,14 @@ export declare class DynamoNTS_DataPropertyParams {
5
8
  required?: boolean;
6
9
  index?: boolean;
7
10
  isDependencyHook?: boolean;
8
- dependencyName?: string;
11
+ /**
12
+ * This will be used to prehook dependency db service to data service by dataName from dependency data's DynamoNTS_DataPropertyParams
13
+ * Use the dependency data's DynamoNTS_DataPropertyParams.
14
+ *
15
+ * @example
16
+ * dependencyName: accountModelParams.dataName
17
+ */
18
+ dependencyDataName?: string;
9
19
  minlength?: number;
10
20
  maxlength?: number;
11
21
  subObjectParams?: DynamoNTS_DataPropertyParams[];
@@ -17,7 +27,14 @@ export declare class DynamoNTS_DataPropertyParams {
17
27
  required?: boolean;
18
28
  index?: boolean;
19
29
  isDependencyHook?: boolean;
20
- dependencyDBServiceName?: string;
30
+ /**
31
+ * This will be used to prehook dependency db service to data service by dataName from dependency data's DynamoNTS_DataPropertyParams
32
+ * Use the dependency data's DynamoNTS_DataPropertyParams.
33
+ *
34
+ * @example
35
+ * dependencyName: accountModelParams.dataName
36
+ */
37
+ dependencyDataName?: string;
21
38
  minlength?: number;
22
39
  maxlength?: number;
23
40
  subObjectParams?: DynamoNTS_DataPropertyParams[];
@@ -1 +1 @@
1
- {"version":3,"file":"dynamo-nts-data-property-params.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/dynamo-nts-data-property-params.ts"],"names":[],"mappings":"AACA,qBAAa,4BAA4B;IACvC,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,4BAA4B,EAAE,CAAM;IAEtD,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,4BAA4B,EAAE,CAAC;QAEjD,oBAAoB,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC,EAAE,CAAC;KAChD;IA6BH,SAAS,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI;CAqBhF"}
1
+ {"version":3,"file":"dynamo-nts-data-property-params.d.ts","sourceRoot":"","sources":["../../../src/_models/control-models/dynamo-nts-data-property-params.ts"],"names":[],"mappings":"AACA;;GAEG;AACH,qBAAa,4BAA4B;IACvC,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;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,eAAe,CAAC,EAAE,4BAA4B,EAAE,CAAM;IAEtD,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;;;;;;WAMG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB,eAAe,CAAC,EAAE,4BAA4B,EAAE,CAAC;QAEjD,oBAAoB,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC,EAAE,CAAC;KAChD;IA6BH,SAAS,CAAC,IAAI,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI;CAqBhF"}
@@ -1,20 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DynamoNTS_DataPropertyParams = void 0;
4
+ /**
5
+ * This will be used for setting up db. DataServices also uses this to prehook tools, as db service and dependency db service.
6
+ */
4
7
  class DynamoNTS_DataPropertyParams {
5
8
  constructor(set) {
9
+ var _a;
6
10
  this.subObjectParams = [];
7
11
  if (set) {
8
- if (!set.key || set.type) {
12
+ if (!set.key || !set.type) {
9
13
  console.log(`DYNAMO ERROR: \n key or type is missing from DynamoBEDataPropertyParams`, '\n\n', new Error());
10
14
  }
11
15
  this.key = set.key;
12
16
  this.type = set.type;
13
- this.subObjectParams = set.subObjectParams;
17
+ this.subObjectParams = (_a = set.subObjectParams) !== null && _a !== void 0 ? _a : [];
14
18
  this.isDependencyHook = set.isDependencyHook;
15
- this.dependencyName = set.dependencyDBServiceName;
16
- if (set.isDependencyHook && set.dependencyDBServiceName) {
17
- console.log(`DYNAMO ERROR: \n dependencyDBServiceName missing for dependencyHook from DynamoBEDataPropertyParams (${set.key})`, '\n\n', new Error());
19
+ this.dependencyDataName = set.dependencyDataName;
20
+ if (set.isDependencyHook && !set.dependencyDataName) {
21
+ console.log(`DYNAMO ERROR: \n dependencyName missing for dependencyHook from DynamoBEDataPropertyParams (${set.key})`, '\n\n', new Error());
18
22
  }
19
23
  this.unique = set.unique;
20
24
  this.required = set.required;
@@ -1 +1 @@
1
- {"version":3,"file":"dynamo-nts-data-property-params.js","sourceRoot":"","sources":["../../../src/_models/control-models/dynamo-nts-data-property-params.ts"],"names":[],"mappings":";;;AACA,MAAa,4BAA4B;IAkBvC,YACE,GAiBC;QAtBH,oBAAe,GAAoC,EAAE,CAAC;QAwBpD,IAAI,GAAG,EAAE;YACP,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE;gBACxB,OAAO,CAAC,GAAG,CAAC,yEAAyE,EAAE,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC,CAAC;aAC7G;YACD,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,wGAAwG,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,EAAE,IAAI,KAAK,EAAE,CAAC,CAAC;aACtJ;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;AAtFD,oEAsFC"}
1
+ {"version":3,"file":"dynamo-nts-data-property-params.js","sourceRoot":"","sources":["../../../src/_models/control-models/dynamo-nts-data-property-params.ts"],"names":[],"mappings":";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tC,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;AApGD,oEAoGC"}
@@ -4,12 +4,12 @@ exports.Dynamo_Metadata = void 0;
4
4
  class Dynamo_Metadata {
5
5
  constructor(set) {
6
6
  if (set) {
7
- this._id = set._id ? set._id : undefined;
8
- this.__created = set.__created ? set.__created : undefined;
9
- this.__createdBy = set.__createdBy ? set.__createdBy : undefined;
10
- this.__lastModified = set.__lastModified ? set.__lastModified : undefined;
11
- this.__lastModifiedBy = set.__lastModifiedBy ? set.__lastModifiedBy : undefined;
12
- this.__v = set.__v ? set.__v : undefined;
7
+ this._id = set._id;
8
+ this.__created = set.__created;
9
+ this.__createdBy = set.__createdBy;
10
+ this.__lastModified = set.__lastModified;
11
+ this.__lastModifiedBy = set.__lastModifiedBy;
12
+ this.__v = set.__v;
13
13
  }
14
14
  }
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dynamo-metadata.js","sourceRoot":"","sources":["../../../src/_models/data-models/dynamo-metadata.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAS1B,YACE,GAQmB;QAEnB,IAAI,GAAG,EAAE;YACP,IAAI,CAA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9BD,0CA8BC"}
@@ -202,8 +202,8 @@
202
202
  "affectsGlobalScope": false
203
203
  },
204
204
  "../src/_models/control-models/dynamo-error.ts": {
205
- "version": "f905c1c23be07d51061e6b5a5fdc096f877b3c1a4c9f048d619ffe533174cfbe",
206
- "signature": "99ed0e9e90385fbddd82dcf0cb0a7661ee4b636ef1ac556c5d831cf3f7347607",
205
+ "version": "04f5bcac6a174d62a69732fd5941895577bbfa87a120151ee20e52ca92b8d824",
206
+ "signature": "d95b2896f83557d25ceab8eec850a664e7d461fd60cdf80ba1f73691d2defaca",
207
207
  "affectsGlobalScope": false
208
208
  },
209
209
  "../src/_models/control-models/location-coordinates.ts": {
@@ -257,7 +257,7 @@
257
257
  "affectsGlobalScope": false
258
258
  },
259
259
  "../src/_models/data-models/dynamo-metadata.ts": {
260
- "version": "0343f6ed0b97e6a2bf520cfcd14bd88340a41e4f841314b9961560f440f41638",
260
+ "version": "bd99388a4281b4ad46b60eaeca4bdecd76d5fcb7ce4c590eeaa1a2c2d2de8194",
261
261
  "signature": "c263d41ea824bf660f41fe045e05ffaccde487a5a6952b3cdc1c3d1b9f3a1520",
262
262
  "affectsGlobalScope": false
263
263
  },
@@ -272,8 +272,8 @@
272
272
  "affectsGlobalScope": false
273
273
  },
274
274
  "../src/_models/control-models/dynamo-nts-data-property-params.ts": {
275
- "version": "083bf41b1791f87a28ed3928b56caaa4e2317001805f8e6cf386f4b640a7eacf",
276
- "signature": "af2fb6793736a4c781b0df94e64ff95546ac212c8b6c5a14a6ddf83fca3eccfa",
275
+ "version": "171c543942a9174602a3604289929312e2803b6a1be218a2c756725c188e58a9",
276
+ "signature": "d0da540c9fe46cf3c73367dd1ac0070424e6acb7869b9baaf6cdf1b3dad1634d",
277
277
  "affectsGlobalScope": false
278
278
  },
279
279
  "../src/_models/control-models/dynamo-nts-data-params.ts": {
package/package.json CHANGED
@@ -1,21 +1,23 @@
1
1
  {
2
2
  "name": "@futdevpro/fsm-dynamo",
3
- "version": "01.05.30",
3
+ "version": "01.05.33",
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",
7
-
8
- "build": "npm run inb",
9
- "inb": "npm i",
10
- "postinb": "npm run pinb",
11
- "pinb": "npx tsc",
12
- "postpinb": "npm publish",
13
7
 
14
- "build-tgz": "npm run inbt",
15
- "inbt": "npm i",
16
- "postinbt": "npm run pinbt",
17
- "pinbt": "npx tsc",
18
- "postpinbt": "npm pack"
8
+ "build": "npm run install-n-build",
9
+ "install-n-build": "npm i",
10
+ "postinstall-n-build": "npm run n-build",
11
+ "n-build": "npx tsc",
12
+ "postn-build": "npm publish",
13
+
14
+ "build-tgz": "npm run install-n-build-tgz",
15
+ "install-n-build-tgz": "npm i",
16
+ "postinstall-n-build-tgz": "npm run n-build-tgz",
17
+ "n-build-tgz": "npx tsc",
18
+ "postn-build-tgz": "npm run pack-tgz",
19
+ "pack-tgz": "npm pack",
20
+ "postpack-tgz": "move ./*.tgz ../npm-tgz-collection"
19
21
  },
20
22
  "main": "./lib/index.js",
21
23
  "module": "./lib/index.js",
@@ -35,53 +35,82 @@ export class Dynamo_Error {
35
35
  log?: boolean,
36
36
  }
37
37
  ) {
38
- this.handled = !!set.handled;
39
-
40
- if (set) {
41
- this.status = set.status ?? set?.error?.status;
42
- this.errorCode = set.errorCode ?? set?.error?.errorCode;
43
-
44
- if (set.error) {
45
- if (set.error.error) {
46
- this.errors.push(set.error.error);
47
- }
48
- if (set.error.errors) {
49
- this.errors.push(...set.error.errors);
50
- }
51
-
52
- if (set.error.message) {
53
- this.messages.push(set.error.message);
54
- }
55
- if (set.error.messages) {
56
- this.messages.push(...set.error.messages);
57
- }
58
-
59
- if (set.error.userMessage) {
60
- this.userMessages.push(set.error.userMessage);
61
- }
62
- if (set.error.userMessages) {
63
- this.userMessages.push(...set.error.userMessages);
38
+ try {
39
+ this.handled = !!set.handled;
40
+
41
+ if (set) {
42
+ this.status = set.status ?? set?.error?.status;
43
+ this.errorCode = set.errorCode ?? set?.error?.errorCode;
44
+
45
+ if (set.error) {
46
+ if (set.error.error) {
47
+ this.errors.push(set.error.error);
48
+ }
49
+ if (set.error.errors) {
50
+ if (0 <= set.error.errors?.legnth) {
51
+ this.errors.push(...set.error.errors);
52
+ } else {
53
+ this.errors.push(set.error.errors);
54
+ }
55
+ }
56
+
57
+ if (set.error.message) {
58
+ this.messages.push(set.error.message);
59
+ }
60
+ if (set.error._message) {
61
+ this.messages.push(set.error._message);
62
+ }
63
+ if (set.error.messages) {
64
+ if (0 <= set.error.messages.legnth) {
65
+ if (set.error.messages[0] == this.error.messages[0]) {
66
+ set.error.messages.shift();
67
+ }
68
+ this.messages.push(...set.error.messages);
69
+ } else {
70
+ this.messages.push(set.error.messages);
71
+ }
72
+ }
73
+
74
+ if (set.error.userMessage) {
75
+ this.userMessages.push(set.error.userMessage);
76
+ }
77
+ if (set.error.userMessages) {
78
+ if (0 <= set.error.userMessages?.legnth) {
79
+ if (set.error.userMessages[0] == this.error.userMessages[0]) {
80
+ set.error.userMessages.shift();
81
+ }
82
+ this.userMessages.push(...set.error.userMessages);
83
+ } else {
84
+ this.userMessages.push(set.error.userMessages);
85
+ }
86
+ }
64
87
  }
65
88
  }
66
- }
67
89
 
68
- this.error = set?.error ?? this.errors[0] ?? new Error();
69
- this.userMessage = set?.userMessage ?? this.userMessages[0];
70
- this.message = set?.message ?? this.messages[0] ?? this.userMessage;
90
+ this.userMessage = set?.userMessage ?? this.userMessages[0];
91
+ this.message = set?.message ?? this.messages[0];
92
+ this.error = set?.error ?? this.errors[0] ?? new Error(this.message);
71
93
 
72
- if (set.addECToUserMsg) {
73
- this.userMessage += `\nErrorCode: ${this.errorCode}`
74
- }
94
+ if (set.addECToUserMsg) {
95
+ this.userMessage += `\nErrorCode: ${this.errorCode}`
96
+ }
75
97
 
76
- if (set?.modestLog) {
77
- console.error(this.message ?? this.userMessage ?? this.error)
78
- }
79
- if (set?.log) {
80
- console.error(this);
98
+ if (set?.modestLog) {
99
+ console.error(this.message ?? this.userMessage ?? this.error)
100
+ }
101
+ if (set?.log) {
102
+ console.error(this);
103
+ }
104
+ } catch (error) {
105
+ console.error('Internal Dynamo ERROR: Failed to create Dynamo_Error...', error, set);
106
+ throw new Error('Internal Dynamo ERROR: Failed to create Dynamo_Error...');
81
107
  }
82
108
  }
83
109
  }
84
110
 
111
+
112
+
113
+
85
114
  /*
86
115
 
87
116
  // //
@@ -212,4 +241,242 @@ Unofficial codes
212
241
  460
213
242
  463
214
243
 
215
- */
244
+ */
245
+
246
+
247
+
248
+
249
+ /**
250
+ * Returns the average of two numbers.
251
+ *
252
+ * @remarks
253
+ * This method is part of the {@link core-library#Statistics | Statistics subsystem}.
254
+ *
255
+ * @param x - The first input number
256
+ * @param y - The second input number
257
+ * @returns The arithmetic mean of `x` and `y`
258
+ *
259
+ * @beta
260
+ * @returns true if the specified tag is surrounded with `{`
261
+ * and `}` characters.
262
+ *
263
+ * @example
264
+ * Prints "true" for `{@link}` but "false" for `@internal`:
265
+ * ```ts
266
+ * console.log(isInlineTag('{@link}'));
267
+ * console.log(isInlineTag('@internal'));
268
+ * ```
269
+ *
270
+ *
271
+ * @alpha
272
+ * v
273
+ * sadfas d
274
+ * fs
275
+ * daf
276
+ * d as
277
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
278
+ * a
279
+ * @beta
280
+ * v
281
+ * sadfas d
282
+ * fs
283
+ * daf
284
+ * d as
285
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
286
+ * b
287
+ * @decorator
288
+ * v
289
+ * sadfas d
290
+ * fs
291
+ * daf
292
+ * d as
293
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
294
+ * dc
295
+ * @deprecated
296
+ * v
297
+ * sadfas d
298
+ * fs
299
+ * daf
300
+ * d as
301
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
302
+ * dp
303
+ * @defaultValue
304
+ * v
305
+ * sadfas d
306
+ * fs
307
+ * daf
308
+ * d as
309
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
310
+ * dv
311
+ * @eventProperty
312
+ * v
313
+ * sadfas d
314
+ * fs
315
+ * daf
316
+ * d as
317
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
318
+ * ep
319
+ * @example
320
+ * v
321
+ * sadfas d
322
+ * fs
323
+ * daf
324
+ * d as
325
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
326
+ * ex
327
+ * @experimental
328
+ * v
329
+ * sadfas d
330
+ * fs
331
+ * daf
332
+ * d as
333
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
334
+ * exp
335
+ * @inheritDoc
336
+ * v
337
+ * sadfas d
338
+ * fs
339
+ * daf
340
+ * d as
341
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
342
+ * in
343
+ * @internal
344
+ * v
345
+ * sadfas d
346
+ * fs
347
+ * daf
348
+ * d as
349
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
350
+ * int
351
+ * @label
352
+ * v
353
+ * sadfas d
354
+ * fs
355
+ * daf
356
+ * d as
357
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
358
+ * lab
359
+ * @link
360
+ * v
361
+ * sadfas d
362
+ * fs
363
+ * daf
364
+ * d as
365
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
366
+ * li
367
+ * @override
368
+ * v
369
+ * sadfas d
370
+ * fs
371
+ * daf
372
+ * d as
373
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
374
+ * v
375
+ * sadfas d
376
+ * fs
377
+ * daf
378
+ * d as
379
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
380
+ * ov
381
+ * @packageDocumentation
382
+ * v
383
+ * sadfas d
384
+ * fs
385
+ * daf
386
+ * d as
387
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
388
+ * pad
389
+ * @param
390
+ * v
391
+ * sadfas d
392
+ * fs
393
+ * daf
394
+ * d as
395
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
396
+ * par
397
+ * @privateRemarks
398
+ * v
399
+ * sadfas d
400
+ * fs
401
+ * daf
402
+ * d as
403
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
404
+ * pr
405
+ * @public
406
+ * v
407
+ * sadfas d
408
+ * fs
409
+ * daf
410
+ * d as
411
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
412
+ * p
413
+ * @readonly
414
+ * v
415
+ * sadfas d
416
+ * fs
417
+ * daf
418
+ * d as
419
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
420
+ * re
421
+ * @remarks
422
+ * v
423
+ * sadfas d
424
+ * fs
425
+ * daf
426
+ * d as
427
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
428
+ * rem
429
+ * @returns
430
+ * v
431
+ * sadfas d
432
+ * fs
433
+ * daf
434
+ * d as
435
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
436
+ * ret
437
+ * @sealed
438
+ * v
439
+ * sadfas d
440
+ * fs
441
+ * daf
442
+ * d as
443
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
444
+ * sea
445
+ * @see
446
+ * v
447
+ * sadfas d
448
+ * fs
449
+ * daf
450
+ * d as
451
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
452
+ * see
453
+ * @throws
454
+ * v
455
+ * sadfas d
456
+ * fs
457
+ * daf
458
+ * d as
459
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
460
+ * th
461
+ * @typeParam
462
+ * v
463
+ * sadfas d
464
+ * fs
465
+ * daf
466
+ * d as
467
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
468
+ * typ
469
+ * @virtual
470
+ * v
471
+ * sadfas d
472
+ * fs
473
+ * daf
474
+ * d as
475
+ * dafs // asd sa `sadf ` sadf asd******* asdf asd f asd
476
+ *
477
+ *
478
+ * @see {@link http://example.com/@internal LINK}
479
+ * @see {@link http://example.com/@internal http://example.com/@internal}
480
+ */
481
+ export interface TestDocumentationComments {}
482
+
@@ -1,4 +1,7 @@
1
1
 
2
+ /**
3
+ * This will be used for setting up db. DataServices also uses this to prehook tools, as db service and dependency db service.
4
+ */
2
5
  export class DynamoNTS_DataPropertyParams {
3
6
  key?: string;
4
7
  type?: 'string' | 'number' | 'boolean' | 'Date' | 'object' | string;
@@ -8,7 +11,14 @@ export class DynamoNTS_DataPropertyParams {
8
11
  index?: boolean;
9
12
 
10
13
  isDependencyHook?: boolean;
11
- dependencyName?: string;
14
+ /**
15
+ * This will be used to prehook dependency db service to data service by dataName from dependency data's DynamoNTS_DataPropertyParams
16
+ * Use the dependency data's DynamoNTS_DataPropertyParams.
17
+ *
18
+ * @example
19
+ * dependencyName: accountModelParams.dataName
20
+ */
21
+ dependencyDataName?: string;
12
22
 
13
23
  minlength?: number;
14
24
  maxlength?: number;
@@ -27,7 +37,14 @@ export class DynamoNTS_DataPropertyParams {
27
37
  index?: boolean,
28
38
 
29
39
  isDependencyHook?: boolean,
30
- dependencyDBServiceName?: string,
40
+ /**
41
+ * This will be used to prehook dependency db service to data service by dataName from dependency data's DynamoNTS_DataPropertyParams
42
+ * Use the dependency data's DynamoNTS_DataPropertyParams.
43
+ *
44
+ * @example
45
+ * dependencyName: accountModelParams.dataName
46
+ */
47
+ dependencyDataName?: string,
31
48
 
32
49
  minlength?: number,
33
50
  maxlength?: number,
@@ -38,18 +55,18 @@ export class DynamoNTS_DataPropertyParams {
38
55
  }
39
56
  ) {
40
57
  if (set) {
41
- if (!set.key || set.type) {
58
+ if (!set.key || !set.type) {
42
59
  console.log(`DYNAMO ERROR: \n key or type is missing from DynamoBEDataPropertyParams`, '\n\n', new Error());
43
60
  }
44
61
  this.key = set.key;
45
62
  this.type = set.type;
46
63
 
47
- this.subObjectParams = set.subObjectParams;
64
+ this.subObjectParams = set.subObjectParams ?? [];
48
65
 
49
66
  this.isDependencyHook = set.isDependencyHook;
50
- this.dependencyName = set.dependencyDBServiceName;
51
- if (set.isDependencyHook && set.dependencyDBServiceName) {
52
- console.log(`DYNAMO ERROR: \n dependencyDBServiceName missing for dependencyHook from DynamoBEDataPropertyParams (${set.key})`, '\n\n', new Error());
67
+ this.dependencyDataName = set.dependencyDataName;
68
+ if (set.isDependencyHook && !set.dependencyDataName) {
69
+ console.log(`DYNAMO ERROR: \n dependencyName missing for dependencyHook from DynamoBEDataPropertyParams (${set.key})`, '\n\n', new Error());
53
70
  }
54
71
 
55
72
  this.unique = set.unique;
@@ -21,13 +21,13 @@ export class Dynamo_Metadata {
21
21
  } | Dynamo_Metadata
22
22
  ){
23
23
  if (set) {
24
- this._id = set._id ? set._id : undefined;
24
+ this._id = set._id;
25
25
 
26
- this.__created = set.__created ? set.__created : undefined;
27
- this.__createdBy = set.__createdBy ? set.__createdBy : undefined;
28
- this.__lastModified = set.__lastModified ? set.__lastModified : undefined;
29
- this.__lastModifiedBy = set.__lastModifiedBy ? set.__lastModifiedBy : undefined;
30
- this.__v = set.__v ? set.__v : undefined;
26
+ this.__created = set.__created;
27
+ this.__createdBy = set.__createdBy;
28
+ this.__lastModified = set.__lastModified;
29
+ this.__lastModifiedBy = set.__lastModifiedBy;
30
+ this.__v = set.__v;
31
31
  }
32
32
  }
33
33
  }
Binary file
Binary file
Binary file