@kipicore/dbcore 1.1.47 → 1.1.49

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 (57) hide show
  1. package/.sequelizerc +13 -0
  2. package/dist/db/psql/migrations/20241225101052-add-deleted-by-and-deleted-at-fields.d.ts +1 -1
  3. package/dist/db/psql/migrations/20250106070945-add-user-fields-and-deleted-user-fields.d.ts +1 -1
  4. package/dist/db/psql/migrations/20250106080059-add-fields-and-deleted-fields.d.ts +1 -1
  5. package/dist/db/psql/migrations/20250210102846-add-profileImage-coverImage-to-users.d.ts +1 -1
  6. package/dist/db/psql/migrations/20250211071743-add-action-user-has-histroy.d.ts +1 -1
  7. package/dist/db/psql/migrations/20250213140815-add-assignQuantity-user-has-histroy.d.ts +1 -1
  8. package/dist/db/psql/migrations/20250214072626-add-middlename-user.d.ts +1 -1
  9. package/dist/db/psql/migrations/20250224085333-add-apptype-in-user.d.ts +1 -1
  10. package/dist/db/psql/migrations/20250226053006-add-brouchure-in-institute.d.ts +1 -1
  11. package/dist/db/psql/migrations/20250227123530-add-defult-in-fee-reminder.d.ts +1 -1
  12. package/dist/db/psql/migrations/20250304052831-add-institued-in-school-data-clm.d.ts +1 -1
  13. package/dist/db/psql/migrations/20250306053557-add-shifyId-in-batch.d.ts +1 -1
  14. package/dist/db/psql/migrations/20250402090653-add-user-area.d.ts +1 -1
  15. package/dist/db/psql/migrations/20250409105229-add-user-type-in-role.d.ts +1 -1
  16. package/dist/db/psql/migrations/20250417121316-make-institute-id-nullable-in-type-management.d.ts +1 -1
  17. package/dist/db/psql/migrations/20250419071236-fee_histroy_add_school_clm.d.ts +1 -1
  18. package/dist/db/psql/migrations/20250419085334-fee_histroy_add_school_clm.d.ts +1 -1
  19. package/dist/db/psql/migrations/20250421085618-add-entityIds-field-in-announcements.d.ts +1 -1
  20. package/dist/db/psql/migrations/20250422114032-add-account.d.ts +1 -1
  21. package/dist/db/psql/migrations/20250423051841-add-master-leave-clm.d.ts +1 -1
  22. package/dist/db/psql/migrations/20250423093827-update-institued-district.d.ts +1 -1
  23. package/dist/db/psql/migrations/20250424044755-update-fee-history-feeTyps-clm.d.ts +1 -1
  24. package/dist/db/psql/migrations/20250426070309-update-banner-clm-userType.d.ts +1 -1
  25. package/dist/db/psql/migrations/20250505035157-update-fee-collection-clm-add.d.ts +1 -1
  26. package/dist/db/psql/migrations/20250505082924-update-banner-clm.d.ts +1 -1
  27. package/dist/db/psql/migrations/20250505094616-about-as-clm-in-institued.d.ts +1 -1
  28. package/dist/db/psql/migrations/20250506070110-add-dayOfWeek-clm-in-working-model.d.ts +1 -1
  29. package/dist/db/psql/migrations/20250509055920-add-feecollection-isleft-clm.d.ts +1 -1
  30. package/dist/db/psql/migrations/20250513061037-add-techer-clm-batch.d.ts +1 -1
  31. package/dist/db/psql/migrations/20250514101801-add-slotId-workingShif.d.ts +1 -1
  32. package/dist/db/psql/migrations/20250516062917-add-globalId-clm-user-model.d.ts +1 -1
  33. package/dist/db/psql/migrations/20250516063542-add-globalId-clm-institute-model.d.ts +1 -1
  34. package/dist/db/psql/migrations/20250520061231-add-institued_mobile_person_data.d.ts +1 -1
  35. package/dist/db/psql/migrations/20250522044729-add-institued_update_add_2.d.ts +1 -1
  36. package/dist/db/psql/migrations/20250526035543-add-totalQuantity_add_remainingQuantiy_clm_userHasInventoryHistory.d.ts +1 -1
  37. package/dist/db/psql/migrations/20250526093322-add-appType_clm_in_module.d.ts +1 -1
  38. package/dist/db/psql/migrations/20250526094030-add-appType_clm_in_action.d.ts +1 -1
  39. package/dist/db/psql/migrations/20250526094233-add-appType_clm_in_module_features.d.ts +1 -1
  40. package/dist/db/psql/migrations/20250527065001-add-app-type-in-role-model.d.ts +1 -1
  41. package/dist/db/psql/migrations/20250528045906-add-module-type-to-notifications.d.ts +1 -1
  42. package/dist/db/psql/migrations/20250602090331-add-or-update-user-model-medicalHistory.d.ts +1 -1
  43. package/dist/db/psql/migrations/20250602100550-add-planner-sync-status-to-institute.d.ts +1 -1
  44. package/dist/db/psql/migrations/20250603054900-add-clm-for-defult-data-add-or-not-in-ins-model.d.ts +1 -1
  45. package/dist/db/psql/migrations/20250604103905-add-is-institute-default-field-in-role.d.ts +1 -1
  46. package/dist/db/psql/migrations/20250604121051-update-mobile-number-opstion.d.ts +1 -1
  47. package/dist/db/psql/migrations/20250701095321-add-clm-institute-pdfId.d.ts +1 -1
  48. package/dist/db/psql/migrations/20250717092933-add-floor-id-to-class-rooms.d.ts +1 -1
  49. package/dist/db/psql/migrations/20250718121251-add-clm-classroom-typeid.d.ts +1 -1
  50. package/dist/db/psql/migrations/20250721105455-add-clm-classroom-add-classroomnumber.d.ts +1 -1
  51. package/dist/db/psql/migrations/20250723150111-add-clm-batch-slotId.d.ts +1 -1
  52. package/dist/db/psql/migrations/20250804090437-update_ins_in_pdf_id_string_to_uuid.d.ts +1 -1
  53. package/dist/db/psql/migrations/20250805062440-remove_unique_key_into_batch_subject_project_assessments.d.ts +1 -1
  54. package/dist/db/psql/migrations/20250808100700-add_clm_contectFeed_in_ins_givenId.d.ts +1 -1
  55. package/dist/db/psql/migrations/20250908054025-userHasOffer_model_update.d.ts +1 -1
  56. package/dist/db/psql/migrations/20250908054754-offer_in_add_offertype_clm.d.ts +1 -1
  57. package/package.json +11 -4
package/.sequelizerc ADDED
@@ -0,0 +1,13 @@
1
+ // Import the path module to work with file paths
2
+ const path = require("path");
3
+ // Export an object with configuration options for Sequelize CLI
4
+ module.exports = {
5
+ // Configuration file path for Sequelize
6
+ config: path.resolve("configs", "postgresConfig"),
7
+ // Path to the directory where models are stored
8
+ "models-path": path.resolve("models", "psql"),
9
+ // Set the path to the directory to store seeders
10
+ "seeders-path": path.resolve("db/psql", "seeders"),
11
+ // Set the path to the directory to store migrations
12
+ "migrations-path": path.resolve("db/psql", "migrations"),
13
+ };
@@ -1,2 +1,2 @@
1
- declare const _exports: any;
1
+ declare const _exports: import("sequelize-cli").Migration;
2
2
  export = _exports;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,2 +1,2 @@
1
- declare const _exports: any;
1
+ declare const _exports: import("sequelize-cli").Migration;
2
2
  export = _exports;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,2 +1,2 @@
1
- declare const _exports: any;
1
+ declare const _exports: import("sequelize-cli").Migration;
2
2
  export = _exports;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,2 +1,2 @@
1
- declare const _exports: any;
1
+ declare const _exports: import("sequelize-cli").Migration;
2
2
  export = _exports;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,2 +1,2 @@
1
- declare const _exports: any;
1
+ declare const _exports: import("sequelize-cli").Migration;
2
2
  export = _exports;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,2 +1,2 @@
1
- declare const _exports: any;
1
+ declare const _exports: import("sequelize-cli").Migration;
2
2
  export = _exports;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -1,3 +1,3 @@
1
1
  /** @type {import('sequelize-cli').Migration} */
2
- export const up: any;
2
+ export const up: import("sequelize-cli").Migration;
3
3
  export function down(queryInterface: any): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.47",
3
+ "version": "1.1.49",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -17,7 +17,11 @@
17
17
  "build": "tsc -p tsconfig.json",
18
18
  "prebuild": "npm run clean",
19
19
  "lint": "eslint \"src/**/*.ts\"",
20
- "test": "npm run build && tsd"
20
+ "test": "npm run build && tsd",
21
+ "pgdb:migrate": "sequelize db:migrate",
22
+ "pgdb:migrate:undo": "sequelize db:migrate:undo",
23
+ "pgdb:seed:all": "sequelize db:seed:all",
24
+ "pgdb:seed:all:undo": "sequelize db:seed:undo:all"
21
25
  },
22
26
  "keywords": [
23
27
  "postgres",
@@ -48,11 +52,14 @@
48
52
  "@types/node": "^24.5.2",
49
53
  "@types/sequelize": "^4.28.14",
50
54
  "typescript": "^5.5.4",
51
- "prettier": "^3.3.3"
55
+ "prettier": "^3.3.3",
56
+ "sequelize-cli": "^6.6.2",
57
+ "country-state-city": "^3.2.1"
52
58
  },
53
59
  "files": [
54
60
  "dist",
55
61
  "README.md",
56
- "LICENSE"
62
+ "LICENSE",
63
+ ".sequelizerc"
57
64
  ]
58
65
  }