@futdevpro/nts-dynamo 1.3.47 → 1.3.49
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/_constants/dynamobe-global.settings.js +6 -4
- package/lib/_enums/data-model-type.enum.js +5 -3
- package/lib/_enums/dynamobe-data-service-function.enum.js +5 -3
- package/lib/_enums/dynamobe-route-security.enum.js +5 -3
- package/lib/_enums/http/http-call-type.enum.js +5 -3
- package/lib/_enums/http/http-response-type.enum.js +5 -3
- package/lib/_enums/index.js +10 -8
- package/lib/_enums/log-style.enum.js +5 -3
- package/lib/_enums/predefined-data-types.enum.js +5 -3
- package/lib/_models/dynamobe-api-call-params.js +7 -3
- package/lib/_models/dynamobe-app-params.js +5 -2
- package/lib/_models/dynamobe-data-model-params.js +5 -2
- package/lib/_models/dynamobe-endpoint-control.js +23 -20
- package/lib/_models/dynamobe-global-settings.js +2 -1
- package/lib/_models/fullstack-models/control-models/daily-usage-data.js +5 -2
- package/lib/_models/fullstack-models/control-models/dynamobe-data-property-params.js +7 -4
- package/lib/_models/fullstack-models/control-models/dynamobe-error.js +5 -2
- package/lib/_models/fullstack-models/control-models/geo-ip-location.js +2 -1
- package/lib/_models/fullstack-models/control-models/usage-action.js +5 -2
- package/lib/_models/fullstack-models/control-models/usage-data.js +5 -2
- package/lib/_models/fullstack-models/data-models/custom-data.js +7 -4
- package/lib/_models/fullstack-models/data-models/metadata.js +5 -2
- package/lib/_models/fullstack-models/data-models/usage-session.js +7 -4
- package/lib/_models/index.js +17 -15
- package/lib/_modules/index.js +7 -5
- package/lib/_modules/test-route/custom-data.service.js +9 -6
- package/lib/_modules/test-route/test-controller.js +33 -30
- package/lib/_modules/usage-route/usage-controller.js +31 -28
- package/lib/_modules/usage-route/usage.service.js +24 -21
- package/lib/_services/dynamobe-api.service.js +29 -26
- package/lib/_services/dynamobe-app.js +12 -8
- package/lib/_services/dynamobe-auth.service.js +9 -6
- package/lib/_services/dynamobe-controller.service.js +6 -3
- package/lib/_services/dynamobe-data.service.js +32 -29
- package/lib/_services/dynamobe-db-service-collection.service.js +6 -3
- package/lib/_services/dynamobe-db.service.js +52 -49
- package/lib/_services/dynamobe-email-service-collection.service.js +6 -3
- package/lib/_services/dynamobe-email.service.js +18 -15
- package/lib/_services/dynamobe-global.service.js +8 -5
- package/lib/_services/dynamobe-routing-module.service.js +29 -26
- package/lib/_services/dynamobe-server.js +37 -34
- package/lib/_services/dynamobe-shared.service.js +34 -30
- package/lib/_services/dynamobe-singleton.service.js +5 -2
- package/lib/_services/index.js +17 -15
- package/lib/index.js +7 -5
- package/lib/tsconfig.tsbuildinfo +2 -12
- package/package.json +1 -1
- package/tsconfig.json +8 -8
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dynamoBEDefaultGlobalSettings = void 0;
|
|
4
|
+
const dynamobe_route_security_enum_1 = require("../_enums/dynamobe-route-security.enum");
|
|
5
|
+
exports.dynamoBEDefaultGlobalSettings = {
|
|
6
|
+
defaultRouteSecurity: dynamobe_route_security_enum_1.DynamoBERouteSecurity.open,
|
|
4
7
|
logSetup: false,
|
|
5
8
|
logRequests: true,
|
|
6
9
|
logRequestsContent: true,
|
|
7
10
|
logResponseContent: false,
|
|
8
11
|
};
|
|
9
|
-
//# sourceMappingURL=dynamobe-global.settings.js.map
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataModelType = void 0;
|
|
4
|
+
var DataModelType;
|
|
2
5
|
(function (DataModelType) {
|
|
3
6
|
DataModelType["dataModel"] = "data-model";
|
|
4
7
|
DataModelType["controlModel"] = "control-model";
|
|
5
8
|
DataModelType["interfaceModel"] = "interface-model";
|
|
6
|
-
})(DataModelType || (DataModelType = {}));
|
|
7
|
-
//# sourceMappingURL=data-model-type.enum.js.map
|
|
9
|
+
})(DataModelType = exports.DataModelType || (exports.DataModelType = {}));
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoBEDSF = void 0;
|
|
1
4
|
/* DataServiceFunction */
|
|
2
|
-
|
|
5
|
+
var DynamoBEDSF;
|
|
3
6
|
(function (DynamoBEDSF) {
|
|
4
7
|
DynamoBEDSF["getAll"] = "getAll";
|
|
5
8
|
DynamoBEDSF["getDataById"] = "getDataById";
|
|
@@ -8,5 +11,4 @@ export var DynamoBEDSF;
|
|
|
8
11
|
DynamoBEDSF["modifyData"] = "modifyData";
|
|
9
12
|
DynamoBEDSF["deleteData"] = "deleteData";
|
|
10
13
|
DynamoBEDSF["getProvidedData"] = "getProvidedData";
|
|
11
|
-
})(DynamoBEDSF || (DynamoBEDSF = {}));
|
|
12
|
-
//# sourceMappingURL=dynamobe-data-service-function.enum.js.map
|
|
14
|
+
})(DynamoBEDSF = exports.DynamoBEDSF || (exports.DynamoBEDSF = {}));
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoBERouteSecurity = void 0;
|
|
4
|
+
var DynamoBERouteSecurity;
|
|
2
5
|
(function (DynamoBERouteSecurity) {
|
|
3
6
|
DynamoBERouteSecurity["open"] = "open";
|
|
4
7
|
DynamoBERouteSecurity["secure"] = "secure";
|
|
5
8
|
DynamoBERouteSecurity["both"] = "both";
|
|
6
|
-
})(DynamoBERouteSecurity || (DynamoBERouteSecurity = {}));
|
|
7
|
-
//# sourceMappingURL=dynamobe-route-security.enum.js.map
|
|
9
|
+
})(DynamoBERouteSecurity = exports.DynamoBERouteSecurity || (exports.DynamoBERouteSecurity = {}));
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpCallType = void 0;
|
|
4
|
+
var HttpCallType;
|
|
2
5
|
(function (HttpCallType) {
|
|
3
6
|
HttpCallType["get"] = "get";
|
|
4
7
|
HttpCallType["post"] = "post";
|
|
5
8
|
HttpCallType["put"] = "put";
|
|
6
9
|
HttpCallType["patch"] = "patch";
|
|
7
10
|
HttpCallType["delete"] = "delete";
|
|
8
|
-
})(HttpCallType || (HttpCallType = {}));
|
|
9
|
-
//# sourceMappingURL=http-call-type.enum.js.map
|
|
11
|
+
})(HttpCallType = exports.HttpCallType || (exports.HttpCallType = {}));
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpResponseType = void 0;
|
|
4
|
+
var HttpResponseType;
|
|
2
5
|
(function (HttpResponseType) {
|
|
3
6
|
HttpResponseType["arraybuffer"] = "arraybuffer";
|
|
4
7
|
HttpResponseType["blob"] = "blob";
|
|
5
8
|
HttpResponseType["json"] = "json";
|
|
6
9
|
HttpResponseType["text"] = "text";
|
|
7
|
-
})(HttpResponseType || (HttpResponseType = {}));
|
|
8
|
-
//# sourceMappingURL=http-response-type.enum.js.map
|
|
10
|
+
})(HttpResponseType = exports.HttpResponseType || (exports.HttpResponseType = {}));
|
package/lib/_enums/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
1
4
|
// ENUMS
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
tslib_1.__exportStar(require("./data-model-type.enum"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./dynamobe-data-service-function.enum"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./dynamobe-route-security.enum"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./log-style.enum"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./predefined-data-types.enum"), exports);
|
|
7
10
|
// HTTP ENUMS
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
tslib_1.__exportStar(require("./http/http-call-type.enum"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./http/http-response-type.enum"), exports);
|
|
10
13
|
/*
|
|
11
14
|
import { DataModelType } from './data-model-type.enum';
|
|
12
15
|
import { DynamoBEDSF } from './dynamobe-data-service-function.enum';
|
|
@@ -33,4 +36,3 @@ module.exports = {
|
|
|
33
36
|
export * from './http/http-call-type.enum';
|
|
34
37
|
export * from './http/http-response-type.enum';
|
|
35
38
|
} */
|
|
36
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LogStyle = void 0;
|
|
4
|
+
var LogStyle;
|
|
2
5
|
(function (LogStyle) {
|
|
3
6
|
LogStyle["reset"] = "\u001B[0m";
|
|
4
7
|
LogStyle["bright"] = "\u001B[1m";
|
|
@@ -23,5 +26,4 @@ export var LogStyle;
|
|
|
23
26
|
LogStyle["BgMagenta"] = "\u001B[45m";
|
|
24
27
|
LogStyle["BgCyan"] = "\u001B[46m";
|
|
25
28
|
LogStyle["BgWhite"] = "\u001B[47m";
|
|
26
|
-
})(LogStyle || (LogStyle = {}));
|
|
27
|
-
//# sourceMappingURL=log-style.enum.js.map
|
|
29
|
+
})(LogStyle = exports.LogStyle || (exports.LogStyle = {}));
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PredefinedDataTypes = void 0;
|
|
4
|
+
var PredefinedDataTypes;
|
|
2
5
|
(function (PredefinedDataTypes) {
|
|
3
6
|
PredefinedDataTypes[PredefinedDataTypes["string"] = 0] = "string";
|
|
4
7
|
PredefinedDataTypes[PredefinedDataTypes["number"] = 1] = "number";
|
|
5
8
|
PredefinedDataTypes[PredefinedDataTypes["boolean"] = 2] = "boolean";
|
|
6
9
|
PredefinedDataTypes[PredefinedDataTypes["Date"] = 3] = "Date";
|
|
7
10
|
PredefinedDataTypes[PredefinedDataTypes["object"] = 4] = "object";
|
|
8
|
-
})(PredefinedDataTypes || (PredefinedDataTypes = {}));
|
|
9
|
-
//# sourceMappingURL=predefined-data-types.enum.js.map
|
|
11
|
+
})(PredefinedDataTypes = exports.PredefinedDataTypes || (exports.PredefinedDataTypes = {}));
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpOptions = exports.DynamoBEApiCallParams = void 0;
|
|
4
|
+
class DynamoBEApiCallParams {
|
|
2
5
|
constructor(settings) {
|
|
3
6
|
this.name = settings.name;
|
|
4
7
|
this.type = settings.type;
|
|
@@ -7,7 +10,8 @@ export class DynamoBEApiCallParams {
|
|
|
7
10
|
this.httpOptions = settings.httpOptions ? settings.httpOptions : {};
|
|
8
11
|
}
|
|
9
12
|
}
|
|
10
|
-
|
|
13
|
+
exports.DynamoBEApiCallParams = DynamoBEApiCallParams;
|
|
14
|
+
class HttpOptions {
|
|
11
15
|
constructor(options) {
|
|
12
16
|
this.responseType = options.responseType;
|
|
13
17
|
this.headers = options.headers;
|
|
@@ -16,4 +20,4 @@ export class HttpOptions {
|
|
|
16
20
|
this.withCredentials = options.withCredentials;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
|
-
|
|
23
|
+
exports.HttpOptions = HttpOptions;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoBEAppParams = void 0;
|
|
4
|
+
class DynamoBEAppParams {
|
|
2
5
|
constructor(set) {
|
|
3
6
|
this.name = set.name;
|
|
4
7
|
this.title = set.title ? set.title : '';
|
|
@@ -7,4 +10,4 @@ export class DynamoBEAppParams {
|
|
|
7
10
|
this.dbUri = set.dbUri ? set.dbUri : `mongodb://localhost:27017/${this.dbName}`;
|
|
8
11
|
}
|
|
9
12
|
}
|
|
10
|
-
|
|
13
|
+
exports.DynamoBEAppParams = DynamoBEAppParams;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoBEDataModelParams = void 0;
|
|
4
|
+
class DynamoBEDataModelParams {
|
|
2
5
|
constructor(set) {
|
|
3
6
|
this.properties = [];
|
|
4
7
|
if (set) {
|
|
@@ -8,4 +11,4 @@ export class DynamoBEDataModelParams {
|
|
|
8
11
|
}
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
|
-
|
|
14
|
+
exports.DynamoBEDataModelParams = DynamoBEDataModelParams;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoBEEndpointParams = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const dynamobe_shared_service_1 = require("../_services/dynamobe-shared.service");
|
|
6
|
+
const dynamobe_global_service_1 = require("../_services/dynamobe-global.service");
|
|
7
|
+
class DynamoBEEndpointParams {
|
|
5
8
|
constructor(set) {
|
|
6
9
|
this.name = set.name ? set.name : set.endpoint;
|
|
7
|
-
this.security = set.security ? set.security : DBE_Global_S.getGlobalSettings().defaultRouteSecurity;
|
|
10
|
+
this.security = set.security ? set.security : dynamobe_global_service_1.DBE_Global_S.getGlobalSettings().defaultRouteSecurity;
|
|
8
11
|
this.type = set.type;
|
|
9
12
|
this.endpoint = set.endpoint;
|
|
10
13
|
let pathParts = this.endpoint.split('/');
|
|
@@ -13,15 +16,15 @@ export class DynamoBEEndpointParams {
|
|
|
13
16
|
this.pathParams = pathParts;
|
|
14
17
|
this.preProcessess = set.preProcessess ? set.preProcessess : [];
|
|
15
18
|
this.tasks = set.tasks;
|
|
16
|
-
this.logRequest = set.logRequest !== undefined ? set.logRequest : DBE_Global_S.getGlobalSettings().logRequests;
|
|
17
|
-
this.logRequestsContent = set.logRequestsContent !== undefined ? set.logRequestsContent : DBE_Global_S.getGlobalSettings().logRequestsContent;
|
|
18
|
-
this.logResponseContent = set.logResponseContent !== undefined ? set.logResponseContent : DBE_Global_S.getGlobalSettings().logResponseContent;
|
|
19
|
+
this.logRequest = set.logRequest !== undefined ? set.logRequest : dynamobe_global_service_1.DBE_Global_S.getGlobalSettings().logRequests;
|
|
20
|
+
this.logRequestsContent = set.logRequestsContent !== undefined ? set.logRequestsContent : dynamobe_global_service_1.DBE_Global_S.getGlobalSettings().logRequestsContent;
|
|
21
|
+
this.logResponseContent = set.logResponseContent !== undefined ? set.logResponseContent : dynamobe_global_service_1.DBE_Global_S.getGlobalSettings().logResponseContent;
|
|
19
22
|
if (this.logRequest) {
|
|
20
23
|
this.preProcessess.unshift(this.getPreLog());
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
getPreLog() {
|
|
24
|
-
return (req, res, next) => __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return (req, res, next) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
28
|
if (this.logRequest) {
|
|
26
29
|
if (this.logRequestsContent) {
|
|
27
30
|
let inputs = '';
|
|
@@ -46,37 +49,37 @@ export class DynamoBEEndpointParams {
|
|
|
46
49
|
});
|
|
47
50
|
}
|
|
48
51
|
getTasksExecution() {
|
|
49
|
-
return (req, res) => __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
return (req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
50
53
|
try {
|
|
51
|
-
const issuer = DBE_Global_S.getAuthService().getAccountIdFromRequest(req);
|
|
52
|
-
yield this.tasks.forEach((task) => __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const issuer = dynamobe_global_service_1.DBE_Global_S.getAuthService().getAccountIdFromRequest(req);
|
|
55
|
+
yield this.tasks.forEach((task) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
53
56
|
yield task(req, res, issuer);
|
|
54
57
|
}));
|
|
55
58
|
if (this.logRequest) {
|
|
56
59
|
if (this.logResponseContent) {
|
|
57
|
-
DBE_Shared.logSuccess(` <<<===== ${this.name} result sent.`);
|
|
58
|
-
DBE_Shared.logSuccess('sorry, the logResponseContent is not implemented yet.');
|
|
60
|
+
dynamobe_shared_service_1.DBE_Shared.logSuccess(` <<<===== ${this.name} result sent.`);
|
|
61
|
+
dynamobe_shared_service_1.DBE_Shared.logSuccess('sorry, the logResponseContent is not implemented yet.');
|
|
59
62
|
}
|
|
60
63
|
else {
|
|
61
|
-
DBE_Shared.logSuccess(` <<<===== ${this.name} result sent.`);
|
|
64
|
+
dynamobe_shared_service_1.DBE_Shared.logSuccess(` <<<===== ${this.name} result sent.`);
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
catch (error) {
|
|
66
|
-
DBE_Shared.logError(`${this.name} ERROR`, error, '\n');
|
|
69
|
+
dynamobe_shared_service_1.DBE_Shared.logError(`${this.name} ERROR`, error, '\n');
|
|
67
70
|
res.status(error.status ? error.status : 501);
|
|
68
71
|
res.send(error);
|
|
69
72
|
if (this.logRequest) {
|
|
70
73
|
if (this.logResponseContent) {
|
|
71
|
-
DBE_Shared.logError(` <<<===== ${this.name} error sent.`);
|
|
72
|
-
DBE_Shared.logError('sorry, the logResponseContent is not implemented yet.');
|
|
74
|
+
dynamobe_shared_service_1.DBE_Shared.logError(` <<<===== ${this.name} error sent.`);
|
|
75
|
+
dynamobe_shared_service_1.DBE_Shared.logError('sorry, the logResponseContent is not implemented yet.');
|
|
73
76
|
}
|
|
74
77
|
else {
|
|
75
|
-
DBE_Shared.logError(` <<<===== ${this.name} error sent.`);
|
|
78
|
+
dynamobe_shared_service_1.DBE_Shared.logError(` <<<===== ${this.name} error sent.`);
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
81
|
}
|
|
79
82
|
});
|
|
80
83
|
}
|
|
81
84
|
}
|
|
82
|
-
|
|
85
|
+
exports.DynamoBEEndpointParams = DynamoBEEndpointParams;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DailyUsageData = void 0;
|
|
4
|
+
class DailyUsageData {
|
|
2
5
|
constructor(set) {
|
|
3
6
|
this.totalVisitTime = 0;
|
|
4
7
|
this.averageVisitTime = 0;
|
|
@@ -15,4 +18,4 @@ export class DailyUsageData {
|
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
|
-
|
|
21
|
+
exports.DailyUsageData = DailyUsageData;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoBEDataPropertyParams = void 0;
|
|
4
|
+
const dynamobe_error_1 = require("./dynamobe-error");
|
|
5
|
+
class DynamoBEDataPropertyParams {
|
|
3
6
|
constructor(set) {
|
|
4
7
|
this.subObjectParams = [];
|
|
5
8
|
if (set) {
|
|
@@ -11,7 +14,7 @@ export class DynamoBEDataPropertyParams {
|
|
|
11
14
|
}
|
|
12
15
|
else {
|
|
13
16
|
console.log('DYNAMO ERROR: \n subObjectParams missing', '\n\n', new Error());
|
|
14
|
-
throw new DynamoBEError({ message: 'subObjectParams missing' });
|
|
17
|
+
throw new dynamobe_error_1.DynamoBEError({ message: 'subObjectParams missing' });
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
if (set.isDependencyHook) {
|
|
@@ -60,4 +63,4 @@ export class DynamoBEDataPropertyParams {
|
|
|
60
63
|
}
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
|
-
|
|
66
|
+
exports.DynamoBEDataPropertyParams = DynamoBEDataPropertyParams;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoBEError = void 0;
|
|
4
|
+
class DynamoBEError {
|
|
2
5
|
constructor(customConstructor) {
|
|
3
6
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
4
7
|
this.flag = 'DYNAMO-BE ERROR OBJECT';
|
|
@@ -50,6 +53,7 @@ export class DynamoBEError {
|
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
}
|
|
56
|
+
exports.DynamoBEError = DynamoBEError;
|
|
53
57
|
/*
|
|
54
58
|
|
|
55
59
|
// //
|
|
@@ -181,4 +185,3 @@ Unofficial codes
|
|
|
181
185
|
463
|
|
182
186
|
|
|
183
187
|
*/
|
|
184
|
-
//# sourceMappingURL=dynamobe-error.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoUsageAction = void 0;
|
|
4
|
+
class DynamoUsageAction {
|
|
2
5
|
constructor(set) {
|
|
3
6
|
if (set) {
|
|
4
7
|
this.action = set.action;
|
|
@@ -6,4 +9,4 @@ export class DynamoUsageAction {
|
|
|
6
9
|
}
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
|
-
|
|
12
|
+
exports.DynamoUsageAction = DynamoUsageAction;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoUsageData = void 0;
|
|
4
|
+
class DynamoUsageData {
|
|
2
5
|
constructor(set) {
|
|
3
6
|
this.actions = [];
|
|
4
7
|
if (set) {
|
|
@@ -9,4 +12,4 @@ export class DynamoUsageData {
|
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
|
-
|
|
15
|
+
exports.DynamoUsageData = DynamoUsageData;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customDataModelParams = exports.CustomData = void 0;
|
|
4
|
+
const metadata_1 = require("./metadata");
|
|
5
|
+
class CustomData extends metadata_1.Metadata {
|
|
3
6
|
constructor(set) {
|
|
4
7
|
super({
|
|
5
8
|
_id: set._id,
|
|
@@ -14,7 +17,7 @@ export class CustomData extends Metadata {
|
|
|
14
17
|
}
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
|
-
|
|
20
|
+
exports.CustomData = CustomData;
|
|
21
|
+
exports.customDataModelParams = [
|
|
18
22
|
{ key: 'data', type: 'string', required: true },
|
|
19
23
|
];
|
|
20
|
-
//# sourceMappingURL=custom-data.js.map
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Metadata = void 0;
|
|
4
|
+
class Metadata {
|
|
2
5
|
constructor(set) {
|
|
3
6
|
if (set) {
|
|
4
7
|
this._id = set._id;
|
|
@@ -10,4 +13,4 @@ export class Metadata {
|
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
}
|
|
13
|
-
|
|
16
|
+
exports.Metadata = Metadata;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.usageSessionModelParams = exports.DynamoUsageSession = void 0;
|
|
4
|
+
const metadata_1 = require("./metadata");
|
|
5
|
+
class DynamoUsageSession extends metadata_1.Metadata {
|
|
3
6
|
constructor(set) {
|
|
4
7
|
super({
|
|
5
8
|
_id: set === null || set === void 0 ? void 0 : set._id,
|
|
@@ -27,7 +30,8 @@ export class DynamoUsageSession extends Metadata {
|
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
|
-
|
|
33
|
+
exports.DynamoUsageSession = DynamoUsageSession;
|
|
34
|
+
exports.usageSessionModelParams = [
|
|
31
35
|
{ key: 'date', type: 'string',
|
|
32
36
|
required: true, index: true
|
|
33
37
|
},
|
|
@@ -42,4 +46,3 @@ export const usageSessionModelParams = [
|
|
|
42
46
|
{ key: 'totalSessionTime', type: 'number' },
|
|
43
47
|
{ key: 'loggedInAs', type: 'string' },
|
|
44
48
|
];
|
|
45
|
-
//# sourceMappingURL=usage-session.js.map
|
package/lib/_models/index.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
1
4
|
// MODULES
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
tslib_1.__exportStar(require("./dynamobe-api-call-params"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./dynamobe-app-params"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./dynamobe-data-model-params"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./dynamobe-endpoint-control"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./dynamobe-global-settings"), exports);
|
|
7
10
|
// FULLSTACK - CONTROL MODELS
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
tslib_1.__exportStar(require("./fullstack-models/control-models/daily-usage-data"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./fullstack-models/control-models/dynamobe-data-property-params"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./fullstack-models/control-models/dynamobe-error"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./fullstack-models/control-models/geo-ip-location"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./fullstack-models/control-models/usage-action"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./fullstack-models/control-models/usage-data"), exports);
|
|
14
17
|
// FULLSTACK - DATA MODELS
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
tslib_1.__exportStar(require("./fullstack-models/data-models/custom-data"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./fullstack-models/data-models/metadata"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./fullstack-models/data-models/usage-session"), exports);
|
|
18
21
|
/* import { DynamoBEDataModelParams } from './dynamobe-data-model-params';
|
|
19
22
|
import { Metadata } from './fullstack-models/data-models/metadata';
|
|
20
23
|
|
|
21
24
|
module.exports = {
|
|
22
25
|
Metadata, DynamoBEDataModelParams
|
|
23
26
|
} */
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
package/lib/_modules/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
1
4
|
// MODULES
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
tslib_1.__exportStar(require("./test-route/test-controller"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./test-route/custom-data.service"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./usage-route/usage-controller"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./usage-route/usage.service"), exports);
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomDataService = void 0;
|
|
4
|
+
const custom_data_1 = require("../../_models/fullstack-models/data-models/custom-data");
|
|
5
|
+
const dynamobe_data_service_1 = require("../../_services/dynamobe-data.service");
|
|
6
|
+
const dynamobe_global_service_1 = require("../../_services/dynamobe-global.service");
|
|
7
|
+
class CustomDataService extends dynamobe_data_service_1.DynamoBEDataService {
|
|
5
8
|
constructor(customData, issuer) {
|
|
6
|
-
super(DBE_Global_S.getDBServiceCollection().customDataDBService, new CustomData(customData), customDataModelParams, issuer);
|
|
9
|
+
super(dynamobe_global_service_1.DBE_Global_S.getDBServiceCollection().customDataDBService, new custom_data_1.CustomData(customData), custom_data_1.customDataModelParams, issuer);
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
|
-
|
|
12
|
+
exports.CustomDataService = CustomDataService;
|