@kipicore/dbcore 1.1.726 → 1.1.727

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.
@@ -98,7 +98,8 @@ export declare enum USER_TYPES {
98
98
  DRIVER = "DRIVER",
99
99
  VENDOR = "VENDOR",
100
100
  SPORT_INSTITUTE_OWNER = "SPORT_INSTITUTE_OWNER",
101
- SPORT_TRAINER = "SPORT_TRAINER"
101
+ SPORT_TRAINER = "SPORT_TRAINER",
102
+ SPORT_ATHLETE = "SPORT_ATHLETE"
102
103
  }
103
104
  export declare enum SUB_USER_TYPES {
104
105
  SUB_TEACHER = "SUB_TEACHER",
@@ -127,6 +127,7 @@ var USER_TYPES;
127
127
  USER_TYPES["VENDOR"] = "VENDOR";
128
128
  USER_TYPES["SPORT_INSTITUTE_OWNER"] = "SPORT_INSTITUTE_OWNER";
129
129
  USER_TYPES["SPORT_TRAINER"] = "SPORT_TRAINER";
130
+ USER_TYPES["SPORT_ATHLETE"] = "SPORT_ATHLETE";
130
131
  })(USER_TYPES || (exports.USER_TYPES = USER_TYPES = {}));
131
132
  var SUB_USER_TYPES;
132
133
  (function (SUB_USER_TYPES) {
@@ -77,6 +77,7 @@ class UserModel extends sequelize_1.Model {
77
77
  [app_1.USER_TYPES.VENDOR]: 'K-VEN',
78
78
  [app_1.USER_TYPES.SPORT_INSTITUTE_OWNER]: 'K-SIO',
79
79
  [app_1.USER_TYPES.SPORT_TRAINER]: 'K-ST',
80
+ [app_1.USER_TYPES.SPORT_ATHLETE]: 'K-SA',
80
81
  };
81
82
  const prefix = USER_TYPE_PREFIXES[userType] || `K-${userType.substring(0, 3).toUpperCase()}`;
82
83
  let data = await uniqueNumberCounterModel_1.default.findOne({ type, userType, instituteId: null });
@@ -189,7 +190,7 @@ UserModel.init({
189
190
  relation: { type: sequelize_1.DataTypes.STRING, allowNull: true },
190
191
  taluka: { type: sequelize_1.DataTypes.STRING, allowNull: true },
191
192
  status: { type: sequelize_1.DataTypes.STRING, allowNull: true, defaultValue: app_1.USER_STATUS.ACTIVE },
192
- portfolioTheme: { type: sequelize_1.DataTypes.STRING, allowNull: true, field: 'portfolio_theme' }
193
+ portfolioTheme: { type: sequelize_1.DataTypes.STRING, allowNull: true, field: 'portfolio_theme' },
193
194
  }, {
194
195
  modelName: 'UserModel',
195
196
  tableName: 'users',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.726",
3
+ "version": "1.1.727",
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",