@kipicore/dbcore 1.1.574 → 1.1.576

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 (135) hide show
  1. package/dist/constants/app.d.ts +122 -0
  2. package/dist/constants/app.js +141 -1
  3. package/dist/constants/errorMessages.d.ts +10 -0
  4. package/dist/constants/errorMessages.js +12 -1
  5. package/dist/constants/successMessages.d.ts +12 -0
  6. package/dist/constants/successMessages.js +14 -1
  7. package/dist/db/psql/migrations/20260615045636-add_rms_models.d.ts +2 -0
  8. package/dist/db/psql/migrations/20260615045636-add_rms_models.js +276 -0
  9. package/dist/db/psql/migrations/20260615083628-add_storage_and_asset_transactions.d.ts +2 -0
  10. package/dist/db/psql/migrations/20260615083628-add_storage_and_asset_transactions.js +60 -0
  11. package/dist/interfaces/index.d.ts +19 -0
  12. package/dist/interfaces/index.js +19 -0
  13. package/dist/interfaces/rmsAssetInterface.d.ts +15 -0
  14. package/dist/interfaces/rmsAssetInterface.js +2 -0
  15. package/dist/interfaces/rmsAssetTransactionInterface.d.ts +16 -0
  16. package/dist/interfaces/rmsAssetTransactionInterface.js +2 -0
  17. package/dist/interfaces/rmsAuditLogInterface.d.ts +17 -0
  18. package/dist/interfaces/rmsAuditLogInterface.js +2 -0
  19. package/dist/interfaces/rmsDepartmentInterface.d.ts +10 -0
  20. package/dist/interfaces/rmsDepartmentInterface.js +2 -0
  21. package/dist/interfaces/rmsGrnInterface.d.ts +14 -0
  22. package/dist/interfaces/rmsGrnInterface.js +2 -0
  23. package/dist/interfaces/rmsGrnItemInterface.d.ts +13 -0
  24. package/dist/interfaces/rmsGrnItemInterface.js +2 -0
  25. package/dist/interfaces/rmsLocationInterface.d.ts +12 -0
  26. package/dist/interfaces/rmsLocationInterface.js +2 -0
  27. package/dist/interfaces/rmsPurchaseOrderInterface.d.ts +17 -0
  28. package/dist/interfaces/rmsPurchaseOrderInterface.js +2 -0
  29. package/dist/interfaces/rmsPurchaseOrderItemInterface.d.ts +13 -0
  30. package/dist/interfaces/rmsPurchaseOrderItemInterface.js +2 -0
  31. package/dist/interfaces/rmsPurchaseRequestInterface.d.ts +14 -0
  32. package/dist/interfaces/rmsPurchaseRequestInterface.js +2 -0
  33. package/dist/interfaces/rmsPurchaseRequestItemInterface.d.ts +13 -0
  34. package/dist/interfaces/rmsPurchaseRequestItemInterface.js +2 -0
  35. package/dist/interfaces/rmsRequestApprovalInterface.d.ts +13 -0
  36. package/dist/interfaces/rmsRequestApprovalInterface.js +2 -0
  37. package/dist/interfaces/rmsResourceDetailsInterface.d.ts +19 -0
  38. package/dist/interfaces/rmsResourceDetailsInterface.js +2 -0
  39. package/dist/interfaces/rmsResourceInterface.d.ts +23 -0
  40. package/dist/interfaces/rmsResourceInterface.js +2 -0
  41. package/dist/interfaces/rmsStockInterface.d.ts +17 -0
  42. package/dist/interfaces/rmsStockInterface.js +2 -0
  43. package/dist/interfaces/rmsStockTransactionInterface.d.ts +18 -0
  44. package/dist/interfaces/rmsStockTransactionInterface.js +2 -0
  45. package/dist/interfaces/rmsStorageInterface.d.ts +17 -0
  46. package/dist/interfaces/rmsStorageInterface.js +2 -0
  47. package/dist/interfaces/rmsVendorDocumentInterface.d.ts +11 -0
  48. package/dist/interfaces/rmsVendorDocumentInterface.js +2 -0
  49. package/dist/interfaces/rmsVendorInterface.d.ts +16 -0
  50. package/dist/interfaces/rmsVendorInterface.js +2 -0
  51. package/dist/models/mongodb/index.d.ts +2 -0
  52. package/dist/models/mongodb/index.js +5 -1
  53. package/dist/models/mongodb/rmsAuditLogModel.d.ts +4 -0
  54. package/dist/models/mongodb/rmsAuditLogModel.js +99 -0
  55. package/dist/models/mongodb/rmsResourceDetailsModel.d.ts +8 -0
  56. package/dist/models/mongodb/rmsResourceDetailsModel.js +57 -0
  57. package/dist/models/psql/index.d.ts +18 -0
  58. package/dist/models/psql/index.js +39 -1
  59. package/dist/models/psql/rmsAssetModel.d.ts +25 -0
  60. package/dist/models/psql/rmsAssetModel.js +80 -0
  61. package/dist/models/psql/rmsAssetTransactionModel.d.ts +26 -0
  62. package/dist/models/psql/rmsAssetTransactionModel.js +89 -0
  63. package/dist/models/psql/rmsDepartmentModel.d.ts +20 -0
  64. package/dist/models/psql/rmsDepartmentModel.js +67 -0
  65. package/dist/models/psql/rmsGrnItemModel.d.ts +23 -0
  66. package/dist/models/psql/rmsGrnItemModel.js +75 -0
  67. package/dist/models/psql/rmsGrnModel.d.ts +24 -0
  68. package/dist/models/psql/rmsGrnModel.js +74 -0
  69. package/dist/models/psql/rmsLocationModel.d.ts +22 -0
  70. package/dist/models/psql/rmsLocationModel.js +79 -0
  71. package/dist/models/psql/rmsPurchaseOrderItemModel.d.ts +23 -0
  72. package/dist/models/psql/rmsPurchaseOrderItemModel.js +89 -0
  73. package/dist/models/psql/rmsPurchaseOrderModel.d.ts +27 -0
  74. package/dist/models/psql/rmsPurchaseOrderModel.js +108 -0
  75. package/dist/models/psql/rmsPurchaseRequestItemModel.d.ts +23 -0
  76. package/dist/models/psql/rmsPurchaseRequestItemModel.js +86 -0
  77. package/dist/models/psql/rmsPurchaseRequestModel.d.ts +24 -0
  78. package/dist/models/psql/rmsPurchaseRequestModel.js +96 -0
  79. package/dist/models/psql/rmsRequestApprovalModel.d.ts +23 -0
  80. package/dist/models/psql/rmsRequestApprovalModel.js +79 -0
  81. package/dist/models/psql/rmsResourceModel.d.ts +33 -0
  82. package/dist/models/psql/rmsResourceModel.js +147 -0
  83. package/dist/models/psql/rmsStockModel.d.ts +27 -0
  84. package/dist/models/psql/rmsStockModel.js +113 -0
  85. package/dist/models/psql/rmsStockTransactionModel.d.ts +28 -0
  86. package/dist/models/psql/rmsStockTransactionModel.js +113 -0
  87. package/dist/models/psql/rmsStorageRackModel.d.ts +20 -0
  88. package/dist/models/psql/rmsStorageRackModel.js +57 -0
  89. package/dist/models/psql/rmsStorageSlotModel.d.ts +19 -0
  90. package/dist/models/psql/rmsStorageSlotModel.js +53 -0
  91. package/dist/models/psql/rmsVendorDocumentModel.d.ts +21 -0
  92. package/dist/models/psql/rmsVendorDocumentModel.js +80 -0
  93. package/dist/models/psql/rmsVendorModel.d.ts +27 -0
  94. package/dist/models/psql/rmsVendorModel.js +95 -0
  95. package/dist/types/index.d.ts +19 -0
  96. package/dist/types/index.js +19 -0
  97. package/dist/types/rmsAssetTransactionType.d.ts +3 -0
  98. package/dist/types/rmsAssetTransactionType.js +2 -0
  99. package/dist/types/rmsAssetType.d.ts +3 -0
  100. package/dist/types/rmsAssetType.js +2 -0
  101. package/dist/types/rmsAuditLogType.d.ts +3 -0
  102. package/dist/types/rmsAuditLogType.js +2 -0
  103. package/dist/types/rmsDepartmentType.d.ts +3 -0
  104. package/dist/types/rmsDepartmentType.js +2 -0
  105. package/dist/types/rmsGrnItemType.d.ts +3 -0
  106. package/dist/types/rmsGrnItemType.js +2 -0
  107. package/dist/types/rmsGrnType.d.ts +3 -0
  108. package/dist/types/rmsGrnType.js +2 -0
  109. package/dist/types/rmsLocationType.d.ts +3 -0
  110. package/dist/types/rmsLocationType.js +2 -0
  111. package/dist/types/rmsPurchaseOrderItemType.d.ts +3 -0
  112. package/dist/types/rmsPurchaseOrderItemType.js +2 -0
  113. package/dist/types/rmsPurchaseOrderType.d.ts +3 -0
  114. package/dist/types/rmsPurchaseOrderType.js +2 -0
  115. package/dist/types/rmsPurchaseRequestItemType.d.ts +3 -0
  116. package/dist/types/rmsPurchaseRequestItemType.js +2 -0
  117. package/dist/types/rmsPurchaseRequestType.d.ts +3 -0
  118. package/dist/types/rmsPurchaseRequestType.js +2 -0
  119. package/dist/types/rmsRequestApprovalType.d.ts +3 -0
  120. package/dist/types/rmsRequestApprovalType.js +2 -0
  121. package/dist/types/rmsResourceDetailsType.d.ts +2 -0
  122. package/dist/types/rmsResourceDetailsType.js +2 -0
  123. package/dist/types/rmsResourceType.d.ts +3 -0
  124. package/dist/types/rmsResourceType.js +2 -0
  125. package/dist/types/rmsStockTransactionType.d.ts +3 -0
  126. package/dist/types/rmsStockTransactionType.js +2 -0
  127. package/dist/types/rmsStockType.d.ts +3 -0
  128. package/dist/types/rmsStockType.js +2 -0
  129. package/dist/types/rmsStorageType.d.ts +4 -0
  130. package/dist/types/rmsStorageType.js +2 -0
  131. package/dist/types/rmsVendorDocumentType.d.ts +3 -0
  132. package/dist/types/rmsVendorDocumentType.js +2 -0
  133. package/dist/types/rmsVendorType.d.ts +3 -0
  134. package/dist/types/rmsVendorType.js +2 -0
  135. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsAssetTransactionAttributes } from '../interfaces/rmsAssetTransactionInterface';
3
+ export type TRmsAssetTransactionCreationAttributes = Optional<IRmsAssetTransactionAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsAssetAttributes } from '../interfaces/rmsAssetInterface';
3
+ export type TRmsAssetCreationAttributes = Optional<IRmsAssetAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsAuditLogAttributes } from '../interfaces/rmsAuditLogInterface';
3
+ export type TRmsAuditLogCreationAttributes = Optional<IRmsAuditLogAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsDepartmentAttributes } from '../interfaces/rmsDepartmentInterface';
3
+ export type TRmsDepartmentCreationAttributes = Optional<IRmsDepartmentAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsGrnItemAttributes } from '../interfaces/rmsGrnItemInterface';
3
+ export type TRmsGrnItemCreationAttributes = Optional<IRmsGrnItemAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsGrnAttributes } from '../interfaces/rmsGrnInterface';
3
+ export type TRmsGrnCreationAttributes = Optional<IRmsGrnAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsLocationAttributes } from '../interfaces/rmsLocationInterface';
3
+ export type TRmsLocationCreationAttributes = Optional<IRmsLocationAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsPurchaseOrderItemAttributes } from '../interfaces/rmsPurchaseOrderItemInterface';
3
+ export type TRmsPurchaseOrderItemCreationAttributes = Optional<IRmsPurchaseOrderItemAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsPurchaseOrderAttributes } from '../interfaces/rmsPurchaseOrderInterface';
3
+ export type TRmsPurchaseOrderCreationAttributes = Optional<IRmsPurchaseOrderAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsPurchaseRequestItemAttributes } from '../interfaces/rmsPurchaseRequestItemInterface';
3
+ export type TRmsPurchaseRequestItemCreationAttributes = Optional<IRmsPurchaseRequestItemAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsPurchaseRequestAttributes } from '../interfaces/rmsPurchaseRequestInterface';
3
+ export type TRmsPurchaseRequestCreationAttributes = Optional<IRmsPurchaseRequestAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsRequestApprovalAttributes } from '../interfaces/rmsRequestApprovalInterface';
3
+ export type TRmsRequestApprovalCreationAttributes = Optional<IRmsRequestApprovalAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { IRmsResourceDetailsDocument } from '../interfaces/rmsResourceDetailsInterface';
2
+ export type TRmsResourceDetailsCreationAttributes = Omit<IRmsResourceDetailsDocument, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsResourceAttributes } from '../interfaces/rmsResourceInterface';
3
+ export type TRmsResourceCreationAttributes = Optional<IRmsResourceAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsStockTransactionAttributes } from '../interfaces/rmsStockTransactionInterface';
3
+ export type TRmsStockTransactionCreationAttributes = Optional<IRmsStockTransactionAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsStockAttributes } from '../interfaces/rmsStockInterface';
3
+ export type TRmsStockCreationAttributes = Optional<IRmsStockAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsStorageRackAttributes, IRmsStorageSlotAttributes } from '../interfaces/rmsStorageInterface';
3
+ export type TRmsStorageRackCreationAttributes = Optional<IRmsStorageRackAttributes, 'id'>;
4
+ export type TRmsStorageSlotCreationAttributes = Optional<IRmsStorageSlotAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsVendorDocumentAttributes } from '../interfaces/rmsVendorDocumentInterface';
3
+ export type TRmsVendorDocumentCreationAttributes = Optional<IRmsVendorDocumentAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { Optional } from 'sequelize';
2
+ import { IRmsVendorAttributes } from '../interfaces/rmsVendorInterface';
3
+ export type TRmsVendorCreationAttributes = Optional<IRmsVendorAttributes, 'id'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.574",
3
+ "version": "1.1.576",
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",