@kipicore/dbcore 1.1.397 → 1.1.399

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.
@@ -38,13 +38,13 @@ exports.uploadFileToS3 = uploadFileToS3;
38
38
  const getPresignedUrl = async (bucket, fileStorage, expiresIn = 60 * 60 * 24) => {
39
39
  // if (fileStorage.filePath) return fileStorage.filePath;
40
40
  const s3 = await configs_1.awsClient.s3();
41
- expiresIn = await configs_1.awsClient.expiry();
41
+ // expiresIn = await awsClient.expiry();
42
42
  const s3Key = `${fileStorage.storagePath}/${fileStorage.storageFileName}`;
43
43
  const command = new client_s3_1.GetObjectCommand({
44
44
  Bucket: bucket,
45
45
  Key: s3Key,
46
46
  });
47
- const signedUrl = await (0, s3_request_presigner_1.getSignedUrl)(s3, command, { expiresIn: new Date(expiresIn).getSeconds() }); // in seconds
47
+ const signedUrl = await (0, s3_request_presigner_1.getSignedUrl)(s3, command, { expiresIn }); // in seconds
48
48
  return signedUrl;
49
49
  };
50
50
  exports.getPresignedUrl = getPresignedUrl;
@@ -1,5 +1,6 @@
1
1
  import { INSTITUTE_SUBSCRIPTION_PLAN_STATUS } from '../constants/app';
2
2
  import { IDefaultAttributes } from './commonInterface';
3
+ import { IModulePriceModelAttributes } from './modulePriceInterface';
3
4
  export interface IInstituteSubscriptionPlanModelAttributes extends IDefaultAttributes {
4
5
  id: string;
5
6
  walletTransactionId: string;
@@ -18,4 +19,5 @@ export interface IInstituteSubscriptionPlanModelAttributes extends IDefaultAttri
18
19
  startDate: Date;
19
20
  endDate: Date;
20
21
  lastSubscriptionPlan?: string;
22
+ additionalModuleList: IModulePriceModelAttributes[];
21
23
  }
@@ -136,6 +136,11 @@ InstituteSubscriptionPlanModel.init({
136
136
  allowNull: true,
137
137
  field: 'last_user_subscription_plan',
138
138
  },
139
+ additionalModuleList: {
140
+ type: sequelize_1.DataTypes.JSONB,
141
+ allowNull: true,
142
+ field: 'additional_module_list',
143
+ },
139
144
  }, {
140
145
  modelName: 'InstituteSubscriptionPlanModel',
141
146
  tableName: 'institute_subscription_plans',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.397",
3
+ "version": "1.1.399",
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",