cloud-ide-model-schema 1.1.100 → 1.1.102
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/schema/core/core_user_contact_addresses.d.ts +2 -2
- package/lib/schema/frontdesk/fdsk_lead_assignment_detail.d.ts +8 -0
- package/lib/schema/frontdesk/fdsk_lead_assignment_detail.js +28 -0
- package/lib/schema/frontdesk/fdsk_lead_config_master.d.ts +8 -0
- package/lib/schema/frontdesk/fdsk_lead_config_master.js +60 -0
- package/lib/schema/frontdesk/fdsk_lead_detail.d.ts +8 -0
- package/lib/schema/frontdesk/fdsk_lead_detail.js +37 -0
- package/lib/schema/frontdesk/fdsk_lead_scheduling.d.ts +8 -0
- package/lib/schema/frontdesk/fdsk_lead_scheduling.js +47 -0
- package/lib/schema/frontdesk/fdsk_leads.d.ts +8 -0
- package/lib/schema/frontdesk/fdsk_leads.js +126 -0
- package/lib/schema/frontdesk/index.d.ts +5 -0
- package/lib/{model/core → schema/frontdesk}/index.js +5 -6
- package/lib/schema/index.d.ts +1 -0
- package/lib/schema/index.js +1 -0
- package/package.json +35 -35
- package/lib/@types/README.md +0 -21
- package/lib/@types/common.d.ts +0 -22
- package/lib/@types/common.js +0 -50
- package/lib/@types/coreControllerResponse.d.ts +0 -43
- package/lib/@types/coreControllerResponse.js +0 -2
- package/lib/@types/designConfigControllerResponse.d.ts +0 -28
- package/lib/@types/designConfigControllerResponse.js +0 -2
- package/lib/@types/emailServiceConfig.d.ts +0 -33
- package/lib/@types/emailServiceConfig.js +0 -2
- package/lib/@types/entityControllerResponse.d.ts +0 -35
- package/lib/@types/entityControllerResponse.js +0 -2
- package/lib/@types/forgotPasswordControllerResponse.d.ts +0 -13
- package/lib/@types/forgotPasswordControllerResponse.js +0 -2
- package/lib/@types/jwtPayload.d.ts +0 -16
- package/lib/@types/jwtPayload.js +0 -2
- package/lib/@types/loginControllerResponse.d.ts +0 -17
- package/lib/@types/loginControllerResponse.js +0 -2
- package/lib/@types/menuControllerResponse.d.ts +0 -13
- package/lib/@types/menuControllerResponse.js +0 -2
- package/lib/@types/resetPasswordControllerResponse.d.ts +0 -15
- package/lib/@types/resetPasswordControllerResponse.js +0 -2
- package/lib/@types/userPermissions.d.ts +0 -7
- package/lib/@types/userPermissions.js +0 -2
- package/lib/README.md +0 -44
- package/lib/common-types/README.md +0 -27
- package/lib/common-types/common.d.ts +0 -31
- package/lib/common-types/common.js +0 -60
- package/lib/common-types/coreControllerResponse.d.ts +0 -43
- package/lib/common-types/coreControllerResponse.js +0 -2
- package/lib/common-types/designConfigControllerResponse.d.ts +0 -28
- package/lib/common-types/designConfigControllerResponse.js +0 -2
- package/lib/common-types/emailServiceConfig.d.ts +0 -33
- package/lib/common-types/emailServiceConfig.js +0 -2
- package/lib/common-types/entityControllerResponse.d.ts +0 -35
- package/lib/common-types/entityControllerResponse.js +0 -2
- package/lib/common-types/forgotPasswordControllerResponse.d.ts +0 -13
- package/lib/common-types/forgotPasswordControllerResponse.js +0 -2
- package/lib/common-types/index.d.ts +0 -4
- package/lib/common-types/index.js +0 -20
- package/lib/common-types/jwtPayload.d.ts +0 -9
- package/lib/common-types/jwtPayload.js +0 -2
- package/lib/common-types/loginControllerResponse.d.ts +0 -17
- package/lib/common-types/loginControllerResponse.js +0 -2
- package/lib/common-types/menuControllerResponse.d.ts +0 -13
- package/lib/common-types/menuControllerResponse.js +0 -2
- package/lib/common-types/resetPasswordControllerResponse.d.ts +0 -15
- package/lib/common-types/resetPasswordControllerResponse.js +0 -2
- package/lib/common-types/userPermissions.d.ts +0 -7
- package/lib/common-types/userPermissions.js +0 -2
- package/lib/config/README.md +0 -28
- package/lib/model/README.md +0 -30
- package/lib/model/auth/forgot-password.d.ts +0 -28
- package/lib/model/auth/forgot-password.js +0 -62
- package/lib/model/auth/index.d.ts +0 -4
- package/lib/model/auth/index.js +0 -20
- package/lib/model/auth/login.d.ts +0 -44
- package/lib/model/auth/login.js +0 -109
- package/lib/model/auth/register.d.ts +0 -20
- package/lib/model/auth/register.js +0 -33
- package/lib/model/auth/reset-password.d.ts +0 -36
- package/lib/model/auth/reset-password.js +0 -22
- package/lib/model/core/design-config.d.ts +0 -34
- package/lib/model/core/design-config.js +0 -19
- package/lib/model/core/entity.d.ts +0 -47
- package/lib/model/core/entity.js +0 -35
- package/lib/model/core/general-master.d.ts +0 -37
- package/lib/model/core/general-master.js +0 -19
- package/lib/model/core/index.d.ts +0 -6
- package/lib/model/core/menu.d.ts +0 -28
- package/lib/model/core/menu.js +0 -31
- package/lib/model/core/pin-code.d.ts +0 -21
- package/lib/model/core/pin-code.js +0 -28
- package/lib/model/core/user.d.ts +0 -19
- package/lib/model/core/user.js +0 -19
- package/lib/model/index.d.ts +0 -2
- package/lib/model/index.js +0 -18
- package/lib/schema/README.md +0 -51
- package/lib/schema/auth/mpin.d.ts +0 -37
- package/lib/schema/auth/mpin.js +0 -54
- package/lib/schema/core/aca_class_program_master.d.ts +0 -8
- package/lib/schema/core/aca_class_program_master.js +0 -32
- package/lib/schema/core/aca_class_program_term.d.ts +0 -8
- package/lib/schema/core/aca_class_program_term.js +0 -52
- package/lib/schema/core/aca_prg_trm_section.d.ts +0 -8
- package/lib/schema/core/aca_prg_trm_section.js +0 -45
- package/lib/schema/core/core_academic_year.d.ts +0 -8
- package/lib/schema/core/core_academic_year.js +0 -47
- package/lib/schema/core/core_academic_year_mapping.d.ts +0 -8
- package/lib/schema/core/core_academic_year_mapping.js +0 -25
- package/lib/schema/core/core_financial_year.d.ts +0 -8
- package/lib/schema/core/core_financial_year.js +0 -47
- package/lib/schema/core/core_financial_year_mapping.d.ts +0 -8
- package/lib/schema/core/core_financial_year_mapping.js +0 -25
- package/lib/schema/core/core_page_controls.d.ts +0 -30
- package/lib/schema/core/core_page_controls.js +0 -75
- package/lib/schema/email/elist.d.ts +0 -36
- package/lib/schema/email/elist.js +0 -42
- package/lib/schema/email/elog.d.ts +0 -41
- package/lib/schema/email/elog.js +0 -58
- package/lib/schema/email/eref.d.ts +0 -37
- package/lib/schema/email/eref.js +0 -43
- package/lib/schema/email/esub.d.ts +0 -43
- package/lib/schema/email/esub.js +0 -69
- package/lib/schema/email/etmp.d.ts +0 -36
- package/lib/schema/email/etmp.js +0 -41
- package/lib/schema/email/evdr.d.ts +0 -36
- package/lib/schema/email/evdr.js +0 -41
- package/lib/utilities/README.md +0 -22
- package/lib/utilities/helpers/encryption.helper.d.ts +0 -2
- package/lib/utilities/helpers/encryption.helper.js +0 -14
- package/lib/utilities/helpers/error.helper.d.ts +0 -9
- package/lib/utilities/helpers/error.helper.js +0 -26
- package/lib/utilities/helpers/index.d.ts +0 -5
- package/lib/utilities/helpers/index.js +0 -21
- package/lib/utilities/helpers/response.helper.d.ts +0 -16
- package/lib/utilities/helpers/response.helper.js +0 -9
- package/lib/utilities/helpers/string.helper.d.ts +0 -3
- package/lib/utilities/helpers/string.helper.js +0 -232
- package/lib/utilities/helpers/type.hepler.d.ts +0 -3
- package/lib/utilities/helpers/type.hepler.js +0 -2
- package/lib/utilities/helpers/view.helper.d.ts +0 -2
- package/lib/utilities/helpers/view.helper.js +0 -14
- package/lib/utilities/index.d.ts +0 -1
- package/lib/utilities/index.js +0 -17
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.customDecrypt = void 0;
|
|
4
|
-
// Custom decryption function
|
|
5
|
-
function customDecrypt(encryptedPassword) {
|
|
6
|
-
var decryptedPassword = '';
|
|
7
|
-
for (var i = 0; i < encryptedPassword.length; i++) {
|
|
8
|
-
// Shift ASCII value of each character back by the same amount
|
|
9
|
-
var decryptedCharCode = encryptedPassword.charCodeAt(i) - 1; // Shift back by 1
|
|
10
|
-
decryptedPassword += String.fromCharCode(decryptedCharCode);
|
|
11
|
-
}
|
|
12
|
-
return decryptedPassword;
|
|
13
|
-
}
|
|
14
|
-
exports.customDecrypt = customDecrypt;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare abstract class MErrorLoggerHelper {
|
|
2
|
-
[key: string]: string;
|
|
3
|
-
}
|
|
4
|
-
declare class ErrorLoggerResponseHelper {
|
|
5
|
-
errorLogged: MErrorLoggerHelper;
|
|
6
|
-
}
|
|
7
|
-
declare function errorLoggerRegister(errorLoggerRegister: MErrorLoggerHelper): void;
|
|
8
|
-
declare function errorLoggerResponse(errorLoggerResponse: ErrorLoggerResponseHelper): MErrorLoggerHelper | true;
|
|
9
|
-
export { errorLoggerRegister, MErrorLoggerHelper, errorLoggerResponse, ErrorLoggerResponseHelper };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ErrorLoggerResponseHelper = exports.errorLoggerResponse = exports.MErrorLoggerHelper = exports.errorLoggerRegister = void 0;
|
|
4
|
-
var MErrorLoggerHelper = /** @class */ (function () {
|
|
5
|
-
function MErrorLoggerHelper() {
|
|
6
|
-
}
|
|
7
|
-
return MErrorLoggerHelper;
|
|
8
|
-
}());
|
|
9
|
-
exports.MErrorLoggerHelper = MErrorLoggerHelper;
|
|
10
|
-
var ErrorLoggerResponseHelper = /** @class */ (function () {
|
|
11
|
-
function ErrorLoggerResponseHelper() {
|
|
12
|
-
this.errorLogged = {};
|
|
13
|
-
}
|
|
14
|
-
return ErrorLoggerResponseHelper;
|
|
15
|
-
}());
|
|
16
|
-
exports.ErrorLoggerResponseHelper = ErrorLoggerResponseHelper;
|
|
17
|
-
function errorLoggerRegister(errorLoggerRegister) {
|
|
18
|
-
}
|
|
19
|
-
exports.errorLoggerRegister = errorLoggerRegister;
|
|
20
|
-
function errorLoggerResponse(errorLoggerResponse) {
|
|
21
|
-
if (Object.keys(errorLoggerResponse.errorLogged).length > 0) {
|
|
22
|
-
return errorLoggerResponse.errorLogged;
|
|
23
|
-
}
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
exports.errorLoggerResponse = errorLoggerResponse;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./encryption.helper"), exports);
|
|
18
|
-
__exportStar(require("./error.helper"), exports);
|
|
19
|
-
__exportStar(require("./response.helper"), exports);
|
|
20
|
-
__exportStar(require("./string.helper"), exports);
|
|
21
|
-
__exportStar(require("./type.hepler"), exports);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MErrorLoggerHelper } from "./error.helper";
|
|
2
|
-
import { statusCode } from "./type.hepler";
|
|
3
|
-
interface controllerResponse {
|
|
4
|
-
success?: boolean;
|
|
5
|
-
error_code?: string;
|
|
6
|
-
message?: string;
|
|
7
|
-
data?: any;
|
|
8
|
-
code?: statusCode;
|
|
9
|
-
details?: string;
|
|
10
|
-
total?: number;
|
|
11
|
-
pageIndex?: number;
|
|
12
|
-
pageSize?: number;
|
|
13
|
-
controls?: MErrorLoggerHelper;
|
|
14
|
-
}
|
|
15
|
-
declare const defaultControllerResponse: controllerResponse;
|
|
16
|
-
export { controllerResponse, defaultControllerResponse };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultControllerResponse = void 0;
|
|
4
|
-
var defaultControllerResponse = {
|
|
5
|
-
success: true,
|
|
6
|
-
code: 200,
|
|
7
|
-
message: "Welcome to Cloud IDE!"
|
|
8
|
-
};
|
|
9
|
-
exports.defaultControllerResponse = defaultControllerResponse;
|
|
@@ -1,232 +0,0 @@
|
|
|
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 (g && (g = 0, op[0] && (_ = 0)), _) 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
|
-
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
39
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
40
|
-
var m = o[Symbol.asyncIterator], i;
|
|
41
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
42
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
43
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
44
|
-
};
|
|
45
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.stringInterpolation = void 0;
|
|
47
|
-
function stringInterpolation(variables, body, data) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
49
|
-
var bodyArray, replacedBody, _a, bodyArray_1, bodyArray_1_1, body_row, body_row_init, row_count, variable_array, spilited_variable_array, i, _b, body_row_init_1, body_row_init_1_1, body_row_init_row, replacedRow, index, row_array, _c, row_array_1, row_array_1_1, row_splited, updated_row, row_data, variable, variable_array_index, array_data_path, array_data_path, e_1_1, e_2_1, e_3_1;
|
|
50
|
-
var _d, e_3, _e, _f, _g, e_2, _h, _j, _k, e_1, _l, _m;
|
|
51
|
-
var _o, _p, _q;
|
|
52
|
-
return __generator(this, function (_r) {
|
|
53
|
-
switch (_r.label) {
|
|
54
|
-
case 0:
|
|
55
|
-
bodyArray = body.split("//");
|
|
56
|
-
replacedBody = [];
|
|
57
|
-
_r.label = 1;
|
|
58
|
-
case 1:
|
|
59
|
-
_r.trys.push([1, 29, 30, 35]);
|
|
60
|
-
_a = true, bodyArray_1 = __asyncValues(bodyArray);
|
|
61
|
-
_r.label = 2;
|
|
62
|
-
case 2: return [4 /*yield*/, bodyArray_1.next()];
|
|
63
|
-
case 3:
|
|
64
|
-
if (!(bodyArray_1_1 = _r.sent(), _d = bodyArray_1_1.done, !_d)) return [3 /*break*/, 28];
|
|
65
|
-
_f = bodyArray_1_1.value;
|
|
66
|
-
_a = false;
|
|
67
|
-
body_row = _f;
|
|
68
|
-
body_row_init = [body_row];
|
|
69
|
-
if (body_row.includes('[')) {
|
|
70
|
-
body_row_init = [];
|
|
71
|
-
row_count = 0;
|
|
72
|
-
variable_array = body_row.slice(1, (body_row === null || body_row === void 0 ? void 0 : body_row.indexOf(']')));
|
|
73
|
-
if (variable_array === null || variable_array === void 0 ? void 0 : variable_array.includes("-")) {
|
|
74
|
-
spilited_variable_array = variable_array === null || variable_array === void 0 ? void 0 : variable_array.split("-");
|
|
75
|
-
if ((spilited_variable_array === null || spilited_variable_array === void 0 ? void 0 : spilited_variable_array.length) == 2) {
|
|
76
|
-
row_count = (_o = data[spilited_variable_array[0]][spilited_variable_array[1]]) === null || _o === void 0 ? void 0 : _o.length;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
row_count = (_p = data[variable_array]) === null || _p === void 0 ? void 0 : _p.length;
|
|
81
|
-
}
|
|
82
|
-
for (i = 0; i < row_count; i++) {
|
|
83
|
-
body_row_init.push("[" + i + "]" + body_row.slice(((body_row === null || body_row === void 0 ? void 0 : body_row.indexOf(']')) + 1)));
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
_r.label = 4;
|
|
87
|
-
case 4:
|
|
88
|
-
_r.trys.push([4, 21, 22, 27]);
|
|
89
|
-
_b = true, body_row_init_1 = (e_2 = void 0, __asyncValues(body_row_init));
|
|
90
|
-
_r.label = 5;
|
|
91
|
-
case 5: return [4 /*yield*/, body_row_init_1.next()];
|
|
92
|
-
case 6:
|
|
93
|
-
if (!(body_row_init_1_1 = _r.sent(), _g = body_row_init_1_1.done, !_g)) return [3 /*break*/, 20];
|
|
94
|
-
_j = body_row_init_1_1.value;
|
|
95
|
-
_b = false;
|
|
96
|
-
body_row_init_row = _j;
|
|
97
|
-
replacedRow = [];
|
|
98
|
-
index = 0;
|
|
99
|
-
if (body_row_init_row === null || body_row_init_row === void 0 ? void 0 : body_row_init_row.includes("[")) {
|
|
100
|
-
index = parseInt(body_row_init_row === null || body_row_init_row === void 0 ? void 0 : body_row_init_row.slice(1, ((body_row_init_row === null || body_row_init_row === void 0 ? void 0 : body_row_init_row.indexOf(']')) + 1)));
|
|
101
|
-
body_row_init_row = body_row_init_row === null || body_row_init_row === void 0 ? void 0 : body_row_init_row.slice((body_row_init_row === null || body_row_init_row === void 0 ? void 0 : body_row_init_row.indexOf(']')) + 1);
|
|
102
|
-
}
|
|
103
|
-
row_array = body_row_init_row.split("\\");
|
|
104
|
-
_r.label = 7;
|
|
105
|
-
case 7:
|
|
106
|
-
_r.trys.push([7, 12, 13, 18]);
|
|
107
|
-
_c = true, row_array_1 = (e_1 = void 0, __asyncValues(row_array));
|
|
108
|
-
_r.label = 8;
|
|
109
|
-
case 8: return [4 /*yield*/, row_array_1.next()];
|
|
110
|
-
case 9:
|
|
111
|
-
if (!(row_array_1_1 = _r.sent(), _k = row_array_1_1.done, !_k)) return [3 /*break*/, 11];
|
|
112
|
-
_m = row_array_1_1.value;
|
|
113
|
-
_c = false;
|
|
114
|
-
row_splited = _m;
|
|
115
|
-
updated_row = row_splited;
|
|
116
|
-
if ((updated_row === null || updated_row === void 0 ? void 0 : updated_row.length) > 2) {
|
|
117
|
-
row_data = data;
|
|
118
|
-
if (updated_row[0] == "{" && updated_row[(updated_row === null || updated_row === void 0 ? void 0 : updated_row.length) - 1] == "}") {
|
|
119
|
-
variable = variables[updated_row.slice(1, ((updated_row === null || updated_row === void 0 ? void 0 : updated_row.length) - 1))];
|
|
120
|
-
if (variable === null || variable === void 0 ? void 0 : variable.includes("~")) {
|
|
121
|
-
variable_array_index = variable === null || variable === void 0 ? void 0 : variable.split("~");
|
|
122
|
-
if ((_q = variable_array_index[0]) === null || _q === void 0 ? void 0 : _q.includes("-")) {
|
|
123
|
-
array_data_path = variable_array_index[0].split("-");
|
|
124
|
-
if ((array_data_path === null || array_data_path === void 0 ? void 0 : array_data_path.length) == 2) {
|
|
125
|
-
row_data = row_data[array_data_path[0]][array_data_path[1]][index];
|
|
126
|
-
}
|
|
127
|
-
if ((array_data_path === null || array_data_path === void 0 ? void 0 : array_data_path.length) == 3) {
|
|
128
|
-
row_data = row_data[array_data_path[0]][array_data_path[1]][array_data_path[2]][index];
|
|
129
|
-
}
|
|
130
|
-
if ((array_data_path === null || array_data_path === void 0 ? void 0 : array_data_path.length) == 4) {
|
|
131
|
-
row_data = row_data[array_data_path[0]][array_data_path[1]][array_data_path[2]][array_data_path[3]][index];
|
|
132
|
-
}
|
|
133
|
-
if ((array_data_path === null || array_data_path === void 0 ? void 0 : array_data_path.length) == 5) {
|
|
134
|
-
row_data = row_data[array_data_path[0]][array_data_path[1]][array_data_path[2]][array_data_path[3]][array_data_path[4]][index];
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
row_data = row_data[variable];
|
|
139
|
-
}
|
|
140
|
-
variable = variable_array_index[1];
|
|
141
|
-
}
|
|
142
|
-
if (variable === null || variable === void 0 ? void 0 : variable.includes("-")) {
|
|
143
|
-
array_data_path = variable.split("-");
|
|
144
|
-
if ((array_data_path === null || array_data_path === void 0 ? void 0 : array_data_path.length) == 2) {
|
|
145
|
-
updated_row = row_data[array_data_path[0]][array_data_path[1]];
|
|
146
|
-
}
|
|
147
|
-
if ((array_data_path === null || array_data_path === void 0 ? void 0 : array_data_path.length) == 3) {
|
|
148
|
-
updated_row = row_data[array_data_path[0]][array_data_path[1]][array_data_path[2]];
|
|
149
|
-
}
|
|
150
|
-
if ((array_data_path === null || array_data_path === void 0 ? void 0 : array_data_path.length) == 4) {
|
|
151
|
-
updated_row = row_data[array_data_path[0]][array_data_path[1]][array_data_path[2]][array_data_path[3]];
|
|
152
|
-
}
|
|
153
|
-
if ((array_data_path === null || array_data_path === void 0 ? void 0 : array_data_path.length) == 5) {
|
|
154
|
-
updated_row = row_data[array_data_path[0]][array_data_path[1]][array_data_path[2]][array_data_path[3]][array_data_path[4]];
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
updated_row = row_data[variable];
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
replacedRow.push(updated_row);
|
|
163
|
-
_r.label = 10;
|
|
164
|
-
case 10:
|
|
165
|
-
_c = true;
|
|
166
|
-
return [3 /*break*/, 8];
|
|
167
|
-
case 11: return [3 /*break*/, 18];
|
|
168
|
-
case 12:
|
|
169
|
-
e_1_1 = _r.sent();
|
|
170
|
-
e_1 = { error: e_1_1 };
|
|
171
|
-
return [3 /*break*/, 18];
|
|
172
|
-
case 13:
|
|
173
|
-
_r.trys.push([13, , 16, 17]);
|
|
174
|
-
if (!(!_c && !_k && (_l = row_array_1.return))) return [3 /*break*/, 15];
|
|
175
|
-
return [4 /*yield*/, _l.call(row_array_1)];
|
|
176
|
-
case 14:
|
|
177
|
-
_r.sent();
|
|
178
|
-
_r.label = 15;
|
|
179
|
-
case 15: return [3 /*break*/, 17];
|
|
180
|
-
case 16:
|
|
181
|
-
if (e_1) throw e_1.error;
|
|
182
|
-
return [7 /*endfinally*/];
|
|
183
|
-
case 17: return [7 /*endfinally*/];
|
|
184
|
-
case 18:
|
|
185
|
-
replacedBody.push(replacedRow === null || replacedRow === void 0 ? void 0 : replacedRow.join(""));
|
|
186
|
-
_r.label = 19;
|
|
187
|
-
case 19:
|
|
188
|
-
_b = true;
|
|
189
|
-
return [3 /*break*/, 5];
|
|
190
|
-
case 20: return [3 /*break*/, 27];
|
|
191
|
-
case 21:
|
|
192
|
-
e_2_1 = _r.sent();
|
|
193
|
-
e_2 = { error: e_2_1 };
|
|
194
|
-
return [3 /*break*/, 27];
|
|
195
|
-
case 22:
|
|
196
|
-
_r.trys.push([22, , 25, 26]);
|
|
197
|
-
if (!(!_b && !_g && (_h = body_row_init_1.return))) return [3 /*break*/, 24];
|
|
198
|
-
return [4 /*yield*/, _h.call(body_row_init_1)];
|
|
199
|
-
case 23:
|
|
200
|
-
_r.sent();
|
|
201
|
-
_r.label = 24;
|
|
202
|
-
case 24: return [3 /*break*/, 26];
|
|
203
|
-
case 25:
|
|
204
|
-
if (e_2) throw e_2.error;
|
|
205
|
-
return [7 /*endfinally*/];
|
|
206
|
-
case 26: return [7 /*endfinally*/];
|
|
207
|
-
case 27:
|
|
208
|
-
_a = true;
|
|
209
|
-
return [3 /*break*/, 2];
|
|
210
|
-
case 28: return [3 /*break*/, 35];
|
|
211
|
-
case 29:
|
|
212
|
-
e_3_1 = _r.sent();
|
|
213
|
-
e_3 = { error: e_3_1 };
|
|
214
|
-
return [3 /*break*/, 35];
|
|
215
|
-
case 30:
|
|
216
|
-
_r.trys.push([30, , 33, 34]);
|
|
217
|
-
if (!(!_a && !_d && (_e = bodyArray_1.return))) return [3 /*break*/, 32];
|
|
218
|
-
return [4 /*yield*/, _e.call(bodyArray_1)];
|
|
219
|
-
case 31:
|
|
220
|
-
_r.sent();
|
|
221
|
-
_r.label = 32;
|
|
222
|
-
case 32: return [3 /*break*/, 34];
|
|
223
|
-
case 33:
|
|
224
|
-
if (e_3) throw e_3.error;
|
|
225
|
-
return [7 /*endfinally*/];
|
|
226
|
-
case 34: return [7 /*endfinally*/];
|
|
227
|
-
case 35: return [2 /*return*/, replacedBody.join("")];
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
exports.stringInterpolation = stringInterpolation;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.viewRendor = void 0;
|
|
4
|
-
var ejs = require('ejs');
|
|
5
|
-
function viewRendor(temp_body, loginData) {
|
|
6
|
-
// Your email template in EJS format
|
|
7
|
-
var emailTemplate = temp_body;
|
|
8
|
-
// Render the email template with dynamic data
|
|
9
|
-
var renderedEmail = ejs.render(emailTemplate, { loginData: loginData });
|
|
10
|
-
return renderedEmail;
|
|
11
|
-
// Now 'renderedEmail' contains the HTML with the user's name and college name
|
|
12
|
-
// Use 'renderedEmail' as the HTML content when sending your email
|
|
13
|
-
}
|
|
14
|
-
exports.viewRendor = viewRendor;
|
package/lib/utilities/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./helpers";
|
package/lib/utilities/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./helpers"), exports);
|