@resolveio/server-lib 9.2.17 → 9.2.19
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/client-server-app.js +1 -55
- package/client-server-app.js.map +1 -1
- package/collections/app-status.collection.js +1 -40
- package/collections/app-status.collection.js.map +1 -1
- package/collections/app-version.collection.js +1 -40
- package/collections/app-version.collection.js.map +1 -1
- package/collections/counter.collection.js +1 -43
- package/collections/counter.collection.js.map +1 -1
- package/collections/cron-job-history.collection.js +1 -71
- package/collections/cron-job-history.collection.js.map +1 -1
- package/collections/cron-job.collection.js +1 -74
- package/collections/cron-job.collection.js.map +1 -1
- package/collections/email-history.collection.js +1 -55
- package/collections/email-history.collection.js.map +1 -1
- package/collections/email-verified.collection.js +1 -50
- package/collections/email-verified.collection.js.map +1 -1
- package/collections/file.collection.js +1 -62
- package/collections/file.collection.js.map +1 -1
- package/collections/flag.collection.js +1 -44
- package/collections/flag.collection.js.map +1 -1
- package/collections/log-method-latency.collection.js +1 -53
- package/collections/log-method-latency.collection.js.map +1 -1
- package/collections/log-subscription.collection.js +1 -57
- package/collections/log-subscription.collection.js.map +1 -1
- package/collections/log.collection.js +1 -72
- package/collections/log.collection.js.map +1 -1
- package/collections/logged-in-users.collection.js +1 -58
- package/collections/logged-in-users.collection.js.map +1 -1
- package/collections/method-call.collection.js +1 -51
- package/collections/method-call.collection.js.map +1 -1
- package/collections/method-response.collection.js +1 -55
- package/collections/method-response.collection.js.map +1 -1
- package/collections/monitor-cpu.collection.js +1 -57
- package/collections/monitor-cpu.collection.js.map +1 -1
- package/collections/monitor-https-inbound.collection.js +1 -66
- package/collections/monitor-https-inbound.collection.js.map +1 -1
- package/collections/monitor-https-outbound.collection.js +1 -74
- package/collections/monitor-https-outbound.collection.js.map +1 -1
- package/collections/monitor-memory.collection.js +1 -68
- package/collections/monitor-memory.collection.js.map +1 -1
- package/collections/monitor-mongo.collection.js +1 -62
- package/collections/monitor-mongo.collection.js.map +1 -1
- package/collections/notification.collection.js +1 -40
- package/collections/notification.collection.js.map +1 -1
- package/collections/report-builder-dashboard-builder.collection.js +1 -93
- package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
- package/collections/report-builder-library.collection.js +1 -76
- package/collections/report-builder-library.collection.js.map +1 -1
- package/collections/report-builder-report.collection.js +1 -138
- package/collections/report-builder-report.collection.js.map +1 -1
- package/collections/user-group.collection.js +1 -79
- package/collections/user-group.collection.js.map +1 -1
- package/collections/user-guide.collection.js +1 -46
- package/collections/user-guide.collection.js.map +1 -1
- package/collections/user.collection.js +1 -248
- package/collections/user.collection.js.map +1 -1
- package/cron/cron.js +1 -161
- package/cron/cron.js.map +1 -1
- package/fixtures/cron-jobs.js +1 -72
- package/fixtures/cron-jobs.js.map +1 -1
- package/fixtures/init.js +1 -62
- package/fixtures/init.js.map +1 -1
- package/http/auth.js +1 -697
- package/http/auth.js.map +1 -1
- package/http/health.js +1 -10
- package/http/health.js.map +1 -1
- package/http/home.js +1 -64
- package/http/home.js.map +1 -1
- package/index.js +1 -123
- package/index.js.map +1 -1
- package/managers/cron.manager.js +1 -205
- package/managers/cron.manager.js.map +1 -1
- package/managers/method.manager.js +1 -599
- package/managers/method.manager.js.map +1 -1
- package/managers/mongo.manager.js +1 -1682
- package/managers/mongo.manager.js.map +1 -1
- package/managers/monitor.manager.js +1 -334
- package/managers/monitor.manager.js.map +1 -1
- package/managers/subscription.manager.js +1 -867
- package/managers/subscription.manager.js.map +1 -1
- package/managers/subscription.performance.js +1 -100
- package/managers/subscription.performance.js.map +1 -1
- package/methods/accounts.js +1 -224
- package/methods/accounts.js.map +1 -1
- package/methods/aws.js +1 -449
- package/methods/aws.js.map +1 -1
- package/methods/cloudconvert.js +1 -214
- package/methods/cloudconvert.js.map +1 -1
- package/methods/collections.js +1 -526
- package/methods/collections.js.map +1 -1
- package/methods/counters.js +1 -121
- package/methods/counters.js.map +1 -1
- package/methods/cron-jobs.js +1 -1284
- package/methods/cron-jobs.js.map +1 -1
- package/methods/flags.js +1 -8
- package/methods/flags.js.map +1 -1
- package/methods/logs.js +1 -370
- package/methods/logs.js.map +1 -1
- package/methods/monitor.js +1 -384
- package/methods/monitor.js.map +1 -1
- package/methods/pdf.js +1 -685
- package/methods/pdf.js.map +1 -1
- package/methods/report-builder.js +1 -826
- package/methods/report-builder.js.map +1 -1
- package/methods/support.js +1 -263
- package/methods/support.js.map +1 -1
- package/models/app-status.model.js +1 -3
- package/models/app-status.model.js.map +1 -1
- package/models/app-version.model.js +1 -3
- package/models/app-version.model.js.map +1 -1
- package/models/billing-logged-in-users.model.js +1 -3
- package/models/billing-logged-in-users.model.js.map +1 -1
- package/models/collection-document.model.js +1 -3
- package/models/collection-document.model.js.map +1 -1
- package/models/counter.model.js +1 -3
- package/models/counter.model.js.map +1 -1
- package/models/cron-job-history.model.js +1 -3
- package/models/cron-job-history.model.js.map +1 -1
- package/models/cron-job.model.js +1 -3
- package/models/cron-job.model.js.map +1 -1
- package/models/dialog.model.js +1 -3
- package/models/dialog.model.js.map +1 -1
- package/models/email-history.model.js +1 -3
- package/models/email-history.model.js.map +1 -1
- package/models/email-verified.model.js +1 -3
- package/models/email-verified.model.js.map +1 -1
- package/models/file.model.js +1 -3
- package/models/file.model.js.map +1 -1
- package/models/flag.model.js +1 -3
- package/models/flag.model.js.map +1 -1
- package/models/log-method-latency.model.js +1 -3
- package/models/log-method-latency.model.js.map +1 -1
- package/models/log-subscription.model.js +1 -3
- package/models/log-subscription.model.js.map +1 -1
- package/models/log.model.js +1 -3
- package/models/log.model.js.map +1 -1
- package/models/logged-in-users.model.js +1 -3
- package/models/logged-in-users.model.js.map +1 -1
- package/models/method-call.model.js +1 -3
- package/models/method-call.model.js.map +1 -1
- package/models/method-response.model.js +1 -3
- package/models/method-response.model.js.map +1 -1
- package/models/method.model.js +1 -3
- package/models/method.model.js.map +1 -1
- package/models/monitor-cpu.model.js +1 -3
- package/models/monitor-cpu.model.js.map +1 -1
- package/models/monitor-https-inbound.model.js +1 -3
- package/models/monitor-https-inbound.model.js.map +1 -1
- package/models/monitor-https-outbound.model.js +1 -3
- package/models/monitor-https-outbound.model.js.map +1 -1
- package/models/monitor-memory.model.js +1 -3
- package/models/monitor-memory.model.js.map +1 -1
- package/models/monitor-mongo.model.js +1 -3
- package/models/monitor-mongo.model.js.map +1 -1
- package/models/notification.model.js +1 -3
- package/models/notification.model.js.map +1 -1
- package/models/pagination.model.js +1 -23
- package/models/pagination.model.js.map +1 -1
- package/models/permission.model.js +1 -3
- package/models/permission.model.js.map +1 -1
- package/models/report-builder-dashboard-builder.model.js +1 -3
- package/models/report-builder-dashboard-builder.model.js.map +1 -1
- package/models/report-builder-library.model.js +1 -3
- package/models/report-builder-library.model.js.map +1 -1
- package/models/report-builder-report.model.js +1 -3
- package/models/report-builder-report.model.js.map +1 -1
- package/models/report-builder.model.js +1 -3
- package/models/report-builder.model.js.map +1 -1
- package/models/select-data-label.model.js +1 -3
- package/models/select-data-label.model.js.map +1 -1
- package/models/server-response.model.js +1 -3
- package/models/server-response.model.js.map +1 -1
- package/models/subscription.model.js +1 -3
- package/models/subscription.model.js.map +1 -1
- package/models/support-ticket.model.js +1 -3
- package/models/support-ticket.model.js.map +1 -1
- package/models/user-group.model.js +1 -3
- package/models/user-group.model.js.map +1 -1
- package/models/user-guide.model.js +1 -3
- package/models/user-guide.model.js.map +1 -1
- package/models/user.model.js +1 -3
- package/models/user.model.js.map +1 -1
- package/package.json +2 -2
- package/public_api.js +1 -78
- package/public_api.js.map +1 -1
- package/publications/app-status.js +1 -16
- package/publications/app-status.js.map +1 -1
- package/publications/app-version.js +1 -16
- package/publications/app-version.js.map +1 -1
- package/publications/cron-jobs.js +1 -32
- package/publications/cron-jobs.js.map +1 -1
- package/publications/files.js +1 -36
- package/publications/files.js.map +1 -1
- package/publications/flags.js +1 -22
- package/publications/flags.js.map +1 -1
- package/publications/logs.js +1 -90
- package/publications/logs.js.map +1 -1
- package/publications/method-calls.js +1 -16
- package/publications/method-calls.js.map +1 -1
- package/publications/method-responses.js +1 -16
- package/publications/method-responses.js.map +1 -1
- package/publications/notifications.js +1 -16
- package/publications/notifications.js.map +1 -1
- package/publications/report-builder-dashboard-builders.js +1 -42
- package/publications/report-builder-dashboard-builders.js.map +1 -1
- package/publications/report-builder-libraries.js +1 -89
- package/publications/report-builder-libraries.js.map +1 -1
- package/publications/report-builder-reports.js +1 -50
- package/publications/report-builder-reports.js.map +1 -1
- package/publications/super-admin.js +1 -16
- package/publications/super-admin.js.map +1 -1
- package/publications/user-groups.js +1 -16
- package/publications/user-groups.js.map +1 -1
- package/publications/user-guides.js +1 -16
- package/publications/user-guides.js.map +1 -1
- package/server-app.js +1 -682
- package/server-app.js.map +1 -1
- package/util/common.js +1 -498
- package/util/common.js.map +1 -1
- package/util/schema-report-builder.js +1 -452
- package/util/schema-report-builder.js.map +1 -1
package/client-server-app.js
CHANGED
|
@@ -1,56 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var serverConfig = require('./settings.json');
|
|
40
|
-
var monitorAgent = null;
|
|
41
|
-
if (serverConfig['ROOT_URL'] !== 'http://localhost:4200') {
|
|
42
|
-
var appmetrics = require('appmetrics');
|
|
43
|
-
appmetrics.configure({
|
|
44
|
-
mqtt: 'off',
|
|
45
|
-
});
|
|
46
|
-
monitorAgent = appmetrics.monitor();
|
|
47
|
-
}
|
|
48
|
-
var index_1 = require("./index");
|
|
49
|
-
new index_1.ResolveIOServer(monitorAgent, serverConfig, [], 'ResolveIO Server Library', __dirname);
|
|
50
|
-
index_1.ResolveIOServer.connectAndRun().then(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
-
return __generator(this, function (_a) {
|
|
52
|
-
return [2 /*return*/];
|
|
53
|
-
});
|
|
54
|
-
}); });
|
|
55
|
-
|
|
1
|
+
"use strict";var __awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n.throw(e))}catch(e){i(e)}}function step(e){e.done?o(e.value):function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(i){return function(u){return function step(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(exports,"__esModule",{value:!0});var serverConfig=require("./settings.json"),monitorAgent=null;if("http://localhost:4200"!==serverConfig.ROOT_URL){var appmetrics=require("appmetrics");appmetrics.configure({mqtt:"off"}),monitorAgent=appmetrics.monitor()}var index_1=require("./index");new index_1.ResolveIOServer(monitorAgent,serverConfig,[],"ResolveIO Server Library",__dirname),index_1.ResolveIOServer.connectAndRun().then((function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))}));
|
|
56
2
|
//# sourceMappingURL=client-server-app.js.map
|
package/client-server-app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/client-server-app.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/client-server-app.ts"],"names":["serverConfig","require","monitorAgent","appmetrics","configure","mqtt","monitor","index_1","ResolveIOServer","__dirname","connectAndRun","then","__awaiter"],"mappings":"iiDAAA,IAAIA,aAAeC,QAAQ,mBACvBC,aAAe,KACnB,GAAiC,0BAA7BF,aAAuB,SAA+B,CACzD,IAAIG,WAAaF,QAAQ,cACzBE,WAAWC,UAAU,CACpBC,KAAM,QAGPH,aAAeC,WAAWG,UAG3B,IAAAC,QAAAN,QAAA,WAEA,IAAIM,QAAAC,gBAAgBN,aAAcF,aAAc,GAAI,2BAA4BS,WAChFF,QAAAC,gBAAgBE,gBAAgBC,MAAK,WAAA,OAAAC,eAAA,OAAA,OAAA,GAAA","file":"client-server-app.js","sourcesContent":["let serverConfig = require('./settings.json');\nlet monitorAgent = null;\nif (serverConfig['ROOT_URL'] !== 'http://localhost:4200') {\n\tlet appmetrics = require('appmetrics');\n\tappmetrics.configure({\n\t\tmqtt: 'off',\n\t\t// profiling: 'on'\n\t});\n\tmonitorAgent = appmetrics.monitor();\n}\n\nimport { ResolveIOServer } from './index';\n\nnew ResolveIOServer(monitorAgent, serverConfig, [], 'ResolveIO Server Library', __dirname);\nResolveIOServer.connectAndRun().then(async () => {\n\t\n});"]}
|
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppStatus = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
message: {
|
|
24
|
-
type: String
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.AppStatus = null;
|
|
28
|
-
initializeCollection();
|
|
29
|
-
function initializeCollection() {
|
|
30
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
31
|
-
var model = new mongo_manager_1.Model('app-statuses', schema, false, false, [], true, false);
|
|
32
|
-
exports.AppStatus = model.collection_main;
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
setTimeout(function () {
|
|
36
|
-
initializeCollection();
|
|
37
|
-
}, 1);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppStatus=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},message:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("app-statuses",schema,!1,!1,[],!0,!1);exports.AppStatus=e.collection_main}else setTimeout((function(){initializeCollection()}),1)}exports.AppStatus=null,initializeCollection();
|
|
41
2
|
//# sourceMappingURL=app-status.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/app-status.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/app-status.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","message","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","AppStatus","collection_main","setTimeout"],"mappings":"6FAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,QAAS,CACRR,KAAMC,SAQR,SAASQ,uBACR,GAAId,QAAAe,iBAAmBf,QAAAe,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIf,gBAAAgB,MAAsB,eAAgBf,QAAQ,GAAO,EAAO,IAAI,GAAM,GACxFgB,QAAAC,UAAYH,EAAMI,qBAGlBC,YAAW,WACVR,yBACE,GAZMK,QAAAC,UAAwC,KAEnDN","file":"app-status.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { AppStatusModel } from '../models/app-status.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tmessage: {\n\t\ttype: String\n\t}\n};\n\nexport let AppStatus: Collection<AppStatusModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<AppStatusModel>('app-statuses', schema, false, false, [], true, false);\n\t\tAppStatus = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppVersions = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
version: {
|
|
24
|
-
type: Number
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.AppVersions = null;
|
|
28
|
-
initializeCollection();
|
|
29
|
-
function initializeCollection() {
|
|
30
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
31
|
-
var model = new mongo_manager_1.Model('app-versions', schema, false, false, [], true, false);
|
|
32
|
-
exports.AppVersions = model.collection_main;
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
setTimeout(function () {
|
|
36
|
-
initializeCollection();
|
|
37
|
-
}, 1);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppVersions=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},version:{type:Number}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("app-versions",schema,!1,!1,[],!0,!1);exports.AppVersions=e.collection_main}else setTimeout((function(){initializeCollection()}),1)}exports.AppVersions=null,initializeCollection();
|
|
41
2
|
//# sourceMappingURL=app-version.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/app-version.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/app-version.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","version","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","AppVersions","collection_main","setTimeout"],"mappings":"+FAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,QAAS,CACRR,KAAMI,SAQR,SAASK,uBACR,GAAId,QAAAe,iBAAmBf,QAAAe,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIf,gBAAAgB,MAAuB,eAAgBf,QAAQ,GAAO,EAAO,IAAI,GAAM,GACzFgB,QAAAC,YAAcH,EAAMI,qBAGpBC,YAAW,WACVR,yBACE,GAZMK,QAAAC,YAA2C,KAEtDN","file":"app-version.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { AppVersionModel } from '../models/app-version.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true \n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tversion: {\n\t\ttype: Number\n\t}\n};\n\nexport let AppVersions: Collection<AppVersionModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<AppVersionModel>('app-versions', schema, false, false, [], true, false);\n\t\tAppVersions = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Counters = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
type: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
count: {
|
|
27
|
-
type: Number
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.Counters = null;
|
|
31
|
-
initializeCollection();
|
|
32
|
-
function initializeCollection() {
|
|
33
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
34
|
-
var model = new mongo_manager_1.Model('counters', schema, false, false, [], true, false);
|
|
35
|
-
exports.Counters = model.collection_main;
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
setTimeout(function () {
|
|
39
|
-
initializeCollection();
|
|
40
|
-
}, 1);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Counters=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},type:{type:String},count:{type:Number}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("counters",schema,!1,!1,[],!0,!1);exports.Counters=e.collection_main}else setTimeout((function(){initializeCollection()}),1)}exports.Counters=null,initializeCollection();
|
|
44
2
|
//# sourceMappingURL=counter.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/counter.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/counter.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","count","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","Counters","collection_main","setTimeout"],"mappings":"4FAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXF,KAAM,CACLA,KAAMC,QAEPO,MAAO,CACNR,KAAMI,SAQR,SAASK,uBACR,GAAId,QAAAe,iBAAmBf,QAAAe,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIf,gBAAAgB,MAAoB,WAAYf,QAAQ,GAAO,EAAO,IAAI,GAAM,GAClFgB,QAAAC,SAAWH,EAAMI,qBAGjBC,YAAW,WACVR,yBACE,GAZMK,QAAAC,SAAqC,KAEhDN","file":"counter.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { CounterModel } from '../models/counter.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true \n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tcount: {\n\t\ttype: Number\n\t}\n};\n\nexport let Counters: Collection<CounterModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<CounterModel>('counters', schema, false, false, [], true, false);\n\t\tCounters = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,72 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CronJobHistory = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
name: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
reoccuring: {
|
|
27
|
-
type: Boolean
|
|
28
|
-
},
|
|
29
|
-
time_to_run: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
method_name: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
last_run: {
|
|
36
|
-
type: Date
|
|
37
|
-
},
|
|
38
|
-
next_run: {
|
|
39
|
-
type: Date
|
|
40
|
-
},
|
|
41
|
-
id_cronjob: {
|
|
42
|
-
type: String
|
|
43
|
-
},
|
|
44
|
-
passed: {
|
|
45
|
-
type: Boolean
|
|
46
|
-
},
|
|
47
|
-
error: {
|
|
48
|
-
type: String
|
|
49
|
-
},
|
|
50
|
-
start_time: {
|
|
51
|
-
type: Date
|
|
52
|
-
},
|
|
53
|
-
end_time: {
|
|
54
|
-
type: Date
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
exports.CronJobHistory = null;
|
|
58
|
-
initializeCollection();
|
|
59
|
-
function initializeCollection() {
|
|
60
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
61
|
-
var model = new mongo_manager_1.Model('cron-job-histories', schema, false, false, [], true, false);
|
|
62
|
-
exports.CronJobHistory = model.collection_main;
|
|
63
|
-
exports.CronJobHistory.createIndex({ createdAt: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 7 });
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
setTimeout(function () {
|
|
67
|
-
initializeCollection();
|
|
68
|
-
}, 1);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CronJobHistory=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},name:{type:String},reoccuring:{type:Boolean},time_to_run:{type:String},method_name:{type:String},last_run:{type:Date},next_run:{type:Date},id_cronjob:{type:String},passed:{type:Boolean},error:{type:String},start_time:{type:Date},end_time:{type:Date}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("cron-job-histories",schema,!1,!1,[],!0,!1);exports.CronJobHistory=e.collection_main,exports.CronJobHistory.createIndex({createdAt:1},{expireAfterSeconds:604800})}else setTimeout((function(){initializeCollection()}),1)}exports.CronJobHistory=null,initializeCollection();
|
|
72
2
|
//# sourceMappingURL=cron-job-history.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/cron-job-history.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/cron-job-history.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","reoccuring","Boolean","time_to_run","method_name","last_run","next_run","id_cronjob","passed","error","start_time","end_time","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","CronJobHistory","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"kGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMC,QAEPQ,WAAY,CACXT,KAAMU,SAEPC,YAAa,CACZX,KAAMC,QAEPW,YAAa,CACZZ,KAAMC,QAEPY,SAAU,CACTb,KAAMM,MAEPQ,SAAU,CACTd,KAAMM,MAEPS,WAAY,CACXf,KAAMC,QAEPe,OAAQ,CACPhB,KAAMU,SAEPO,MAAO,CACNjB,KAAMC,QAEPiB,WAAY,CACXlB,KAAMM,MAEPa,SAAU,CACTnB,KAAMM,OAQR,SAASc,uBACR,GAAIzB,QAAA0B,iBAAmB1B,QAAA0B,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAI1B,gBAAA2B,MAA2B,qBAAsB1B,QAAQ,GAAO,EAAO,IAAI,GAAM,GACnG2B,QAAAC,eAAiBH,EAAMI,gBACvBF,QAAAC,eAAeE,YAAY,CAACrB,UAAW,GAAI,CAACsB,mBAAoB,cAGhEC,YAAW,WACVV,yBACE,GAbMK,QAAAC,eAAkD,KAE7DN","file":"cron-job-history.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { CronJobHistoryModel } from '../models/cron-job-history.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\treoccuring: {\n\t\ttype: Boolean\n\t},\n\ttime_to_run: {\n\t\ttype: String\n\t},\n\tmethod_name: {\n\t\ttype: String\n\t},\n\tlast_run: {\n\t\ttype: Date\n\t},\n\tnext_run: {\n\t\ttype: Date\n\t},\n\tid_cronjob: {\n\t\ttype: String\n\t},\n\tpassed: {\n\t\ttype: Boolean\n\t},\n\terror: {\n\t\ttype: String\n\t},\n\tstart_time: {\n\t\ttype: Date\n\t},\n\tend_time: {\n\t\ttype: Date\n\t}\n};\n\nexport let CronJobHistory: Collection<CronJobHistoryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<CronJobHistoryModel>('cron-job-histories', schema, false, false, [], true, false);\n\t\tCronJobHistory = model.collection_main;\n\t\tCronJobHistory.createIndex({createdAt: 1}, {expireAfterSeconds: 60 * 60 * 24 * 7});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,75 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CronJobs = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
name: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
repeat: {
|
|
27
|
-
type: Boolean
|
|
28
|
-
},
|
|
29
|
-
time_to_run: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
method_run: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
method_run_data: {
|
|
36
|
-
type: Object,
|
|
37
|
-
blackbox: true,
|
|
38
|
-
optional: true
|
|
39
|
-
},
|
|
40
|
-
method_complete: {
|
|
41
|
-
type: String,
|
|
42
|
-
optional: true
|
|
43
|
-
},
|
|
44
|
-
method_complete_data: {
|
|
45
|
-
type: Object,
|
|
46
|
-
blackbox: true,
|
|
47
|
-
optional: true
|
|
48
|
-
},
|
|
49
|
-
running: {
|
|
50
|
-
type: Boolean
|
|
51
|
-
},
|
|
52
|
-
timezone: {
|
|
53
|
-
type: String,
|
|
54
|
-
optional: true
|
|
55
|
-
},
|
|
56
|
-
next_run: {
|
|
57
|
-
type: Date,
|
|
58
|
-
optional: true
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
exports.CronJobs = null;
|
|
62
|
-
initializeCollection();
|
|
63
|
-
function initializeCollection() {
|
|
64
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
65
|
-
var model = new mongo_manager_1.Model('cron-jobs', schema, false, false, [], true, false);
|
|
66
|
-
exports.CronJobs = model.collection_main;
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
setTimeout(function () {
|
|
70
|
-
initializeCollection();
|
|
71
|
-
}, 1);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CronJobs=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},name:{type:String},repeat:{type:Boolean},time_to_run:{type:String},method_run:{type:String},method_run_data:{type:Object,blackbox:!0,optional:!0},method_complete:{type:String,optional:!0},method_complete_data:{type:Object,blackbox:!0,optional:!0},running:{type:Boolean},timezone:{type:String,optional:!0},next_run:{type:Date,optional:!0}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("cron-jobs",schema,!1,!1,[],!0,!1);exports.CronJobs=e.collection_main}else setTimeout((function(){initializeCollection()}),1)}exports.CronJobs=null,initializeCollection();
|
|
75
2
|
//# sourceMappingURL=cron-job.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/cron-job.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/cron-job.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","repeat","Boolean","time_to_run","method_run","method_run_data","Object","blackbox","method_complete","method_complete_data","running","timezone","next_run","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","CronJobs","collection_main","setTimeout"],"mappings":"4FAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMC,QAEPQ,OAAQ,CACPT,KAAMU,SAEPC,YAAa,CACZX,KAAMC,QAEPW,WAAY,CACXZ,KAAMC,QAEPY,gBAAiB,CAChBb,KAAMc,OACNC,UAAU,EACVb,UAAU,GAEXc,gBAAiB,CAChBhB,KAAMC,OACNC,UAAU,GAEXe,qBAAsB,CACrBjB,KAAMc,OACNC,UAAU,EACVb,UAAU,GAEXgB,QAAS,CACRlB,KAAMU,SAEPS,SAAU,CACTnB,KAAMC,OACNC,UAAU,GAEXkB,SAAU,CACTpB,KAAMM,KACNJ,UAAU,IAQZ,SAASmB,uBACR,GAAI1B,QAAA2B,iBAAmB3B,QAAA2B,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAI3B,gBAAA4B,MAAoB,YAAa3B,QAAQ,GAAO,EAAO,IAAI,GAAM,GACnF4B,QAAAC,SAAWH,EAAMI,qBAGjBC,YAAW,WACVR,yBACE,GAZMK,QAAAC,SAAqC,KAEhDN","file":"cron-job.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { CronJobModel } from '../models/cron-job.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\trepeat: {\n\t\ttype: Boolean\n\t},\n\ttime_to_run: {\n\t\ttype: String\n\t},\n\tmethod_run: {\n\t\ttype: String\n\t},\n\tmethod_run_data: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t},\n\tmethod_complete: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmethod_complete_data: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t},\n\trunning: {\n\t\ttype: Boolean\n\t},\n\ttimezone: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tnext_run: {\n\t\ttype: Date,\n\t\toptional: true\n\t}\n};\n\nexport let CronJobs: Collection<CronJobModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<CronJobModel>('cron-jobs', schema, false, false, [], true, false);\n\t\tCronJobs = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,56 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmailHistories = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
date: {
|
|
24
|
-
type: Date
|
|
25
|
-
},
|
|
26
|
-
id_user: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
user: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
email: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
success: {
|
|
36
|
-
type: Boolean
|
|
37
|
-
},
|
|
38
|
-
verified: {
|
|
39
|
-
type: Boolean
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
exports.EmailHistories = null;
|
|
43
|
-
initializeCollection();
|
|
44
|
-
function initializeCollection() {
|
|
45
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
46
|
-
var model = new mongo_manager_1.Model('email-histories', schema, false, false, [], true, false);
|
|
47
|
-
exports.EmailHistories = model.collection_main;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
setTimeout(function () {
|
|
51
|
-
initializeCollection();
|
|
52
|
-
}, 1);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EmailHistories=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},date:{type:Date},id_user:{type:String},user:{type:String},email:{type:String},success:{type:Boolean},verified:{type:Boolean}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("email-histories",schema,!1,!1,[],!0,!1);exports.EmailHistories=e.collection_main}else setTimeout((function(){initializeCollection()}),1)}exports.EmailHistories=null,initializeCollection();
|
|
56
2
|
//# sourceMappingURL=email-history.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/email-history.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/email-history.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","id_user","user","email","success","Boolean","verified","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","EmailHistories","collection_main","setTimeout"],"mappings":"kGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMM,MAEPG,QAAS,CACRT,KAAMC,QAEPS,KAAM,CACLV,KAAMC,QAEPU,MAAO,CACNX,KAAMC,QAEPW,QAAS,CACRZ,KAAMa,SAEPC,SAAU,CACTd,KAAMa,UAQR,SAASE,uBACR,GAAIpB,QAAAqB,iBAAmBrB,QAAAqB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIrB,gBAAAsB,MAAyB,kBAAmBrB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC9FsB,QAAAC,eAAiBH,EAAMI,qBAGvBC,YAAW,WACVR,yBACE,GAZMK,QAAAC,eAAgD,KAE3DN","file":"email-history.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { EmailHistoryModel } from '../models/email-history.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\temail: {\n\t\ttype: String\n\t},\n\tsuccess: {\n\t\ttype: Boolean\n\t},\n\tverified: {\n\t\ttype: Boolean\n\t}\n};\n\nexport let EmailHistories: Collection<EmailHistoryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<EmailHistoryModel>('email-histories', schema, false, false, [], true, false);\n\t\tEmailHistories = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,51 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmailVerifies = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
date: {
|
|
24
|
-
type: Date
|
|
25
|
-
},
|
|
26
|
-
id_user: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
user: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
email: {
|
|
33
|
-
type: String
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.EmailVerifies = null;
|
|
37
|
-
initializeCollection();
|
|
38
|
-
function initializeCollection() {
|
|
39
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
40
|
-
var model = new mongo_manager_1.Model('email-verifies', schema, false, false, [], true, false);
|
|
41
|
-
exports.EmailVerifies = model.collection_main;
|
|
42
|
-
exports.EmailVerifies.createIndex({ email: 1 });
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
setTimeout(function () {
|
|
46
|
-
initializeCollection();
|
|
47
|
-
}, 1);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EmailVerifies=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},date:{type:Date},id_user:{type:String},user:{type:String},email:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("email-verifies",schema,!1,!1,[],!0,!1);exports.EmailVerifies=e.collection_main,exports.EmailVerifies.createIndex({email:1})}else setTimeout((function(){initializeCollection()}),1)}exports.EmailVerifies=null,initializeCollection();
|
|
51
2
|
//# sourceMappingURL=email-verified.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/email-verified.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/email-verified.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","id_user","user","email","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","EmailVerifies","collection_main","createIndex","setTimeout"],"mappings":"iGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMM,MAEPG,QAAS,CACRT,KAAMC,QAEPS,KAAM,CACLV,KAAMC,QAEPU,MAAO,CACNX,KAAMC,SAQR,SAASW,uBACR,GAAIjB,QAAAkB,iBAAmBlB,QAAAkB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIlB,gBAAAmB,MAA0B,iBAAkBlB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC9FmB,QAAAC,cAAgBH,EAAMI,gBACtBF,QAAAC,cAAcE,YAAY,CAACT,MAAO,SAGlCU,YAAW,WACVT,yBACE,GAbMK,QAAAC,cAAgD,KAE3DN","file":"email-verified.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { EmailVerifiedModel } from '../models/email-verified.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\temail: {\n\t\ttype: String\n\t}\n};\n\nexport let EmailVerifies: Collection<EmailVerifiedModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<EmailVerifiedModel>('email-verifies', schema, false, false, [], true, false);\n\t\tEmailVerifies = model.collection_main;\n\t\tEmailVerifies.createIndex({email: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|