cloud-ide-lms-model 1.0.0

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.
Files changed (159) hide show
  1. package/lib/@types/common.d.ts +22 -0
  2. package/lib/@types/common.js +50 -0
  3. package/lib/@types/coreControllerResponse.d.ts +43 -0
  4. package/lib/@types/coreControllerResponse.js +2 -0
  5. package/lib/@types/designConfigControllerResponse.d.ts +28 -0
  6. package/lib/@types/designConfigControllerResponse.js +2 -0
  7. package/lib/@types/emailServiceConfig.d.ts +33 -0
  8. package/lib/@types/emailServiceConfig.js +2 -0
  9. package/lib/@types/entityControllerResponse.d.ts +35 -0
  10. package/lib/@types/entityControllerResponse.js +2 -0
  11. package/lib/@types/forgotPasswordControllerResponse.d.ts +13 -0
  12. package/lib/@types/forgotPasswordControllerResponse.js +2 -0
  13. package/lib/@types/jwtPayload.d.ts +16 -0
  14. package/lib/@types/jwtPayload.js +2 -0
  15. package/lib/@types/loginControllerResponse.d.ts +17 -0
  16. package/lib/@types/loginControllerResponse.js +2 -0
  17. package/lib/@types/menuControllerResponse.d.ts +13 -0
  18. package/lib/@types/menuControllerResponse.js +2 -0
  19. package/lib/@types/resetPasswordControllerResponse.d.ts +15 -0
  20. package/lib/@types/resetPasswordControllerResponse.js +2 -0
  21. package/lib/@types/userPermissions.d.ts +7 -0
  22. package/lib/@types/userPermissions.js +2 -0
  23. package/lib/common-types/common.d.ts +31 -0
  24. package/lib/common-types/common.js +60 -0
  25. package/lib/common-types/coreControllerResponse.d.ts +43 -0
  26. package/lib/common-types/coreControllerResponse.js +2 -0
  27. package/lib/common-types/designConfigControllerResponse.d.ts +28 -0
  28. package/lib/common-types/designConfigControllerResponse.js +2 -0
  29. package/lib/common-types/emailServiceConfig.d.ts +33 -0
  30. package/lib/common-types/emailServiceConfig.js +2 -0
  31. package/lib/common-types/entityControllerResponse.d.ts +35 -0
  32. package/lib/common-types/entityControllerResponse.js +2 -0
  33. package/lib/common-types/forgotPasswordControllerResponse.d.ts +13 -0
  34. package/lib/common-types/forgotPasswordControllerResponse.js +2 -0
  35. package/lib/common-types/index.d.ts +4 -0
  36. package/lib/common-types/index.js +20 -0
  37. package/lib/common-types/jwtPayload.d.ts +9 -0
  38. package/lib/common-types/jwtPayload.js +2 -0
  39. package/lib/common-types/loginControllerResponse.d.ts +17 -0
  40. package/lib/common-types/loginControllerResponse.js +2 -0
  41. package/lib/common-types/menuControllerResponse.d.ts +13 -0
  42. package/lib/common-types/menuControllerResponse.js +2 -0
  43. package/lib/common-types/resetPasswordControllerResponse.d.ts +15 -0
  44. package/lib/common-types/resetPasswordControllerResponse.js +2 -0
  45. package/lib/common-types/userPermissions.d.ts +7 -0
  46. package/lib/common-types/userPermissions.js +2 -0
  47. package/lib/config/database.d.ts +3 -0
  48. package/lib/config/database.js +66 -0
  49. package/lib/config/index.d.ts +2 -0
  50. package/lib/config/index.js +5 -0
  51. package/lib/index.d.ts +4 -0
  52. package/lib/index.js +20 -0
  53. package/lib/model/auth/forgot-password.d.ts +28 -0
  54. package/lib/model/auth/forgot-password.js +62 -0
  55. package/lib/model/auth/index.d.ts +4 -0
  56. package/lib/model/auth/index.js +20 -0
  57. package/lib/model/auth/login.d.ts +44 -0
  58. package/lib/model/auth/login.js +109 -0
  59. package/lib/model/auth/register.d.ts +20 -0
  60. package/lib/model/auth/register.js +33 -0
  61. package/lib/model/auth/reset-password.d.ts +36 -0
  62. package/lib/model/auth/reset-password.js +22 -0
  63. package/lib/model/core/design-config.d.ts +34 -0
  64. package/lib/model/core/design-config.js +19 -0
  65. package/lib/model/core/entity.d.ts +47 -0
  66. package/lib/model/core/entity.js +35 -0
  67. package/lib/model/core/general-master.d.ts +37 -0
  68. package/lib/model/core/general-master.js +19 -0
  69. package/lib/model/core/index.d.ts +6 -0
  70. package/lib/model/core/index.js +22 -0
  71. package/lib/model/core/menu.d.ts +28 -0
  72. package/lib/model/core/menu.js +31 -0
  73. package/lib/model/core/pin-code.d.ts +21 -0
  74. package/lib/model/core/pin-code.js +28 -0
  75. package/lib/model/core/user.d.ts +19 -0
  76. package/lib/model/core/user.js +19 -0
  77. package/lib/model/index.d.ts +2 -0
  78. package/lib/model/index.js +18 -0
  79. package/lib/schema/auth/auth_logses.d.ts +13 -0
  80. package/lib/schema/auth/auth_logses.js +2 -0
  81. package/lib/schema/auth/auth_user_mst.d.ts +30 -0
  82. package/lib/schema/auth/auth_user_mst.js +2 -0
  83. package/lib/schema/auth/index.d.ts +3 -0
  84. package/lib/schema/auth/index.js +19 -0
  85. package/lib/schema/auth/mpin.d.ts +8 -0
  86. package/lib/schema/auth/mpin.js +10 -0
  87. package/lib/schema/core/core_entity_mapping.d.ts +10 -0
  88. package/lib/schema/core/core_entity_mapping.js +2 -0
  89. package/lib/schema/core/core_general_master.d.ts +10 -0
  90. package/lib/schema/core/core_general_master.js +2 -0
  91. package/lib/schema/core/core_general_master_type.d.ts +8 -0
  92. package/lib/schema/core/core_general_master_type.js +2 -0
  93. package/lib/schema/core/core_page_controls.d.ts +18 -0
  94. package/lib/schema/core/core_page_controls.js +2 -0
  95. package/lib/schema/core/core_page_grid.d.ts +7 -0
  96. package/lib/schema/core/core_page_grid.js +2 -0
  97. package/lib/schema/core/core_page_tab.d.ts +14 -0
  98. package/lib/schema/core/core_page_tab.js +2 -0
  99. package/lib/schema/core/core_pin_code.d.ts +15 -0
  100. package/lib/schema/core/core_pin_code.js +2 -0
  101. package/lib/schema/core/core_system_config.d.ts +8 -0
  102. package/lib/schema/core/core_system_config.js +10 -0
  103. package/lib/schema/core/core_system_entity.d.ts +34 -0
  104. package/lib/schema/core/core_system_entity.js +2 -0
  105. package/lib/schema/core/core_system_logs.d.ts +24 -0
  106. package/lib/schema/core/core_system_logs.js +33 -0
  107. package/lib/schema/core/core_system_menu.d.ts +13 -0
  108. package/lib/schema/core/core_system_menu.js +10 -0
  109. package/lib/schema/core/core_system_pages.d.ts +10 -0
  110. package/lib/schema/core/core_system_pages.js +10 -0
  111. package/lib/schema/core/core_system_pages_theme.d.ts +11 -0
  112. package/lib/schema/core/core_system_pages_theme.js +10 -0
  113. package/lib/schema/core/index.d.ts +13 -0
  114. package/lib/schema/core/index.js +29 -0
  115. package/lib/schema/email/elist.d.ts +36 -0
  116. package/lib/schema/email/elist.js +42 -0
  117. package/lib/schema/email/elog.d.ts +41 -0
  118. package/lib/schema/email/elog.js +58 -0
  119. package/lib/schema/email/email_list.d.ts +7 -0
  120. package/lib/schema/email/email_list.js +10 -0
  121. package/lib/schema/email/email_log.d.ts +12 -0
  122. package/lib/schema/email/email_log.js +10 -0
  123. package/lib/schema/email/email_reference.d.ts +8 -0
  124. package/lib/schema/email/email_reference.js +10 -0
  125. package/lib/schema/email/email_subscription_vendor.d.ts +14 -0
  126. package/lib/schema/email/email_subscription_vendor.js +10 -0
  127. package/lib/schema/email/email_templete.d.ts +7 -0
  128. package/lib/schema/email/email_templete.js +10 -0
  129. package/lib/schema/email/email_vendor.d.ts +7 -0
  130. package/lib/schema/email/email_vendor.js +10 -0
  131. package/lib/schema/email/eref.d.ts +37 -0
  132. package/lib/schema/email/eref.js +43 -0
  133. package/lib/schema/email/esub.d.ts +43 -0
  134. package/lib/schema/email/esub.js +69 -0
  135. package/lib/schema/email/etmp.d.ts +36 -0
  136. package/lib/schema/email/etmp.js +41 -0
  137. package/lib/schema/email/evdr.d.ts +36 -0
  138. package/lib/schema/email/evdr.js +41 -0
  139. package/lib/schema/email/index.d.ts +6 -0
  140. package/lib/schema/email/index.js +22 -0
  141. package/lib/schema/index.d.ts +3 -0
  142. package/lib/schema/index.js +19 -0
  143. package/lib/utilities/helpers/encryption.helper.d.ts +2 -0
  144. package/lib/utilities/helpers/encryption.helper.js +14 -0
  145. package/lib/utilities/helpers/error.helper.d.ts +9 -0
  146. package/lib/utilities/helpers/error.helper.js +26 -0
  147. package/lib/utilities/helpers/index.d.ts +5 -0
  148. package/lib/utilities/helpers/index.js +21 -0
  149. package/lib/utilities/helpers/response.helper.d.ts +16 -0
  150. package/lib/utilities/helpers/response.helper.js +9 -0
  151. package/lib/utilities/helpers/string.helper.d.ts +3 -0
  152. package/lib/utilities/helpers/string.helper.js +232 -0
  153. package/lib/utilities/helpers/type.hepler.d.ts +3 -0
  154. package/lib/utilities/helpers/type.hepler.js +2 -0
  155. package/lib/utilities/helpers/view.helper.d.ts +2 -0
  156. package/lib/utilities/helpers/view.helper.js +14 -0
  157. package/lib/utilities/index.d.ts +1 -0
  158. package/lib/utilities/index.js +17 -0
  159. package/package.json +25 -0
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CEmailVendorSubscription = exports.IEmailVendorSubscription = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* INTERFASE START */
6
+ var IEmailVendorSubscription = /** @class */ (function () {
7
+ function IEmailVendorSubscription() {
8
+ }
9
+ return IEmailVendorSubscription;
10
+ }());
11
+ exports.IEmailVendorSubscription = IEmailVendorSubscription;
12
+ /* INTERFACE END */
13
+ /* SCHEMA START */
14
+ var email_subscription_vendor = new mongoose_1.Schema({
15
+ esub_id_evdr: {
16
+ type: mongoose_1.default.Schema.Types.ObjectId,
17
+ required: true,
18
+ ref: "email_vendor"
19
+ },
20
+ esub_start_dtm: {
21
+ type: Date,
22
+ required: true,
23
+ default: new Date()
24
+ },
25
+ esub_end_dtm: {
26
+ type: Date,
27
+ required: true,
28
+ default: new Date()
29
+ },
30
+ esub_timestamp: {
31
+ type: Date,
32
+ required: true,
33
+ default: new Date()
34
+ },
35
+ esub_limit: {
36
+ type: Number,
37
+ required: true,
38
+ minvalue: 0,
39
+ default: 0
40
+ },
41
+ esub_alert_on_limit: {
42
+ type: Number,
43
+ required: true,
44
+ minvalue: 10,
45
+ default: 10,
46
+ },
47
+ esub_alert_to_id_user: {
48
+ type: Array,
49
+ default: []
50
+ },
51
+ esub_used_limit: {
52
+ type: Number,
53
+ minvalue: 0,
54
+ default: 0,
55
+ },
56
+ esub_status: {
57
+ type: String,
58
+ required: true,
59
+ enum: ['active', 'inactive', 'discontinued', 'hold'],
60
+ default: 'active'
61
+ },
62
+ esub_isactive: {
63
+ type: Boolean,
64
+ required: true,
65
+ default: true
66
+ }
67
+ }, { collection: 'email_subscription_vendor' });
68
+ var CEmailVendorSubscription = mongoose_1.default.model("email_subscription_vendor", email_subscription_vendor);
69
+ exports.CEmailVendorSubscription = CEmailVendorSubscription;
@@ -0,0 +1,36 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import mongoose from "mongoose";
26
+ declare class IEmailTemplete {
27
+ etmp_id_eref: string;
28
+ etmp_subject: string;
29
+ etmp_body: string;
30
+ etmp_isactive: boolean;
31
+ }
32
+ declare const CEmailTemplete: mongoose.Model<IEmailTemplete, {}, {}, {}, mongoose.Document<unknown, {}, IEmailTemplete> & IEmailTemplete & {
33
+ _id: mongoose.Types.ObjectId;
34
+ }, any>;
35
+ export { IEmailTemplete, // interface
36
+ CEmailTemplete };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CEmailTemplete = exports.IEmailTemplete = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* INTERFASE START */
6
+ var IEmailTemplete = /** @class */ (function () {
7
+ function IEmailTemplete() {
8
+ }
9
+ return IEmailTemplete;
10
+ }());
11
+ exports.IEmailTemplete = IEmailTemplete;
12
+ /* INTERFACE END */
13
+ /* SCHEMA START */
14
+ var email_templete = new mongoose_1.Schema({
15
+ etmp_id_eref: {
16
+ type: mongoose_1.default.Schema.Types.ObjectId,
17
+ required: true,
18
+ ref: "email_reference",
19
+ unique: true
20
+ },
21
+ etmp_subject: {
22
+ type: String,
23
+ minlength: 9,
24
+ maxlength: 60,
25
+ required: true,
26
+ trim: true,
27
+ },
28
+ etmp_body: {
29
+ type: String,
30
+ minlength: 25,
31
+ maxlength: 384000,
32
+ required: true
33
+ },
34
+ etmp_isactive: {
35
+ type: Boolean,
36
+ required: true,
37
+ default: true
38
+ }
39
+ }, { collection: 'email_templete' });
40
+ var CEmailTemplete = mongoose_1.default.model("email_templete", email_templete);
41
+ exports.CEmailTemplete = CEmailTemplete;
@@ -0,0 +1,36 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import mongoose from "mongoose";
26
+ declare class IEmailVendor {
27
+ evdr_name: string;
28
+ evdr_desc: string;
29
+ evdr_api_end_point: string;
30
+ evdr_isactive: boolean;
31
+ }
32
+ declare const CEmailVendor: mongoose.Model<IEmailVendor, {}, {}, {}, mongoose.Document<unknown, {}, IEmailVendor> & IEmailVendor & {
33
+ _id: mongoose.Types.ObjectId;
34
+ }, any>;
35
+ export { IEmailVendor, // interface
36
+ CEmailVendor };
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CEmailVendor = exports.IEmailVendor = void 0;
4
+ var mongoose_1 = require("mongoose");
5
+ /* INTERFASE START */
6
+ var IEmailVendor = /** @class */ (function () {
7
+ function IEmailVendor() {
8
+ }
9
+ return IEmailVendor;
10
+ }());
11
+ exports.IEmailVendor = IEmailVendor;
12
+ /* INTERFACE END */
13
+ /* SCHEMA START */
14
+ var email_vendor = new mongoose_1.Schema({
15
+ evdr_name: {
16
+ type: String,
17
+ required: true,
18
+ trim: true,
19
+ minlength: 8,
20
+ maxlength: 52,
21
+ },
22
+ evdr_desc: {
23
+ type: String,
24
+ require: true,
25
+ trim: true,
26
+ maxlength: 255,
27
+ },
28
+ evdr_api_end_point: {
29
+ type: String,
30
+ trim: true,
31
+ required: true,
32
+ maxlength: 255
33
+ },
34
+ evdr_isactive: {
35
+ type: Boolean,
36
+ required: true,
37
+ default: true
38
+ }
39
+ }, { collection: 'email_vendor' });
40
+ var CEmailVendor = mongoose_1.default.model("email_vendor", email_vendor);
41
+ exports.CEmailVendor = CEmailVendor;
@@ -0,0 +1,6 @@
1
+ export * from './email_list';
2
+ export * from './email_log';
3
+ export * from './email_reference';
4
+ export * from './email_subscription_vendor';
5
+ export * from './email_templete';
6
+ export * from './email_vendor';
@@ -0,0 +1,22 @@
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("./email_list"), exports);
18
+ __exportStar(require("./email_log"), exports);
19
+ __exportStar(require("./email_reference"), exports);
20
+ __exportStar(require("./email_subscription_vendor"), exports);
21
+ __exportStar(require("./email_templete"), exports);
22
+ __exportStar(require("./email_vendor"), exports);
@@ -0,0 +1,3 @@
1
+ export * from "./auth";
2
+ export * from "./core";
3
+ export * from "./email";
@@ -0,0 +1,19 @@
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("./auth"), exports);
18
+ __exportStar(require("./core"), exports);
19
+ __exportStar(require("./email"), exports);
@@ -0,0 +1,2 @@
1
+ declare function customDecrypt(encryptedPassword: string): string;
2
+ export { customDecrypt };
@@ -0,0 +1,14 @@
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;
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,26 @@
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;
@@ -0,0 +1,5 @@
1
+ export * from "./encryption.helper";
2
+ export * from "./error.helper";
3
+ export * from "./response.helper";
4
+ export * from "./string.helper";
5
+ export * from "./type.hepler";
@@ -0,0 +1,21 @@
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);
@@ -0,0 +1,16 @@
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 };
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,3 @@
1
+ export declare function stringInterpolation(variables: {
2
+ [key: string]: string;
3
+ }, body: string, data: any): Promise<string>;
@@ -0,0 +1,232 @@
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;
@@ -0,0 +1,3 @@
1
+ export type loginMethod = "mpin" | "pass";
2
+ export type forgotPasswordMethod = "username" | "mobile" | "email";
3
+ export type statusCode = 200 | 201 | 500 | 401 | 400 | 427 | 783 | 430 | 449 | 419;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { loginResponseData } from "../../@types/loginControllerResponse";
2
+ export declare function viewRendor(temp_body: string, loginData: loginResponseData): Promise<string>;