cloud-ide-lms-model 1.1.19 → 1.1.20

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 (241) hide show
  1. package/lib/common-types/common.js +6 -2
  2. package/lib/common-types/emailServiceConfig.js +2 -1
  3. package/lib/common-types/index.js +20 -4
  4. package/lib/common-types/jwtPayload.js +2 -1
  5. package/lib/common-types/userPermissions.js +2 -1
  6. package/lib/index.js +23 -7
  7. package/lib/middleware/index.js +17 -1
  8. package/lib/middleware/securityHeadersMiddleware.js +2 -1
  9. package/lib/model/academics/aca_academic_year.js +12 -5
  10. package/lib/model/academics/aca_academic_year_mapping.js +12 -5
  11. package/lib/model/academics/aca_class_prg_branch.js +15 -6
  12. package/lib/model/academics/aca_class_program_master.js +12 -5
  13. package/lib/model/academics/aca_class_program_term.js +13 -5
  14. package/lib/model/academics/aca_prg_trm_section.js +13 -5
  15. package/lib/model/academics/academics_bonafide_request.js +12 -4
  16. package/lib/model/academics/index.js +23 -7
  17. package/lib/model/accounts/acc_financial_config.js +10 -6
  18. package/lib/model/accounts/acc_financial_year.js +12 -5
  19. package/lib/model/accounts/acc_financial_year_mapping.js +12 -5
  20. package/lib/model/accounts/index.js +19 -3
  21. package/lib/model/admission/admission_application_main.js +8 -3
  22. package/lib/model/admission/admission_confirmation_types.js +12 -5
  23. package/lib/model/admission/admission_contact_addresses.js +2 -1
  24. package/lib/model/admission/admission_elective_detail.js +8 -3
  25. package/lib/model/admission/admission_family_members.js +2 -1
  26. package/lib/model/admission/admission_fee_snapshot.js +2 -1
  27. package/lib/model/admission/admission_rte_details.js +2 -1
  28. package/lib/model/admission/admission_vital_information.js +2 -1
  29. package/lib/model/admission/index.js +24 -8
  30. package/lib/model/app/app-build-config.model.js +8 -4
  31. package/lib/model/app/app-changelog.model.js +8 -4
  32. package/lib/model/app/app-deployment.model.js +8 -4
  33. package/lib/model/app/app-platform-link.model.js +8 -4
  34. package/lib/model/app/app-publish.model.js +8 -4
  35. package/lib/model/app/app-registration-start.model.js +8 -4
  36. package/lib/model/app/app-registration.model.js +8 -4
  37. package/lib/model/app/app-store-provider.model.js +8 -4
  38. package/lib/model/app/app-version.model.js +8 -4
  39. package/lib/model/app/index.js +25 -9
  40. package/lib/model/auth/auth_user_mst.js +26 -16
  41. package/lib/model/auth/entity-switch.js +4 -2
  42. package/lib/model/auth/forgot-password.js +4 -2
  43. package/lib/model/auth/generate-view-only-token.js +4 -1
  44. package/lib/model/auth/index.js +23 -7
  45. package/lib/model/auth/login.js +5 -2
  46. package/lib/model/auth/register.js +4 -4
  47. package/lib/model/auth/reset-password.js +4 -2
  48. package/lib/model/common/index.js +17 -1
  49. package/lib/model/common/mongoose-object.js +2 -1
  50. package/lib/model/core/core_department.js +10 -3
  51. package/lib/model/core/core_designation.js +10 -3
  52. package/lib/model/core/core_designation_grade_level.js +13 -5
  53. package/lib/model/core/core_entity_access_pass_management.js +10 -3
  54. package/lib/model/core/core_file_manager.js +8 -4
  55. package/lib/model/core/core_general_master.js +14 -6
  56. package/lib/model/core/core_general_master_type.js +15 -7
  57. package/lib/model/core/core_iso_currency.js +6 -4
  58. package/lib/model/core/core_page_elements.js +14 -5
  59. package/lib/model/core/core_page_elements_mapping.js +12 -3
  60. package/lib/model/core/core_pin_code.js +4 -2
  61. package/lib/model/core/core_system_country.js +6 -3
  62. package/lib/model/core/core_system_entity.js +8 -5
  63. package/lib/model/core/core_system_menu.js +13 -6
  64. package/lib/model/core/core_system_nationality.js +6 -3
  65. package/lib/model/core/core_system_pages.js +13 -5
  66. package/lib/model/core/core_system_pages_theme.js +14 -3
  67. package/lib/model/core/core_system_theme_user_preferences.js +4 -3
  68. package/lib/model/core/core_system_themes.js +4 -2
  69. package/lib/model/core/core_user_role.js +10 -3
  70. package/lib/model/core/core_workflow_config.js +13 -4
  71. package/lib/model/core/core_workflow_engine.js +9 -2
  72. package/lib/model/core/core_workflow_registry.js +12 -4
  73. package/lib/model/core/dashboard-cards.js +9 -3
  74. package/lib/model/core/design-config.js +4 -2
  75. package/lib/model/core/financial_config.js +10 -6
  76. package/lib/model/core/index.js +43 -27
  77. package/lib/model/email/email_list.js +10 -4
  78. package/lib/model/email/email_log.js +8 -4
  79. package/lib/model/email/email_reference.js +10 -4
  80. package/lib/model/email/email_subscription.js +10 -4
  81. package/lib/model/email/email_template.js +10 -4
  82. package/lib/model/email/email_vendor.js +10 -4
  83. package/lib/model/email/index.js +22 -6
  84. package/lib/model/fees/fee_assignment.js +11 -6
  85. package/lib/model/fees/fee_discount_rule.js +12 -5
  86. package/lib/model/fees/fee_payment.js +11 -5
  87. package/lib/model/fees/fee_receipt_template.js +12 -5
  88. package/lib/model/fees/fee_structure.js +13 -5
  89. package/lib/model/fees/index.js +21 -5
  90. package/lib/model/frontdesk/fdsk_lead_assignment_detail.js +7 -4
  91. package/lib/model/frontdesk/fdsk_lead_config_master.js +12 -9
  92. package/lib/model/frontdesk/fdsk_leads.js +8 -5
  93. package/lib/model/frontdesk/index.js +19 -3
  94. package/lib/model/index.js +27 -11
  95. package/lib/model/notifications/index.js +17 -1
  96. package/lib/model/notifications/notification.js +10 -3
  97. package/lib/routes/academicsRoutes.js +4 -1
  98. package/lib/routes/accountsRoutes.js +4 -1
  99. package/lib/routes/admissionRoutes.js +4 -1
  100. package/lib/routes/appRoutes.js +4 -1
  101. package/lib/routes/authRoutes.js +4 -1
  102. package/lib/routes/commonRoutes.js +4 -1
  103. package/lib/routes/coreRoutes.js +4 -1
  104. package/lib/routes/designConfigRoutes.js +4 -1
  105. package/lib/routes/emailRoutes.js +4 -1
  106. package/lib/routes/feesRoutes.js +4 -1
  107. package/lib/routes/frontdeskRoutes.js +4 -1
  108. package/lib/routes/hostManagerRoutes.js +4 -1
  109. package/lib/routes/index.js +30 -14
  110. package/lib/routes/notificationRoutes.js +4 -1
  111. package/lib/routes/userRoutes.js +4 -1
  112. package/lib/schema/academics/aca_academic_year.js +4 -1
  113. package/lib/schema/academics/aca_academic_year_mapping.js +5 -2
  114. package/lib/schema/academics/aca_class_prg_branch.js +5 -2
  115. package/lib/schema/academics/aca_class_program_master.js +5 -2
  116. package/lib/schema/academics/aca_class_program_term.js +5 -2
  117. package/lib/schema/academics/aca_prg_trm_section.js +5 -2
  118. package/lib/schema/academics/academics_bonafide_request.js +4 -3
  119. package/lib/schema/academics/index.js +23 -7
  120. package/lib/schema/accounts/acc_financial_config.js +4 -2
  121. package/lib/schema/accounts/acc_financial_year.js +4 -1
  122. package/lib/schema/accounts/acc_financial_year_mapping.js +5 -2
  123. package/lib/schema/accounts/index.js +19 -3
  124. package/lib/schema/admission/admission_application_main.js +4 -3
  125. package/lib/schema/admission/admission_contact_addresses.js +7 -5
  126. package/lib/schema/admission/admission_document_uploads.js +4 -3
  127. package/lib/schema/admission/admission_elective_detail.js +4 -3
  128. package/lib/schema/admission/admission_family_members.js +5 -3
  129. package/lib/schema/admission/admission_fee_snapshot.js +2 -1
  130. package/lib/schema/admission/admission_rte_details.js +5 -2
  131. package/lib/schema/admission/admission_status_history.js +4 -3
  132. package/lib/schema/admission/admission_vital_information.js +5 -2
  133. package/lib/schema/admission/index.js +25 -9
  134. package/lib/schema/app/app_build_config_mst.js +4 -3
  135. package/lib/schema/app/app_platform_link_mst.js +4 -3
  136. package/lib/schema/app/app_publish_details_mst.js +4 -3
  137. package/lib/schema/app/app_registration_mst.js +4 -3
  138. package/lib/schema/app/app_registration_start_mst.js +4 -3
  139. package/lib/schema/app/app_rollout_config_mst.js +4 -3
  140. package/lib/schema/app/app_store_provider_mst.js +4 -3
  141. package/lib/schema/app/app_update_changelog_mst.js +4 -3
  142. package/lib/schema/app/app_update_deployment_mst.js +4 -3
  143. package/lib/schema/app/app_update_statistics_mst.js +4 -3
  144. package/lib/schema/app/app_user_update_status_mst.js +4 -3
  145. package/lib/schema/app/app_version_mst.js +4 -3
  146. package/lib/schema/app/index.js +28 -12
  147. package/lib/schema/auth/auth_logses.js +2 -1
  148. package/lib/schema/auth/auth_mpin.js +4 -3
  149. package/lib/schema/auth/auth_user_mst.js +4 -2
  150. package/lib/schema/auth/index.js +19 -3
  151. package/lib/schema/collection_names.js +4 -1
  152. package/lib/schema/core/core_board_exam_pattern.js +4 -3
  153. package/lib/schema/core/core_board_grade_system.js +4 -3
  154. package/lib/schema/core/core_dashboard_cards.js +2 -1
  155. package/lib/schema/core/core_department.js +2 -1
  156. package/lib/schema/core/core_designation.js +2 -1
  157. package/lib/schema/core/core_designation_grade_level.js +4 -2
  158. package/lib/schema/core/core_education_board.js +4 -3
  159. package/lib/schema/core/core_entity_access_pass_management.js +5 -1
  160. package/lib/schema/core/core_entity_mapping.js +5 -4
  161. package/lib/schema/core/core_entity_udise.js +4 -3
  162. package/lib/schema/core/core_file_manager.js +4 -3
  163. package/lib/schema/core/core_financial_config.js +4 -2
  164. package/lib/schema/core/core_general_master.js +4 -3
  165. package/lib/schema/core/core_general_master_type.js +4 -3
  166. package/lib/schema/core/core_iso_currency.js +2 -1
  167. package/lib/schema/core/core_language.js +2 -1
  168. package/lib/schema/core/core_page_elements.js +4 -3
  169. package/lib/schema/core/core_page_elements_mapping.js +2 -1
  170. package/lib/schema/core/core_page_grid.js +2 -1
  171. package/lib/schema/core/core_page_tab.js +2 -1
  172. package/lib/schema/core/core_pin_code.js +2 -1
  173. package/lib/schema/core/core_school_board_affiliation.js +4 -3
  174. package/lib/schema/core/core_system_config.js +4 -3
  175. package/lib/schema/core/core_system_country.js +2 -1
  176. package/lib/schema/core/core_system_entity.js +4 -3
  177. package/lib/schema/core/core_system_logs.js +4 -3
  178. package/lib/schema/core/core_system_menu.js +4 -3
  179. package/lib/schema/core/core_system_nationality.js +2 -1
  180. package/lib/schema/core/core_system_organization_themes.js +4 -3
  181. package/lib/schema/core/core_system_page_notes_manager.js +4 -2
  182. package/lib/schema/core/core_system_pages.js +4 -3
  183. package/lib/schema/core/core_system_pages_theme.js +2 -1
  184. package/lib/schema/core/core_system_theme_user_preferences.js +4 -3
  185. package/lib/schema/core/core_system_themes.js +4 -2
  186. package/lib/schema/core/core_user_attributes.js +4 -2
  187. package/lib/schema/core/core_user_contact_addresses.js +5 -2
  188. package/lib/schema/core/core_user_documents.js +5 -2
  189. package/lib/schema/core/core_user_family_details.js +5 -2
  190. package/lib/schema/core/core_user_role.js +5 -2
  191. package/lib/schema/core/core_user_role_exceptions.js +5 -2
  192. package/lib/schema/core/core_user_role_rights.js +5 -2
  193. package/lib/schema/core/core_user_type_mapping.js +2 -1
  194. package/lib/schema/core/core_workflow_approver_rules.js +4 -3
  195. package/lib/schema/core/core_workflow_config.js +4 -3
  196. package/lib/schema/core/core_workflow_registry.js +4 -3
  197. package/lib/schema/core/core_workflow_transaction_history.js +4 -3
  198. package/lib/schema/core/index.js +62 -46
  199. package/lib/schema/email/email_list.js +4 -3
  200. package/lib/schema/email/email_log.js +4 -3
  201. package/lib/schema/email/email_reference.js +4 -3
  202. package/lib/schema/email/email_subscription_vendor.js +4 -3
  203. package/lib/schema/email/email_templete.js +4 -3
  204. package/lib/schema/email/email_vendor.js +4 -3
  205. package/lib/schema/email/index.js +22 -6
  206. package/lib/schema/fees/fee_assignment.js +5 -1
  207. package/lib/schema/fees/fee_collection_config.js +4 -1
  208. package/lib/schema/fees/fee_discount.js +4 -1
  209. package/lib/schema/fees/fee_discount_rule.js +4 -1
  210. package/lib/schema/fees/fee_installment_config.js +4 -1
  211. package/lib/schema/fees/fee_installment_item.js +4 -1
  212. package/lib/schema/fees/fee_late_fee.js +4 -1
  213. package/lib/schema/fees/fee_late_fee_rule.js +4 -1
  214. package/lib/schema/fees/fee_payment.js +4 -1
  215. package/lib/schema/fees/fee_payment_item.js +4 -1
  216. package/lib/schema/fees/fee_receipt_template.js +4 -1
  217. package/lib/schema/fees/fee_refund.js +4 -1
  218. package/lib/schema/fees/fee_scholarship.js +4 -1
  219. package/lib/schema/fees/fee_structure.js +5 -2
  220. package/lib/schema/fees/fee_structure_item.js +4 -1
  221. package/lib/schema/fees/fee_transaction.js +4 -1
  222. package/lib/schema/fees/index.js +37 -16
  223. package/lib/schema/frontdesk/fdsk_lead_assignment_detail.js +5 -4
  224. package/lib/schema/frontdesk/fdsk_lead_config_master.js +5 -4
  225. package/lib/schema/frontdesk/fdsk_lead_detail.js +5 -4
  226. package/lib/schema/frontdesk/fdsk_lead_scheduling.js +5 -4
  227. package/lib/schema/frontdesk/fdsk_leads.js +5 -4
  228. package/lib/schema/frontdesk/index.js +21 -5
  229. package/lib/schema/index.js +27 -11
  230. package/lib/schema/notifications/index.js +17 -1
  231. package/lib/schema/notifications/notification.js +5 -2
  232. package/lib/services/index.js +17 -1
  233. package/lib/services/theme.service.js +2 -1
  234. package/lib/utilities/helpers/encryption.helper.js +4 -1
  235. package/lib/utilities/helpers/error.helper.js +8 -1
  236. package/lib/utilities/helpers/index.js +21 -5
  237. package/lib/utilities/helpers/response.helper.js +4 -1
  238. package/lib/utilities/helpers/string.helper.js +12 -5
  239. package/lib/utilities/helpers/type.hepler.js +2 -1
  240. package/lib/utilities/index.js +17 -1
  241. package/package.json +4 -9
@@ -1,11 +1,27 @@
1
- export * from './collection_names';
2
- export * from "./auth";
3
- export * from "./core";
4
- export * from "./email";
5
- export * from "./academics";
6
- export * from "./accounts";
7
- export * from "./frontdesk";
8
- export * from "./admission";
9
- export * from "./fees";
10
- export * from "./notifications";
11
- export * from "./app";
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("./collection_names"), exports);
18
+ __exportStar(require("./auth"), exports);
19
+ __exportStar(require("./core"), exports);
20
+ __exportStar(require("./email"), exports);
21
+ __exportStar(require("./academics"), exports);
22
+ __exportStar(require("./accounts"), exports);
23
+ __exportStar(require("./frontdesk"), exports);
24
+ __exportStar(require("./admission"), exports);
25
+ __exportStar(require("./fees"), exports);
26
+ __exportStar(require("./notifications"), exports);
27
+ __exportStar(require("./app"), exports);
@@ -1 +1,17 @@
1
- export * from "./notification";
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("./notification"), exports);
@@ -1,6 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Notification = exports.NotificationBase = void 0;
1
4
  class NotificationBase {
2
5
  }
6
+ exports.NotificationBase = NotificationBase;
3
7
  class Notification extends NotificationBase {
4
8
  }
5
- export { NotificationBase, // interface
6
- Notification };
9
+ exports.Notification = Notification;
@@ -1 +1,17 @@
1
- export * from './theme.service';
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("./theme.service"), exports);
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customEncrypt = customEncrypt;
4
+ exports.customDecrypt = customDecrypt;
1
5
  // Custom encryption function
2
6
  function customEncrypt(plainPassword) {
3
7
  let encryptedPassword = '';
@@ -18,4 +22,3 @@ function customDecrypt(encryptedPassword) {
18
22
  }
19
23
  return decryptedPassword;
20
24
  }
21
- export { customEncrypt, customDecrypt };
@@ -1,10 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateRequestModal = exports.ErrorLoggerResponseHelper = exports.MErrorLoggerHelper = void 0;
4
+ exports.errorLoggerRegister = errorLoggerRegister;
5
+ exports.errorLoggerResponse = errorLoggerResponse;
1
6
  class MErrorLoggerHelper {
2
7
  }
8
+ exports.MErrorLoggerHelper = MErrorLoggerHelper;
3
9
  class ErrorLoggerResponseHelper {
4
10
  constructor() {
5
11
  this.errorLogged = {};
6
12
  }
7
13
  }
14
+ exports.ErrorLoggerResponseHelper = ErrorLoggerResponseHelper;
8
15
  function errorLoggerRegister(errorLoggerRegister) {
9
16
  }
10
17
  function errorLoggerResponse(errorLoggerResponse) {
@@ -37,4 +44,4 @@ const validateRequestModal = (payload) => {
37
44
  }
38
45
  return true;
39
46
  };
40
- export { errorLoggerRegister, MErrorLoggerHelper, errorLoggerResponse, ErrorLoggerResponseHelper, validateRequestModal };
47
+ exports.validateRequestModal = validateRequestModal;
@@ -1,5 +1,21 @@
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";
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,6 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultControllerResponse = void 0;
1
4
  const defaultControllerResponse = {
2
5
  success: true,
3
6
  code: 200,
4
7
  message: "Welcome to Cloud IDE!"
5
8
  };
6
- export { defaultControllerResponse };
9
+ exports.defaultControllerResponse = defaultControllerResponse;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __asyncValues = (this && this.__asyncValues) || function (o) {
2
3
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3
4
  var m = o[Symbol.asyncIterator], i;
@@ -5,7 +6,10 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
5
6
  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); }); }; }
6
7
  function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
7
8
  };
8
- export async function stringInterpolation(variables, body, data) {
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.generateObjectFromString = exports.generateStringFromObject = exports.generateRandomAlphanumericString = exports.cidePath = void 0;
11
+ exports.stringInterpolation = stringInterpolation;
12
+ async function stringInterpolation(variables, body, data) {
9
13
  /*
10
14
  const placeholders = {
11
15
  'status': 'user.status',
@@ -163,13 +167,13 @@ export async function stringInterpolation(variables, body, data) {
163
167
  }
164
168
  return replacedBody.join("");
165
169
  }
166
- export const cidePath = {
170
+ exports.cidePath = {
167
171
  join: (path) => {
168
172
  return path.join("/");
169
173
  }
170
174
  };
171
175
  // Function to generate a random alphanumeric string of a given length
172
- export const generateRandomAlphanumericString = (length) => {
176
+ const generateRandomAlphanumericString = (length) => {
173
177
  const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
174
178
  let result = '';
175
179
  const charactersLength = characters.length;
@@ -178,8 +182,9 @@ export const generateRandomAlphanumericString = (length) => {
178
182
  }
179
183
  return result;
180
184
  };
185
+ exports.generateRandomAlphanumericString = generateRandomAlphanumericString;
181
186
  // method to generate string from object this should be encripted and decript json from string
182
- export const generateStringFromObject = (object) => {
187
+ const generateStringFromObject = (object) => {
183
188
  let string = JSON.stringify(object);
184
189
  // Use URL-safe base64 encoding
185
190
  let encryptedString = btoa(string);
@@ -187,7 +192,8 @@ export const generateStringFromObject = (object) => {
187
192
  encryptedString = encryptedString.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
188
193
  return encryptedString;
189
194
  };
190
- export const generateObjectFromString = (string) => {
195
+ exports.generateStringFromObject = generateStringFromObject;
196
+ const generateObjectFromString = (string) => {
191
197
  // Restore base64 padding and replace safe characters back
192
198
  let paddedString = string.replace(/-/g, '+').replace(/_/g, '/');
193
199
  // Add padding if needed
@@ -198,3 +204,4 @@ export const generateObjectFromString = (string) => {
198
204
  let object = JSON.parse(decryptedString);
199
205
  return object;
200
206
  };
207
+ exports.generateObjectFromString = generateObjectFromString;
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,17 @@
1
- export * from "./helpers";
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);
package/package.json CHANGED
@@ -1,17 +1,12 @@
1
1
  {
2
+ "devDependencies": {
3
+ "typescript": "^5.4.2"
4
+ },
2
5
  "name": "cloud-ide-lms-model",
3
- "version": "1.1.19",
6
+ "version": "1.1.20",
4
7
  "description": "Package for Model management of Cloud IDEsys LMS",
5
- "type": "module",
6
8
  "main": "lib/index.js",
7
9
  "types": "lib/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./lib/index.d.ts",
11
- "import": "./lib/index.js",
12
- "default": "./lib/index.js"
13
- }
14
- },
15
10
  "scripts": {
16
11
  "test": "echo \"Error: no test specified\" && exit 1",
17
12
  "build": "tsc",