@resolveio/server-lib 9.0.34 → 9.0.35
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 +48 -7
- package/client-server-app.js.map +1 -1
- package/collections/app-status.collection.js +11 -8
- package/collections/app-status.collection.js.map +1 -1
- package/collections/app-version.collection.js +11 -8
- package/collections/app-version.collection.js.map +1 -1
- package/collections/counter.collection.js +11 -8
- package/collections/counter.collection.js.map +1 -1
- package/collections/cron-job-history.collection.js +12 -9
- package/collections/cron-job-history.collection.js.map +1 -1
- package/collections/cron-job.collection.js +11 -8
- package/collections/cron-job.collection.js.map +1 -1
- package/collections/email-history.collection.js +11 -8
- package/collections/email-history.collection.js.map +1 -1
- package/collections/email-verified.collection.js +12 -9
- package/collections/email-verified.collection.js.map +1 -1
- package/collections/file.collection.js +11 -8
- package/collections/file.collection.js.map +1 -1
- package/collections/flag.collection.js +11 -8
- package/collections/flag.collection.js.map +1 -1
- package/collections/log-method-latency.collection.js +14 -11
- package/collections/log-method-latency.collection.js.map +1 -1
- package/collections/log-subscription.collection.js +16 -13
- package/collections/log-subscription.collection.js.map +1 -1
- package/collections/log.collection.js +19 -16
- package/collections/log.collection.js.map +1 -1
- package/collections/logged-in-users.collection.js +12 -9
- package/collections/logged-in-users.collection.js.map +1 -1
- package/collections/method-call.collection.js +13 -10
- package/collections/method-call.collection.js.map +1 -1
- package/collections/method-response.collection.js +13 -10
- package/collections/method-response.collection.js.map +1 -1
- package/collections/monitor-cpu.collection.js +16 -13
- package/collections/monitor-cpu.collection.js.map +1 -1
- package/collections/monitor-https-inbound.collection.js +16 -13
- package/collections/monitor-https-inbound.collection.js.map +1 -1
- package/collections/monitor-https-outbound.collection.js +18 -15
- package/collections/monitor-https-outbound.collection.js.map +1 -1
- package/collections/monitor-memory.collection.js +15 -12
- package/collections/monitor-memory.collection.js.map +1 -1
- package/collections/monitor-mongo.collection.js +15 -12
- package/collections/monitor-mongo.collection.js.map +1 -1
- package/collections/notification.collection.js +11 -8
- package/collections/notification.collection.js.map +1 -1
- package/collections/queue-flag.collection.js +12 -9
- package/collections/queue-flag.collection.js.map +1 -1
- package/collections/queue-method.collection.js +12 -9
- package/collections/queue-method.collection.js.map +1 -1
- package/collections/queue-response.collection.js +12 -9
- package/collections/queue-response.collection.js.map +1 -1
- package/collections/report-builder-dashboard-builder.collection.js +13 -10
- package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
- package/collections/report-builder-library.collection.js +14 -11
- package/collections/report-builder-library.collection.js.map +1 -1
- package/collections/report-builder-report.collection.js +14 -11
- package/collections/report-builder-report.collection.js.map +1 -1
- package/collections/user-group.collection.js +14 -11
- package/collections/user-group.collection.js.map +1 -1
- package/collections/user-guide.collection.js +11 -8
- package/collections/user-guide.collection.js.map +1 -1
- package/collections/user.collection.js +15 -12
- package/collections/user.collection.js.map +1 -1
- package/cron/cron.js +25 -25
- package/cron/cron.js.map +1 -1
- package/fixtures/cron-jobs.js +80 -30
- package/fixtures/cron-jobs.js.map +1 -1
- package/fixtures/init.js +59 -9
- package/fixtures/init.js.map +1 -1
- package/http/auth.js +460 -344
- package/http/auth.js.map +1 -1
- package/http/health.js +5 -1
- package/http/health.js.map +1 -1
- package/http/home.js +11 -7
- package/http/home.js.map +1 -1
- package/index.js +98 -36
- package/index.js.map +1 -1
- package/managers/cron.manager.js +157 -78
- package/managers/cron.manager.js.map +1 -1
- package/managers/method.manager.js +302 -314
- package/managers/method.manager.js.map +1 -1
- package/managers/mongo.manager.js +1001 -739
- package/managers/mongo.manager.js.map +1 -1
- package/managers/monitor.manager.js +254 -171
- package/managers/monitor.manager.js.map +1 -1
- package/managers/queue-method.manager.js +166 -69
- package/managers/queue-method.manager.js.map +1 -1
- package/managers/subscription.manager.js +714 -515
- package/managers/subscription.manager.js.map +1 -1
- package/methods/accounts.js +183 -111
- package/methods/accounts.js.map +1 -1
- package/methods/aws.js +262 -156
- package/methods/aws.js.map +1 -1
- package/methods/cloudconvert.js +180 -100
- package/methods/cloudconvert.js.map +1 -1
- package/methods/collections.js +110 -103
- package/methods/collections.js.map +1 -1
- package/methods/counters.js +79 -29
- package/methods/counters.js.map +1 -1
- package/methods/cron-jobs.js +884 -819
- package/methods/cron-jobs.js.map +1 -1
- package/methods/flags.js +5 -1
- package/methods/flags.js.map +1 -1
- package/methods/logs.js +313 -258
- package/methods/logs.js.map +1 -1
- package/methods/monitor.js +348 -289
- package/methods/monitor.js.map +1 -1
- package/methods/pdf.js +340 -341
- package/methods/pdf.js.map +1 -1
- package/methods/report-builder.js +657 -565
- package/methods/report-builder.js.map +1 -1
- package/methods/support.js +185 -67
- package/methods/support.js.map +1 -1
- package/models/app-status.model.js +2 -1
- package/models/app-version.model.js +2 -1
- package/models/billing-logged-in-users.model.js +2 -1
- package/models/collection-document.model.js +2 -1
- package/models/counter.model.js +2 -1
- package/models/cron-job-history.model.js +2 -1
- package/models/cron-job.model.js +2 -1
- package/models/dialog.model.js +2 -1
- package/models/email-history.model.js +2 -1
- package/models/email-verified.model.js +2 -1
- package/models/file.model.js +2 -1
- package/models/flag.model.js +2 -1
- package/models/log-method-latency.model.js +2 -1
- package/models/log-subscription.model.js +2 -1
- package/models/log.model.js +2 -1
- package/models/logged-in-users.model.js +2 -1
- package/models/method-call.model.js +2 -1
- package/models/method-response.model.js +2 -1
- package/models/method.model.js +2 -1
- package/models/monitor-cpu.model.js +2 -1
- package/models/monitor-https-inbound.model.js +2 -1
- package/models/monitor-https-outbound.model.js +2 -1
- package/models/monitor-memory.model.js +2 -1
- package/models/monitor-mongo.model.js +2 -1
- package/models/notification.model.js +2 -1
- package/models/pagination.model.js +5 -2
- package/models/pagination.model.js.map +1 -1
- package/models/permission.model.js +2 -1
- package/models/queue-method.model.js +2 -1
- package/models/queue-response.model.js +2 -1
- package/models/report-builder-dashboard-builder.model.js +2 -1
- package/models/report-builder-library.model.js +2 -1
- package/models/report-builder-report.model.js +2 -1
- package/models/report-builder.model.js +2 -1
- package/models/select-data-label.model.js +2 -1
- package/models/server-response.model.js +2 -1
- package/models/subscription.model.js +2 -1
- package/models/support-ticket.model.js +2 -1
- package/models/user-group.model.js +2 -1
- package/models/user-guide.model.js +2 -1
- package/models/user.model.js +2 -1
- package/package.json +1 -1
- package/public_api.js +82 -70
- package/public_api.js.map +1 -1
- package/publications/app-status.js +8 -4
- package/publications/app-status.js.map +1 -1
- package/publications/app-version.js +8 -4
- package/publications/app-version.js.map +1 -1
- package/publications/cron-jobs.js +13 -9
- package/publications/cron-jobs.js.map +1 -1
- package/publications/files.js +15 -11
- package/publications/files.js.map +1 -1
- package/publications/flags.js +11 -7
- package/publications/flags.js.map +1 -1
- package/publications/logs.js +35 -31
- package/publications/logs.js.map +1 -1
- package/publications/method-calls.js +8 -4
- package/publications/method-calls.js.map +1 -1
- package/publications/method-responses.js +8 -4
- package/publications/method-responses.js.map +1 -1
- package/publications/notifications.js +8 -4
- package/publications/notifications.js.map +1 -1
- package/publications/report-builder-dashboard-builders.js +12 -8
- package/publications/report-builder-dashboard-builders.js.map +1 -1
- package/publications/report-builder-libraries.js +66 -16
- package/publications/report-builder-libraries.js.map +1 -1
- package/publications/report-builder-reports.js +21 -17
- package/publications/report-builder-reports.js.map +1 -1
- package/publications/super-admin.js +7 -3
- package/publications/super-admin.js.map +1 -1
- package/publications/user-groups.js +8 -4
- package/publications/user-groups.js.map +1 -1
- package/publications/user-guides.js +8 -4
- package/publications/user-guides.js.map +1 -1
- package/server-app.js +534 -393
- package/server-app.js.map +1 -1
- package/util/common.js +92 -55
- package/util/common.js.map +1 -1
- package/util/schema-report-builder.js +134 -76
- package/util/schema-report-builder.js.map +1 -1
package/methods/support.js
CHANGED
|
@@ -1,78 +1,169 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
exports.loadSupportMethods = void 0;
|
|
40
|
+
var simpl_schema_1 = require("simpl-schema");
|
|
41
|
+
var bent = require("bent");
|
|
42
|
+
function loadSupportMethods(methodManager) {
|
|
4
43
|
methodManager.methods({
|
|
5
44
|
supportCreateBillingUser: {
|
|
6
|
-
check: new
|
|
45
|
+
check: new simpl_schema_1.default({
|
|
7
46
|
user: {
|
|
8
47
|
type: Object,
|
|
9
48
|
blackbox: true
|
|
10
49
|
}
|
|
11
50
|
}),
|
|
12
51
|
function: function (user) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
52
|
+
var _this = this;
|
|
53
|
+
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
54
|
+
var request, body, error_1;
|
|
55
|
+
return __generator(this, function (_a) {
|
|
56
|
+
switch (_a.label) {
|
|
57
|
+
case 0:
|
|
58
|
+
request = bent('https://backend.resolveio.com/api/support/billing-user', 'POST', 'json', 200);
|
|
59
|
+
_a.label = 1;
|
|
60
|
+
case 1:
|
|
61
|
+
_a.trys.push([1, 3, , 4]);
|
|
62
|
+
return [4 /*yield*/, request('', user)];
|
|
63
|
+
case 2:
|
|
64
|
+
body = _a.sent();
|
|
65
|
+
resolve(body.result);
|
|
66
|
+
return [3 /*break*/, 4];
|
|
67
|
+
case 3:
|
|
68
|
+
error_1 = _a.sent();
|
|
69
|
+
reject(error_1);
|
|
70
|
+
return [3 /*break*/, 4];
|
|
71
|
+
case 4: return [2 /*return*/];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}); });
|
|
23
75
|
}
|
|
24
76
|
},
|
|
25
77
|
supportGetSupportTicketWithId: {
|
|
26
|
-
check: new
|
|
78
|
+
check: new simpl_schema_1.default({
|
|
27
79
|
id_support_ticket: {
|
|
28
80
|
type: String
|
|
29
81
|
}
|
|
30
82
|
}),
|
|
31
83
|
function: function (id_support_ticket) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
84
|
+
var _this = this;
|
|
85
|
+
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
86
|
+
var request, body, error_2;
|
|
87
|
+
return __generator(this, function (_a) {
|
|
88
|
+
switch (_a.label) {
|
|
89
|
+
case 0:
|
|
90
|
+
request = bent('https://backend.resolveio.com/api/support/supportTicketWithId', 'POST', 'json', 200);
|
|
91
|
+
_a.label = 1;
|
|
92
|
+
case 1:
|
|
93
|
+
_a.trys.push([1, 3, , 4]);
|
|
94
|
+
return [4 /*yield*/, request('', { id_support_ticket: id_support_ticket })];
|
|
95
|
+
case 2:
|
|
96
|
+
body = _a.sent();
|
|
97
|
+
resolve(body.result);
|
|
98
|
+
return [3 /*break*/, 4];
|
|
99
|
+
case 3:
|
|
100
|
+
error_2 = _a.sent();
|
|
101
|
+
reject(error_2);
|
|
102
|
+
return [3 /*break*/, 4];
|
|
103
|
+
case 4: return [2 /*return*/];
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}); });
|
|
42
107
|
}
|
|
43
108
|
},
|
|
44
109
|
supportInsertSupportTicket: {
|
|
45
110
|
skipValidation: true,
|
|
46
111
|
function: function (supportTicket) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
112
|
+
var _this = this;
|
|
113
|
+
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
114
|
+
var request, body, error_3;
|
|
115
|
+
return __generator(this, function (_a) {
|
|
116
|
+
switch (_a.label) {
|
|
117
|
+
case 0:
|
|
118
|
+
request = bent('https://backend.resolveio.com/api/support/supportInsertTicket', 'POST', 'json', 200);
|
|
119
|
+
_a.label = 1;
|
|
120
|
+
case 1:
|
|
121
|
+
_a.trys.push([1, 3, , 4]);
|
|
122
|
+
return [4 /*yield*/, request('', supportTicket)];
|
|
123
|
+
case 2:
|
|
124
|
+
body = _a.sent();
|
|
125
|
+
resolve(body.result);
|
|
126
|
+
return [3 /*break*/, 4];
|
|
127
|
+
case 3:
|
|
128
|
+
error_3 = _a.sent();
|
|
129
|
+
reject(error_3);
|
|
130
|
+
return [3 /*break*/, 4];
|
|
131
|
+
case 4: return [2 /*return*/];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}); });
|
|
57
135
|
}
|
|
58
136
|
},
|
|
59
137
|
supportUpdateSupportTicket: {
|
|
60
138
|
skipValidation: true,
|
|
61
139
|
function: function (supportTicket) {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
140
|
+
var _this = this;
|
|
141
|
+
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
142
|
+
var request, body, error_4;
|
|
143
|
+
return __generator(this, function (_a) {
|
|
144
|
+
switch (_a.label) {
|
|
145
|
+
case 0:
|
|
146
|
+
request = bent('https://backend.resolveio.com/api/support/supportUpdateTicket', 'POST', 'json', 200);
|
|
147
|
+
_a.label = 1;
|
|
148
|
+
case 1:
|
|
149
|
+
_a.trys.push([1, 3, , 4]);
|
|
150
|
+
return [4 /*yield*/, request('', supportTicket)];
|
|
151
|
+
case 2:
|
|
152
|
+
body = _a.sent();
|
|
153
|
+
resolve(body.result);
|
|
154
|
+
return [3 /*break*/, 4];
|
|
155
|
+
case 3:
|
|
156
|
+
error_4 = _a.sent();
|
|
157
|
+
reject(error_4);
|
|
158
|
+
return [3 /*break*/, 4];
|
|
159
|
+
case 4: return [2 /*return*/];
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}); });
|
|
72
163
|
}
|
|
73
164
|
},
|
|
74
165
|
supportticketsWithOptions: {
|
|
75
|
-
check: new
|
|
166
|
+
check: new simpl_schema_1.default({
|
|
76
167
|
options: {
|
|
77
168
|
type: Object
|
|
78
169
|
},
|
|
@@ -102,20 +193,33 @@ export function loadSupportMethods(methodManager) {
|
|
|
102
193
|
}
|
|
103
194
|
}),
|
|
104
195
|
function: function (options, searchString, filters) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
196
|
+
var _this = this;
|
|
197
|
+
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
198
|
+
var request, body, error_5;
|
|
199
|
+
return __generator(this, function (_a) {
|
|
200
|
+
switch (_a.label) {
|
|
201
|
+
case 0:
|
|
202
|
+
request = bent('https://backend.resolveio.com/api/support/supportticketsWithOptions', 'POST', 'json', 200);
|
|
203
|
+
_a.label = 1;
|
|
204
|
+
case 1:
|
|
205
|
+
_a.trys.push([1, 3, , 4]);
|
|
206
|
+
return [4 /*yield*/, request('', [options, searchString, filters])];
|
|
207
|
+
case 2:
|
|
208
|
+
body = _a.sent();
|
|
209
|
+
resolve(body.result);
|
|
210
|
+
return [3 /*break*/, 4];
|
|
211
|
+
case 3:
|
|
212
|
+
error_5 = _a.sent();
|
|
213
|
+
reject(error_5);
|
|
214
|
+
return [3 /*break*/, 4];
|
|
215
|
+
case 4: return [2 /*return*/];
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}); });
|
|
115
219
|
}
|
|
116
220
|
},
|
|
117
221
|
supportticketCount: {
|
|
118
|
-
check: new
|
|
222
|
+
check: new simpl_schema_1.default({
|
|
119
223
|
searchString: {
|
|
120
224
|
type: String
|
|
121
225
|
},
|
|
@@ -128,19 +232,33 @@ export function loadSupportMethods(methodManager) {
|
|
|
128
232
|
}
|
|
129
233
|
}),
|
|
130
234
|
function: function (searchString, filters) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
235
|
+
var _this = this;
|
|
236
|
+
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
237
|
+
var request, body, error_6;
|
|
238
|
+
return __generator(this, function (_a) {
|
|
239
|
+
switch (_a.label) {
|
|
240
|
+
case 0:
|
|
241
|
+
request = bent('https://backend.resolveio.com/api/support/supportCountTickets', 'POST', 'json', 200);
|
|
242
|
+
_a.label = 1;
|
|
243
|
+
case 1:
|
|
244
|
+
_a.trys.push([1, 3, , 4]);
|
|
245
|
+
return [4 /*yield*/, request('', [searchString, filters])];
|
|
246
|
+
case 2:
|
|
247
|
+
body = _a.sent();
|
|
248
|
+
resolve(body.result);
|
|
249
|
+
return [3 /*break*/, 4];
|
|
250
|
+
case 3:
|
|
251
|
+
error_6 = _a.sent();
|
|
252
|
+
reject(error_6);
|
|
253
|
+
return [3 /*break*/, 4];
|
|
254
|
+
case 4: return [2 /*return*/];
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}); });
|
|
141
258
|
}
|
|
142
259
|
}
|
|
143
260
|
});
|
|
144
261
|
}
|
|
262
|
+
exports.loadSupportMethods = loadSupportMethods;
|
|
145
263
|
|
|
146
264
|
//# sourceMappingURL=support.js.map
|
package/methods/support.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/methods/support.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"sources":["../../src/methods/support.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAwC;AAExC,2BAA6B;AAE7B,SAAgB,kBAAkB,CAAC,aAA4B;IAC9D,aAAa,CAAC,OAAO,CAAC;QACf,wBAAwB,EAAE;YACzB,KAAK,EAAE,IAAI,sBAAY,CAAC;gBAC7B,IAAI,EAAE;oBACL,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE,IAAI;iBACd;aACQ,CAAC;YACF,QAAQ,EAAE,UAAS,IAAI;gBAAb,iBAaT;gBAZG,OAAO,IAAI,OAAO,CAAC,UAAO,OAAO,EAAE,MAAM;;;;;gCAC/B,OAAO,GAAG,IAAI,CAAC,wDAAwD,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;;;;gCAGrF,qBAAM,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,EAAA;;gCAA9B,IAAI,GAAG,SAAuB;gCAElC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;;;;gCAGrB,MAAM,CAAC,OAAK,CAAC,CAAC;;;;;qBAErB,CAAC,CAAC;YACP,CAAC;SACV;QACD,6BAA6B,EAAE;YACxB,KAAK,EAAE,IAAI,sBAAY,CAAC;gBAC7B,iBAAiB,EAAE;oBAClB,IAAI,EAAE,MAAM;iBACZ;aACQ,CAAC;YACF,QAAQ,EAAE,UAAS,iBAAiB;gBAA1B,iBAaT;gBAZG,OAAO,IAAI,OAAO,CAAC,UAAO,OAAO,EAAE,MAAM;;;;;gCAC/B,OAAO,GAAG,IAAI,CAAC,+DAA+D,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;;;;gCAG5F,qBAAM,OAAO,CAAC,EAAE,EAAE,EAAC,iBAAiB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AAO,CAAC,UAAO,OAAO,EAAE,MAAM;;;;;gCAC/B,OAAO,GAAG,IAAI,CAAC,+DAA+D,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;;;;gCAG5F,qBAAM,OAAO,CAAC,EAAE,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,EAAA;;gCAAjD,IAAI,GAAG,SAA0C;gCAErD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;;;;gCAGrB,MAAM,CAAC,OAAK,CAAC,CAAC;;;;;qBAErB,CAAC,CAAC;YACP,CAAC;SACV;KACD,CAAC,CAAC;AACJ,CAAC;AAzJD,gDAyJC","file":"support.js","sourcesContent":["import SimpleSchema from 'simpl-schema';\nimport { MethodManager } from '../managers/method.manager';\nimport * as bent from 'bent';\n\nexport function loadSupportMethods(methodManager: MethodManager) {\n\tmethodManager.methods({\n supportCreateBillingUser: {\n \tcheck: new SimpleSchema({\n\t\t\t\tuser: {\n\t\t\t\t\ttype: Object,\n\t\t\t\t\tblackbox: true\n\t\t\t\t}\n }),\n function: function(user) {\n return new Promise(async (resolve, reject) => {\n const request = bent('https://backend.resolveio.com/api/support/billing-user', 'POST', 'json', 200);\n\n try {\n let body = await request('', user);\n\n resolve(body.result);\n }\n catch(error) {\n reject(error);\n }\n });\n }\n\t\t},\n\t\tsupportGetSupportTicketWithId: {\n \tcheck: new SimpleSchema({\n\t\t\t\tid_support_ticket: {\n\t\t\t\t\ttype: String\n\t\t\t\t}\n }),\n function: function(id_support_ticket) {\n return new Promise(async (resolve, reject) => {\n const request = bent('https://backend.resolveio.com/api/support/supportTicketWithId', 'POST', 'json', 200);\n\n try {\n let body = await request('', {id_support_ticket: id_support_ticket});\n\n resolve(body.result);\n }\n catch(error) {\n reject(error);\n }\n });\n }\n\t\t},\n\t\tsupportInsertSupportTicket: {\n \tskipValidation: true,\n function: function(supportTicket) {\n return new Promise(async(resolve, reject) => {\n const request = bent('https://backend.resolveio.com/api/support/supportInsertTicket', 'POST', 'json', 200);\n\n try {\n let body = await request('', supportTicket);\n\n resolve(body.result);\n }\n catch(error) {\n reject(error);\n }\n });\n }\n\t\t},\n\t\tsupportUpdateSupportTicket: {\n\t\t\tskipValidation: true,\n function: function(supportTicket) {\n return new Promise(async(resolve, reject) => {\n const request = bent('https://backend.resolveio.com/api/support/supportUpdateTicket', 'POST', 'json', 200);\n\n try {\n let body = await request('', supportTicket);\n\n resolve(body.result);\n }\n catch(error) {\n reject(error);\n }\n });\n }\n\t\t},\n\t\tsupportticketsWithOptions: {\n\t\t\tcheck: new SimpleSchema({\n\t\t\t\toptions: {\n\t\t\t\t\ttype: Object\n\t\t\t\t},\n\t\t\t\t'options.limit': {\n\t\t\t\t\ttype: Number\n\t\t\t\t},\n\t\t\t\t'options.skip': {\n\t\t\t\t\ttype: Number\n\t\t\t\t},\n\t\t\t\t'options.sort': {\n\t\t\t\t\ttype: Object,\n\t\t\t\t\tblackbox: true\n\t\t\t\t},\n\t\t\t\t'options.fields': {\n\t\t\t\t\ttype: Object,\n\t\t\t\t\tblackbox: true\n\t\t\t\t},\n\t\t\t\tsearchString: {\n\t\t\t\t\ttype: String\n\t\t\t\t},\n\t\t\t\tfilters: {\n\t\t\t\t\ttype: Array\n\t\t\t\t},\n\t\t\t\t'filters.$': {\n\t\t\t\t\ttype: Object,\n\t\t\t\t\tblackbox: true\n\t\t\t\t}\n }),\n function: function(options, searchString, filters) {\n return new Promise(async(resolve, reject) => {\n const request = bent('https://backend.resolveio.com/api/support/supportticketsWithOptions', 'POST', 'json', 200);\n\n try {\n let body = await request('', [options, searchString, filters]);\n\n resolve(body.result);\n }\n catch(error) {\n reject(error);\n }\n });\n }\n\t\t},\n\t\tsupportticketCount: {\n\t\t\tcheck: new SimpleSchema({\n\t\t\t\tsearchString: {\n\t\t\t\t\ttype: String\n\t\t\t\t},\n\t\t\t\tfilters: {\n\t\t\t\t\ttype: Array\n\t\t\t\t},\n\t\t\t\t'filters.$': {\n\t\t\t\t\ttype: Object,\n\t\t\t\t\tblackbox: true\n\t\t\t\t}\n }),\n function: function(searchString, filters) {\n return new Promise(async (resolve, reject) => {\n const request = bent('https://backend.resolveio.com/api/support/supportCountTickets', 'POST', 'json', 200);\n\n try {\n let body = await request('', [searchString, filters]);\n\n resolve(body.result);\n }\n catch(error) {\n reject(error);\n }\n });\n }\n\t\t}\n\t});\n}"]}
|
package/models/counter.model.js
CHANGED
package/models/cron-job.model.js
CHANGED
package/models/dialog.model.js
CHANGED
package/models/file.model.js
CHANGED
package/models/flag.model.js
CHANGED
package/models/log.model.js
CHANGED
package/models/method.model.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaginationOptionsSchema = void 0;
|
|
4
|
+
var simpl_schema_1 = require("simpl-schema");
|
|
5
|
+
exports.PaginationOptionsSchema = new simpl_schema_1.default({
|
|
3
6
|
limit: {
|
|
4
7
|
type: Number
|
|
5
8
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/models/pagination.model.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"sources":["../../src/models/pagination.model.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AAa3B,QAAA,uBAAuB,GAAG,IAAI,sBAAY,CAAE;IACxD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACd;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACd;CACD,CAAC,CAAC","file":"pagination.model.js","sourcesContent":["import SimpleSchema from 'simpl-schema';\n\nexport interface PaginationOptions {\n\tlimit: number;\n\tskip: number;\n\tsort: {\n\t\t[key: string]: number;\n\t};\n\tfields: {\n\t\t[key: string]: number;\n\t};\n}\n\nexport const PaginationOptionsSchema = new SimpleSchema ({\n\tlimit: {\n\t\ttype: Number\n\t},\n\tskip: {\n\t\ttype: Number\n\t},\n\tsort: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t},\n\tfields: {\n\t\ttype: Object,\n\t\toptional: true,\n\t\tblackbox: true\n\t}\n});"]}
|