@kipicore/dbcore 1.1.656 → 1.1.657
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.
- package/dist/constants/app.d.ts +12 -15
- package/dist/constants/app.js +17 -20
- package/dist/constants/errorMessages.d.ts +0 -17
- package/dist/constants/errorMessages.js +1 -20
- package/dist/constants/successMessages.d.ts +0 -14
- package/dist/constants/successMessages.js +1 -17
- package/dist/db/psql/migrations/20260714095754-create-arena-models.js +642 -0
- package/dist/interfaces/ageGroupInterface.d.ts +12 -0
- package/dist/interfaces/assessmentTestInterface.d.ts +24 -0
- package/dist/interfaces/categoriesInterface.d.ts +1 -2
- package/dist/interfaces/equipmentInterface.d.ts +10 -0
- package/dist/interfaces/equipmentInterface.js +2 -0
- package/dist/interfaces/facilityMasterInterface.d.ts +9 -0
- package/dist/interfaces/facilityMasterInterface.js +2 -0
- package/dist/interfaces/facilitySportInterface.d.ts +6 -0
- package/dist/interfaces/facilitySportInterface.js +2 -0
- package/dist/interfaces/index.d.ts +11 -1
- package/dist/interfaces/index.js +12 -1
- package/dist/interfaces/instituteInterface.d.ts +0 -1
- package/dist/interfaces/skillInterface.d.ts +15 -0
- package/dist/interfaces/skillInterface.js +2 -0
- package/dist/interfaces/sportCategoryInterface.d.ts +9 -0
- package/dist/interfaces/sportCategoryInterface.js +2 -0
- package/dist/interfaces/sportInfoInterface.d.ts +23 -0
- package/dist/interfaces/sportInfoInterface.js +2 -0
- package/dist/interfaces/sportInterface.d.ts +10 -0
- package/dist/interfaces/sportInterface.js +2 -0
- package/dist/interfaces/sportRoleInterface.d.ts +11 -0
- package/dist/interfaces/sportRoleInterface.js +2 -0
- package/dist/interfaces/sportSubCategoryInterface.d.ts +10 -0
- package/dist/interfaces/sportSubCategoryInterface.js +2 -0
- package/dist/interfaces/subCategoriesInterface.d.ts +1 -2
- package/dist/interfaces/unitInterface.d.ts +10 -0
- package/dist/interfaces/unitInterface.js +2 -0
- package/dist/interfaces/userInterface.d.ts +1 -2
- package/dist/interfaces/vendorCompanyMetaInterface.d.ts +1 -1
- package/dist/models/mongodb/assessmentTestModel.d.ts +4 -0
- package/dist/models/mongodb/assessmentTestModel.js +72 -0
- package/dist/models/mongodb/index.d.ts +2 -0
- package/dist/models/mongodb/index.js +6 -1
- package/dist/models/mongodb/productMetaModel.js +0 -8
- package/dist/models/mongodb/sportInfoModel.d.ts +4 -0
- package/dist/models/mongodb/sportInfoModel.js +71 -0
- package/dist/models/mongodb/vendorCompanyMetaModel.js +1 -1
- package/dist/models/psql/SubCategoriesModel.d.ts +1 -2
- package/dist/models/psql/SubCategoriesModel.js +0 -5
- package/dist/models/psql/ageGroupModel.d.ts +22 -0
- package/dist/models/psql/ageGroupModel.js +76 -0
- package/dist/models/psql/categoriesModel.d.ts +1 -2
- package/dist/models/psql/categoriesModel.js +0 -5
- package/dist/models/psql/equipmentModel.d.ts +20 -0
- package/dist/models/psql/equipmentModel.js +57 -0
- package/dist/models/psql/facilityMasterModel.d.ts +18 -0
- package/dist/models/psql/facilityMasterModel.js +64 -0
- package/dist/models/psql/facilitySportModel.d.ts +12 -0
- package/dist/models/psql/facilitySportModel.js +51 -0
- package/dist/models/psql/index.d.ts +10 -1
- package/dist/models/psql/index.js +23 -4
- package/dist/models/psql/instituteModel.d.ts +0 -1
- package/dist/models/psql/instituteModel.js +2 -5
- package/dist/models/psql/skillModel.d.ts +25 -0
- package/dist/models/psql/skillModel.js +99 -0
- package/dist/models/psql/sportCategoryModel.d.ts +19 -0
- package/dist/models/psql/sportCategoryModel.js +53 -0
- package/dist/models/psql/sportModel.d.ts +20 -0
- package/dist/models/psql/sportModel.js +58 -0
- package/dist/models/psql/sportRoleModel.d.ts +21 -0
- package/dist/models/psql/sportRoleModel.js +71 -0
- package/dist/models/psql/sportSubCategoryModel.d.ts +20 -0
- package/dist/models/psql/sportSubCategoryModel.js +75 -0
- package/dist/models/psql/unitModel.d.ts +20 -0
- package/dist/models/psql/unitModel.js +57 -0
- package/dist/models/psql/userModel.d.ts +1 -2
- package/dist/models/psql/userModel.js +0 -1
- package/dist/types/ageGroupType.d.ts +2 -0
- package/dist/types/ageGroupType.js +2 -0
- package/dist/types/assessmentTestType.d.ts +2 -0
- package/dist/types/assessmentTestType.js +2 -0
- package/dist/types/commonType.d.ts +1 -1
- package/dist/types/equipmentType.d.ts +2 -0
- package/dist/types/equipmentType.js +2 -0
- package/dist/types/facilityMasterType.d.ts +3 -0
- package/dist/types/facilityMasterType.js +2 -0
- package/dist/types/facilitySportType.d.ts +2 -0
- package/dist/types/facilitySportType.js +2 -0
- package/dist/types/index.d.ts +11 -1
- package/dist/types/index.js +12 -1
- package/dist/types/skillType.d.ts +2 -0
- package/dist/types/skillType.js +2 -0
- package/dist/types/sportCategoryType.d.ts +2 -0
- package/dist/types/sportCategoryType.js +2 -0
- package/dist/types/sportInfoType.d.ts +2 -0
- package/dist/types/sportInfoType.js +2 -0
- package/dist/types/sportRoleType.d.ts +2 -0
- package/dist/types/sportRoleType.js +2 -0
- package/dist/types/sportSubCategoryType.d.ts +2 -0
- package/dist/types/sportSubCategoryType.js +2 -0
- package/dist/types/sportType.d.ts +2 -0
- package/dist/types/sportType.js +2 -0
- package/dist/types/unitType.d.ts +2 -0
- package/dist/types/unitType.js +2 -0
- package/package.json +1 -1
- package/dist/db/psql/migrations/20260714111425-change_status_enum_to_string_in_institutes.js +0 -46
- package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.d.ts +0 -2
- package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.js +0 -20
- package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.d.ts +0 -2
- package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.js +0 -156
- package/dist/db/psql/migrations/20260717071354-add_type_to_categories.d.ts +0 -2
- package/dist/db/psql/migrations/20260717071354-add_type_to_categories.js +0 -19
- package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.d.ts +0 -2
- package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.js +0 -19
- package/dist/db/psql/migrations/20260717095051-add_status_to_users.d.ts +0 -2
- package/dist/db/psql/migrations/20260717095051-add_status_to_users.js +0 -19
- package/dist/interfaces/aiModelKeysInterface.d.ts +0 -15
- package/dist/models/psql/aiModelKeysModel.d.ts +0 -20
- package/dist/models/psql/aiModelKeysModel.js +0 -70
- package/dist/types/aiModelKeysType.d.ts +0 -3
- /package/dist/db/psql/migrations/{20260714111425-change_status_enum_to_string_in_institutes.d.ts → 20260714095754-create-arena-models.d.ts} +0 -0
- /package/dist/interfaces/{aiModelKeysInterface.js → ageGroupInterface.js} +0 -0
- /package/dist/{types/aiModelKeysType.js → interfaces/assessmentTestInterface.js} +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
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, FileStorageModel } = models;
|
|
9
|
+
SportRoleModel.belongsTo(FileStorageModel, { foreignKey: 'icon', as: 'iconFile' });
|
|
10
|
+
SportRoleModel.belongsTo(UserModel, {
|
|
11
|
+
foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
|
|
12
|
+
as: 'createdByUser',
|
|
13
|
+
});
|
|
14
|
+
SportRoleModel.belongsTo(UserModel, {
|
|
15
|
+
foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
|
|
16
|
+
as: 'updatedByUser',
|
|
17
|
+
});
|
|
18
|
+
SportRoleModel.belongsTo(UserModel, {
|
|
19
|
+
foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
|
|
20
|
+
as: 'deletedByUser',
|
|
21
|
+
});
|
|
22
|
+
SportRoleModel.belongsTo(SportModel, {
|
|
23
|
+
foreignKey: { name: 'sportId', allowNull: true, field: 'sport_id' },
|
|
24
|
+
as: 'sportRoleSport',
|
|
25
|
+
});
|
|
26
|
+
SportModel.hasMany(SportRoleModel, {
|
|
27
|
+
foreignKey: { name: 'sportId', allowNull: true, field: 'sport_id' },
|
|
28
|
+
as: 'sportHasSportRoleList',
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.SportRoleModel = SportRoleModel;
|
|
33
|
+
SportRoleModel.init({
|
|
34
|
+
id: {
|
|
35
|
+
type: sequelize_1.DataTypes.UUID,
|
|
36
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
37
|
+
allowNull: false,
|
|
38
|
+
primaryKey: true,
|
|
39
|
+
},
|
|
40
|
+
sportId: {
|
|
41
|
+
type: sequelize_1.DataTypes.UUID,
|
|
42
|
+
field: 'sport_id',
|
|
43
|
+
allowNull: true,
|
|
44
|
+
},
|
|
45
|
+
name: {
|
|
46
|
+
type: sequelize_1.DataTypes.STRING,
|
|
47
|
+
allowNull: true,
|
|
48
|
+
},
|
|
49
|
+
code: {
|
|
50
|
+
type: sequelize_1.DataTypes.STRING,
|
|
51
|
+
allowNull: true,
|
|
52
|
+
},
|
|
53
|
+
description: {
|
|
54
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
55
|
+
allowNull: true,
|
|
56
|
+
},
|
|
57
|
+
icon: {
|
|
58
|
+
type: sequelize_1.DataTypes.UUID,
|
|
59
|
+
allowNull: true,
|
|
60
|
+
},
|
|
61
|
+
status: {
|
|
62
|
+
type: sequelize_1.DataTypes.STRING,
|
|
63
|
+
allowNull: true,
|
|
64
|
+
},
|
|
65
|
+
}, {
|
|
66
|
+
modelName: 'SportRoleModel',
|
|
67
|
+
tableName: 'sport_roles',
|
|
68
|
+
timestamps: true,
|
|
69
|
+
sequelize: index_1.sequelize,
|
|
70
|
+
});
|
|
71
|
+
exports.default = SportRoleModel;
|
|
@@ -0,0 +1,20 @@
|
|
|
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;
|
|
@@ -0,0 +1,75 @@
|
|
|
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;
|
|
@@ -0,0 +1,20 @@
|
|
|
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;
|
|
@@ -0,0 +1,57 @@
|
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
|
-
import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION,
|
|
2
|
+
import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION, USER_TYPES } from '../../constants/app';
|
|
3
3
|
import { IUserAttributes } from '../../interfaces/userInterface';
|
|
4
4
|
import { TUserCreationAttributes } from '../../types/userType';
|
|
5
5
|
declare class UserModel extends Model<IUserAttributes, TUserCreationAttributes> implements IUserAttributes {
|
|
@@ -44,7 +44,6 @@ declare class UserModel extends Model<IUserAttributes, TUserCreationAttributes>
|
|
|
44
44
|
district?: string;
|
|
45
45
|
area?: string;
|
|
46
46
|
taluka?: string;
|
|
47
|
-
status?: USER_STATUS;
|
|
48
47
|
readonly createdAt: Date;
|
|
49
48
|
readonly deletedAt: string;
|
|
50
49
|
readonly updatedAt: Date;
|
|
@@ -186,7 +186,6 @@ UserModel.init({
|
|
|
186
186
|
medications: { type: sequelize_1.DataTypes.STRING, allowNull: true, field: 'medications' },
|
|
187
187
|
relation: { type: sequelize_1.DataTypes.STRING, allowNull: true },
|
|
188
188
|
taluka: { type: sequelize_1.DataTypes.STRING, allowNull: true },
|
|
189
|
-
status: { type: sequelize_1.DataTypes.STRING, allowNull: true, defaultValue: app_1.USER_STATUS.ACTIVE },
|
|
190
189
|
}, {
|
|
191
190
|
modelName: 'UserModel',
|
|
192
191
|
tableName: 'users',
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Optional } from 'sequelize';
|
|
2
|
+
import { IFacilityMasterModelAttributes } from '../interfaces/facilityMasterInterface';
|
|
3
|
+
export type TFacilityMasterModelCreationAttributes = Optional<IFacilityMasterModelAttributes, 'id' | 'createdBy' | 'updatedBy' | 'deletedBy' | 'createdAt' | 'updatedAt' | 'deletedAt'>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -233,7 +233,6 @@ export * from './userFinalResultType';
|
|
|
233
233
|
export * from './refundType';
|
|
234
234
|
export * from './kipiverseContactFormType';
|
|
235
235
|
export * from './moduleDocsType';
|
|
236
|
-
export * from './aiModelKeysType';
|
|
237
236
|
export * from './accountFinancialYearType';
|
|
238
237
|
export * from './accountPeriodLockType';
|
|
239
238
|
export * from './accountNumberSequenceType';
|
|
@@ -244,3 +243,14 @@ export * from './accountCostCenterType';
|
|
|
244
243
|
export * from './accountVoucherTypeType';
|
|
245
244
|
export * from './vendorCompanyMetaType';
|
|
246
245
|
export * from './productMetaType';
|
|
246
|
+
export * from './sportType';
|
|
247
|
+
export * from './sportCategoryType';
|
|
248
|
+
export * from './sportSubCategoryType';
|
|
249
|
+
export * from './sportRoleType';
|
|
250
|
+
export * from './equipmentType';
|
|
251
|
+
export * from './facilityMasterType';
|
|
252
|
+
export * from './facilitySportType';
|
|
253
|
+
export * from './unitType';
|
|
254
|
+
export * from './skillType';
|
|
255
|
+
export * from './ageGroupType';
|
|
256
|
+
export * from './assessmentTestType';
|
package/dist/types/index.js
CHANGED
|
@@ -249,7 +249,6 @@ __exportStar(require("./userFinalResultType"), exports);
|
|
|
249
249
|
__exportStar(require("./refundType"), exports);
|
|
250
250
|
__exportStar(require("./kipiverseContactFormType"), exports);
|
|
251
251
|
__exportStar(require("./moduleDocsType"), exports);
|
|
252
|
-
__exportStar(require("./aiModelKeysType"), exports);
|
|
253
252
|
__exportStar(require("./accountFinancialYearType"), exports);
|
|
254
253
|
__exportStar(require("./accountPeriodLockType"), exports);
|
|
255
254
|
__exportStar(require("./accountNumberSequenceType"), exports);
|
|
@@ -260,3 +259,15 @@ __exportStar(require("./accountCostCenterType"), exports);
|
|
|
260
259
|
__exportStar(require("./accountVoucherTypeType"), exports);
|
|
261
260
|
__exportStar(require("./vendorCompanyMetaType"), exports);
|
|
262
261
|
__exportStar(require("./productMetaType"), exports);
|
|
262
|
+
// Arena Module
|
|
263
|
+
__exportStar(require("./sportType"), exports);
|
|
264
|
+
__exportStar(require("./sportCategoryType"), exports);
|
|
265
|
+
__exportStar(require("./sportSubCategoryType"), exports);
|
|
266
|
+
__exportStar(require("./sportRoleType"), exports);
|
|
267
|
+
__exportStar(require("./equipmentType"), exports);
|
|
268
|
+
__exportStar(require("./facilityMasterType"), exports);
|
|
269
|
+
__exportStar(require("./facilitySportType"), exports);
|
|
270
|
+
__exportStar(require("./unitType"), exports);
|
|
271
|
+
__exportStar(require("./skillType"), exports);
|
|
272
|
+
__exportStar(require("./ageGroupType"), exports);
|
|
273
|
+
__exportStar(require("./assessmentTestType"), exports);
|
package/package.json
CHANGED
package/dist/db/psql/migrations/20260714111425-change_status_enum_to_string_in_institutes.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
module.exports = {
|
|
3
|
-
up: async (queryInterface, Sequelize) => {
|
|
4
|
-
const table = await queryInterface.describeTable('institutes');
|
|
5
|
-
if (table.status) {
|
|
6
|
-
// In PostgreSQL, changing from ENUM to VARCHAR often requires a USING clause
|
|
7
|
-
try {
|
|
8
|
-
await queryInterface.sequelize.query('ALTER TABLE institutes ALTER COLUMN status TYPE VARCHAR(255) USING status::varchar;');
|
|
9
|
-
await queryInterface.changeColumn('institutes', 'status', {
|
|
10
|
-
type: Sequelize.STRING,
|
|
11
|
-
allowNull: false,
|
|
12
|
-
defaultValue: 'ACTIVE',
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
catch (error) {
|
|
16
|
-
// Fallback if the raw query fails
|
|
17
|
-
await queryInterface.changeColumn('institutes', 'status', {
|
|
18
|
-
type: Sequelize.STRING,
|
|
19
|
-
allowNull: false,
|
|
20
|
-
defaultValue: 'ACTIVE',
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
down: async (queryInterface, Sequelize) => {
|
|
26
|
-
const table = await queryInterface.describeTable('institutes');
|
|
27
|
-
if (table.status) {
|
|
28
|
-
try {
|
|
29
|
-
await queryInterface.sequelize.query('ALTER TABLE institutes ALTER COLUMN status TYPE "enum_institutes_status" USING status::text::"enum_institutes_status";');
|
|
30
|
-
await queryInterface.changeColumn('institutes', 'status', {
|
|
31
|
-
type: Sequelize.ENUM('ACTIVE', 'INACTIVE', 'PENDING', 'BLOCKED'), // Typical statuses, can adapt if needed
|
|
32
|
-
allowNull: false,
|
|
33
|
-
defaultValue: 'ACTIVE',
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
catch (error) {
|
|
37
|
-
// Fallback
|
|
38
|
-
await queryInterface.changeColumn('institutes', 'status', {
|
|
39
|
-
type: Sequelize.ENUM('ACTIVE', 'INACTIVE', 'PENDING', 'BLOCKED'),
|
|
40
|
-
allowNull: false,
|
|
41
|
-
defaultValue: 'ACTIVE',
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const up = async (queryInterface, Sequelize) => {
|
|
3
|
-
const table = await queryInterface.describeTable('institutes');
|
|
4
|
-
if (!table.note) {
|
|
5
|
-
await queryInterface.addColumn('institutes', 'note', {
|
|
6
|
-
type: Sequelize.STRING,
|
|
7
|
-
allowNull: true,
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
const down = async (queryInterface) => {
|
|
12
|
-
const table = await queryInterface.describeTable('institutes');
|
|
13
|
-
if (table.note) {
|
|
14
|
-
await queryInterface.removeColumn('institutes', 'note');
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
module.exports = {
|
|
18
|
-
up,
|
|
19
|
-
down,
|
|
20
|
-
};
|