@kipicore/dbcore 1.1.644 → 1.1.646

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 (86) hide show
  1. package/dist/constants/app.d.ts +2 -14
  2. package/dist/constants/app.js +2 -17
  3. package/dist/constants/errorMessages.d.ts +9 -0
  4. package/dist/constants/errorMessages.js +11 -1
  5. package/dist/constants/successMessages.d.ts +7 -0
  6. package/dist/constants/successMessages.js +9 -1
  7. package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.d.ts +2 -0
  8. package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.js +20 -0
  9. package/dist/interfaces/index.d.ts +0 -11
  10. package/dist/interfaces/index.js +0 -12
  11. package/dist/interfaces/instituteInterface.d.ts +1 -0
  12. package/dist/models/mongodb/index.d.ts +0 -1
  13. package/dist/models/mongodb/index.js +1 -4
  14. package/dist/models/psql/index.d.ts +0 -10
  15. package/dist/models/psql/index.js +1 -22
  16. package/dist/models/psql/instituteModel.d.ts +1 -0
  17. package/dist/models/psql/instituteModel.js +4 -0
  18. package/dist/types/index.d.ts +0 -11
  19. package/dist/types/index.js +0 -12
  20. package/package.json +2 -2
  21. package/dist/interfaces/ageGroupInterface.d.ts +0 -9
  22. package/dist/interfaces/ageGroupInterface.js +0 -2
  23. package/dist/interfaces/assessmentTestInterface.d.ts +0 -24
  24. package/dist/interfaces/assessmentTestInterface.js +0 -2
  25. package/dist/interfaces/equipmentInterface.d.ts +0 -10
  26. package/dist/interfaces/equipmentInterface.js +0 -2
  27. package/dist/interfaces/facilityMasterInterface.d.ts +0 -9
  28. package/dist/interfaces/facilityMasterInterface.js +0 -2
  29. package/dist/interfaces/facilitySportInterface.d.ts +0 -6
  30. package/dist/interfaces/facilitySportInterface.js +0 -2
  31. package/dist/interfaces/skillInterface.d.ts +0 -15
  32. package/dist/interfaces/skillInterface.js +0 -2
  33. package/dist/interfaces/sportCategoryInterface.d.ts +0 -9
  34. package/dist/interfaces/sportCategoryInterface.js +0 -2
  35. package/dist/interfaces/sportInterface.d.ts +0 -10
  36. package/dist/interfaces/sportInterface.js +0 -2
  37. package/dist/interfaces/sportRoleInterface.d.ts +0 -11
  38. package/dist/interfaces/sportRoleInterface.js +0 -2
  39. package/dist/interfaces/sportSubCategoryInterface.d.ts +0 -10
  40. package/dist/interfaces/sportSubCategoryInterface.js +0 -2
  41. package/dist/interfaces/unitInterface.d.ts +0 -10
  42. package/dist/interfaces/unitInterface.js +0 -2
  43. package/dist/models/mongodb/assessmentTestModel.d.ts +0 -4
  44. package/dist/models/mongodb/assessmentTestModel.js +0 -72
  45. package/dist/models/psql/ageGroupModel.d.ts +0 -19
  46. package/dist/models/psql/ageGroupModel.js +0 -53
  47. package/dist/models/psql/equipmentModel.d.ts +0 -20
  48. package/dist/models/psql/equipmentModel.js +0 -57
  49. package/dist/models/psql/facilityMasterModel.d.ts +0 -18
  50. package/dist/models/psql/facilityMasterModel.js +0 -64
  51. package/dist/models/psql/facilitySportModel.d.ts +0 -12
  52. package/dist/models/psql/facilitySportModel.js +0 -51
  53. package/dist/models/psql/skillModel.d.ts +0 -25
  54. package/dist/models/psql/skillModel.js +0 -99
  55. package/dist/models/psql/sportCategoryModel.d.ts +0 -19
  56. package/dist/models/psql/sportCategoryModel.js +0 -53
  57. package/dist/models/psql/sportModel.d.ts +0 -20
  58. package/dist/models/psql/sportModel.js +0 -57
  59. package/dist/models/psql/sportRoleModel.d.ts +0 -21
  60. package/dist/models/psql/sportRoleModel.js +0 -70
  61. package/dist/models/psql/sportSubCategoryModel.d.ts +0 -20
  62. package/dist/models/psql/sportSubCategoryModel.js +0 -75
  63. package/dist/models/psql/unitModel.d.ts +0 -20
  64. package/dist/models/psql/unitModel.js +0 -57
  65. package/dist/types/ageGroupType.d.ts +0 -2
  66. package/dist/types/ageGroupType.js +0 -2
  67. package/dist/types/assessmentTestType.d.ts +0 -2
  68. package/dist/types/assessmentTestType.js +0 -2
  69. package/dist/types/equipmentType.d.ts +0 -2
  70. package/dist/types/equipmentType.js +0 -2
  71. package/dist/types/facilityMasterType.d.ts +0 -3
  72. package/dist/types/facilityMasterType.js +0 -2
  73. package/dist/types/facilitySportType.d.ts +0 -2
  74. package/dist/types/facilitySportType.js +0 -2
  75. package/dist/types/skillType.d.ts +0 -2
  76. package/dist/types/skillType.js +0 -2
  77. package/dist/types/sportCategoryType.d.ts +0 -2
  78. package/dist/types/sportCategoryType.js +0 -2
  79. package/dist/types/sportRoleType.d.ts +0 -2
  80. package/dist/types/sportRoleType.js +0 -2
  81. package/dist/types/sportSubCategoryType.d.ts +0 -2
  82. package/dist/types/sportSubCategoryType.js +0 -2
  83. package/dist/types/sportType.d.ts +0 -2
  84. package/dist/types/sportType.js +0 -2
  85. package/dist/types/unitType.d.ts +0 -2
  86. package/dist/types/unitType.js +0 -2
@@ -1,70 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SportRoleModel = void 0;
4
- const sequelize_1 = require("sequelize");
5
- const index_1 = require("./index");
6
- class SportRoleModel extends sequelize_1.Model {
7
- static associate(models) {
8
- const { UserModel, SportModel } = models;
9
- SportRoleModel.belongsTo(UserModel, {
10
- foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
11
- as: 'createdByUser',
12
- });
13
- SportRoleModel.belongsTo(UserModel, {
14
- foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
15
- as: 'updatedByUser',
16
- });
17
- SportRoleModel.belongsTo(UserModel, {
18
- foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
19
- as: 'deletedByUser',
20
- });
21
- SportRoleModel.belongsTo(SportModel, {
22
- foreignKey: { name: 'sportId', allowNull: true, field: 'sport_id' },
23
- as: 'sportRoleSport',
24
- });
25
- SportModel.hasMany(SportRoleModel, {
26
- foreignKey: { name: 'sportId', allowNull: true, field: 'sport_id' },
27
- as: 'sportHasSportRoleList',
28
- });
29
- }
30
- }
31
- exports.SportRoleModel = SportRoleModel;
32
- SportRoleModel.init({
33
- id: {
34
- type: sequelize_1.DataTypes.UUID,
35
- defaultValue: sequelize_1.DataTypes.UUIDV4,
36
- allowNull: false,
37
- primaryKey: true,
38
- },
39
- sportId: {
40
- type: sequelize_1.DataTypes.UUID,
41
- field: 'sport_id',
42
- allowNull: true,
43
- },
44
- name: {
45
- type: sequelize_1.DataTypes.STRING,
46
- allowNull: true,
47
- },
48
- code: {
49
- type: sequelize_1.DataTypes.STRING,
50
- allowNull: true,
51
- },
52
- description: {
53
- type: sequelize_1.DataTypes.TEXT,
54
- allowNull: true,
55
- },
56
- icon: {
57
- type: sequelize_1.DataTypes.STRING,
58
- allowNull: true,
59
- },
60
- status: {
61
- type: sequelize_1.DataTypes.STRING,
62
- allowNull: true,
63
- },
64
- }, {
65
- modelName: 'SportRoleModel',
66
- tableName: 'sport_roles',
67
- timestamps: true,
68
- sequelize: index_1.sequelize,
69
- });
70
- exports.default = SportRoleModel;
@@ -1,20 +0,0 @@
1
- import { Model } from 'sequelize';
2
- import { ISportSubCategoryModelAttributes } from '../../interfaces/sportSubCategoryInterface';
3
- import { TSportSubCategoryModelCreationAttributes } from '../../types/sportSubCategoryType';
4
- import { COMMAN_STATUS } from '../../constants/app';
5
- export declare class SportSubCategoryModel extends Model<ISportSubCategoryModelAttributes, TSportSubCategoryModelCreationAttributes> {
6
- id: string;
7
- sportId: string;
8
- categoryId: string;
9
- name: string;
10
- code: string;
11
- status: COMMAN_STATUS;
12
- createdBy?: string;
13
- updatedBy?: string;
14
- deletedBy?: string;
15
- readonly createdAt: Date;
16
- readonly updatedAt: Date;
17
- readonly deletedAt?: string;
18
- static associate(models: any): void;
19
- }
20
- export default SportSubCategoryModel;
@@ -1,75 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SportSubCategoryModel = void 0;
4
- const sequelize_1 = require("sequelize");
5
- const index_1 = require("./index");
6
- class SportSubCategoryModel extends sequelize_1.Model {
7
- static associate(models) {
8
- const { UserModel, SportModel, SportCategoryModel } = models;
9
- SportSubCategoryModel.belongsTo(UserModel, {
10
- foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
11
- as: 'createdByUser',
12
- });
13
- SportSubCategoryModel.belongsTo(UserModel, {
14
- foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
15
- as: 'updatedByUser',
16
- });
17
- SportSubCategoryModel.belongsTo(UserModel, {
18
- foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
19
- as: 'deletedByUser',
20
- });
21
- SportSubCategoryModel.belongsTo(SportModel, {
22
- foreignKey: { name: 'sportId', allowNull: true, field: 'sport_id' },
23
- as: 'sportSubCategorySport',
24
- });
25
- SportModel.hasMany(SportSubCategoryModel, {
26
- foreignKey: { name: 'sportId', allowNull: true, field: 'sport_id' },
27
- as: 'sportHasSportSubCategoryList',
28
- });
29
- SportSubCategoryModel.belongsTo(SportCategoryModel, {
30
- foreignKey: { name: 'categoryId', allowNull: true, field: 'category_id' },
31
- as: 'sportSubCategoryCategory',
32
- });
33
- SportCategoryModel.hasMany(SportSubCategoryModel, {
34
- foreignKey: { name: 'categoryId', allowNull: true, field: 'category_id' },
35
- as: 'categoryHasSportSubCategoryList',
36
- });
37
- }
38
- }
39
- exports.SportSubCategoryModel = SportSubCategoryModel;
40
- SportSubCategoryModel.init({
41
- id: {
42
- type: sequelize_1.DataTypes.UUID,
43
- defaultValue: sequelize_1.DataTypes.UUIDV4,
44
- allowNull: false,
45
- primaryKey: true,
46
- },
47
- sportId: {
48
- type: sequelize_1.DataTypes.UUID,
49
- field: 'sport_id',
50
- allowNull: true,
51
- },
52
- categoryId: {
53
- type: sequelize_1.DataTypes.UUID,
54
- field: 'category_id',
55
- allowNull: true,
56
- },
57
- name: {
58
- type: sequelize_1.DataTypes.STRING,
59
- allowNull: true,
60
- },
61
- code: {
62
- type: sequelize_1.DataTypes.STRING,
63
- allowNull: true,
64
- },
65
- status: {
66
- type: sequelize_1.DataTypes.STRING,
67
- allowNull: true,
68
- },
69
- }, {
70
- modelName: 'SportSubCategoryModel',
71
- tableName: 'sport_sub_categories',
72
- timestamps: true,
73
- sequelize: index_1.sequelize,
74
- });
75
- exports.default = SportSubCategoryModel;
@@ -1,20 +0,0 @@
1
- import { Model } from 'sequelize';
2
- import { IUnitModelAttributes } from '../../interfaces/unitInterface';
3
- import { TUnitModelCreationAttributes } from '../../types/unitType';
4
- import { COMMAN_STATUS } from '../../constants/app';
5
- export declare class UnitModel extends Model<IUnitModelAttributes, TUnitModelCreationAttributes> {
6
- id: string;
7
- name: string;
8
- code: string;
9
- symbol: string;
10
- description?: string;
11
- status: COMMAN_STATUS;
12
- createdBy?: string;
13
- updatedBy?: string;
14
- deletedBy?: string;
15
- readonly createdAt: Date;
16
- readonly updatedAt: Date;
17
- readonly deletedAt?: string;
18
- static associate(models: any): void;
19
- }
20
- export default UnitModel;
@@ -1,57 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnitModel = void 0;
4
- const sequelize_1 = require("sequelize");
5
- const index_1 = require("./index");
6
- class UnitModel extends sequelize_1.Model {
7
- static associate(models) {
8
- const { UserModel } = models;
9
- UnitModel.belongsTo(UserModel, {
10
- foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
11
- as: 'createdByUser',
12
- });
13
- UnitModel.belongsTo(UserModel, {
14
- foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
15
- as: 'updatedByUser',
16
- });
17
- UnitModel.belongsTo(UserModel, {
18
- foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
19
- as: 'deletedByUser',
20
- });
21
- }
22
- }
23
- exports.UnitModel = UnitModel;
24
- UnitModel.init({
25
- id: {
26
- type: sequelize_1.DataTypes.UUID,
27
- defaultValue: sequelize_1.DataTypes.UUIDV4,
28
- allowNull: false,
29
- primaryKey: true,
30
- },
31
- name: {
32
- type: sequelize_1.DataTypes.STRING,
33
- allowNull: true,
34
- },
35
- code: {
36
- type: sequelize_1.DataTypes.STRING,
37
- allowNull: true,
38
- },
39
- symbol: {
40
- type: sequelize_1.DataTypes.STRING,
41
- allowNull: true,
42
- },
43
- description: {
44
- type: sequelize_1.DataTypes.TEXT,
45
- allowNull: true,
46
- },
47
- status: {
48
- type: sequelize_1.DataTypes.STRING,
49
- allowNull: true,
50
- },
51
- }, {
52
- modelName: 'UnitModel',
53
- tableName: 'units',
54
- timestamps: true,
55
- sequelize: index_1.sequelize,
56
- });
57
- exports.default = UnitModel;
@@ -1,2 +0,0 @@
1
- import { IAgeGroupModelAttributes } from '../interfaces/ageGroupInterface';
2
- export type TAgeGroupModelCreationAttributes = Partial<IAgeGroupModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { IAssessmentTestModelAttributes } from '../interfaces/assessmentTestInterface';
2
- export type TAssessmentTestModelCreationAttributes = Partial<IAssessmentTestModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { IEquipmentModelAttributes } from '../interfaces/equipmentInterface';
2
- export type TEquipmentModelCreationAttributes = Partial<IEquipmentModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { Optional } from 'sequelize';
2
- import { IFacilityMasterModelAttributes } from '../interfaces/facilityMasterInterface';
3
- export type TFacilityMasterModelCreationAttributes = Optional<IFacilityMasterModelAttributes, 'id' | 'createdBy' | 'updatedBy' | 'deletedBy' | 'createdAt' | 'updatedAt' | 'deletedAt'>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { IFacilitySportModelAttributes } from '../interfaces/facilitySportInterface';
2
- export type TFacilitySportModelCreationAttributes = Partial<IFacilitySportModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ISkillModelAttributes } from '../interfaces/skillInterface';
2
- export type TSkillModelCreationAttributes = Partial<ISkillModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ISportCategoryModelAttributes } from '../interfaces/sportCategoryInterface';
2
- export type TSportCategoryModelCreationAttributes = Partial<ISportCategoryModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ISportRoleModelAttributes } from '../interfaces/sportRoleInterface';
2
- export type TSportRoleModelCreationAttributes = Partial<ISportRoleModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ISportSubCategoryModelAttributes } from '../interfaces/sportSubCategoryInterface';
2
- export type TSportSubCategoryModelCreationAttributes = Partial<ISportSubCategoryModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { ISportModelAttributes } from '../interfaces/sportInterface';
2
- export type TSportModelCreationAttributes = Partial<ISportModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { IUnitModelAttributes } from '../interfaces/unitInterface';
2
- export type TUnitModelCreationAttributes = Partial<IUnitModelAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });