rez_core 5.0.144 → 5.0.146
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/module/filter/repository/saved-filter.repository.d.ts +1 -5
- package/dist/module/filter/repository/saved-filter.repository.js +1 -5
- package/dist/module/filter/repository/saved-filter.repository.js.map +1 -1
- package/dist/module/meta/dto/entity-table.dto.d.ts +1 -4
- package/dist/module/meta/dto/entity-table.dto.js.map +1 -1
- package/dist/module/meta/service/media-data.service.js +0 -5
- package/dist/module/meta/service/media-data.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/filter/repository/saved-filter.repository.ts +6 -5
- package/src/module/meta/dto/entity-table.dto.ts +2 -1
- package/src/module/meta/service/media-data.service.ts +5 -52
package/package.json
CHANGED
|
@@ -102,11 +102,12 @@ export class SavedFilterRepositoryService {
|
|
|
102
102
|
},
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
return filters.map((filter) => ({
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}));
|
|
105
|
+
// return filters.map((filter) => ({
|
|
106
|
+
// label: filter.name,
|
|
107
|
+
// value: filter.id,
|
|
108
|
+
// code: filter.code,
|
|
109
|
+
// }));
|
|
110
|
+
return filters;
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
async getSharedFiltersByLevelTypeAndLevelId(
|
|
@@ -5,7 +5,8 @@ export class EntityTableDto extends EntityTable {
|
|
|
5
5
|
column_list: EntityTableColumn[];
|
|
6
6
|
operation_list: {};
|
|
7
7
|
default_filter: {} | null;
|
|
8
|
-
saved_filter: { label: string; value: number }[] | null;
|
|
8
|
+
// saved_filter: { label: string; value: number }[] | null;
|
|
9
9
|
// shared_filter: { label: string; value: number }[] | null;
|
|
10
10
|
shared_filter: any[] | null;
|
|
11
|
+
saved_filter: any[] | null;
|
|
11
12
|
}
|
|
@@ -182,53 +182,6 @@ export class MediaDataService extends EntityServiceImpl {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
// media-data.service.ts
|
|
186
|
-
// async getMediaInlineUrl(id: number, loggedInUser, expiresIn?: number) {
|
|
187
|
-
// try {
|
|
188
|
-
// const entityData = await this.getEntityData(
|
|
189
|
-
// ENTITYTYPE_MEDIA,
|
|
190
|
-
// id,
|
|
191
|
-
// loggedInUser,
|
|
192
|
-
// );
|
|
193
|
-
// const mediaData = entityData as MediaData;
|
|
194
|
-
// let fileSize: number | undefined;
|
|
195
|
-
// if (this.bucketName) {
|
|
196
|
-
// const head = await this.s3
|
|
197
|
-
// .headObject({
|
|
198
|
-
// Bucket: this.bucketName,
|
|
199
|
-
// Key: mediaData.media_url,
|
|
200
|
-
// })
|
|
201
|
-
// .promise();
|
|
202
|
-
// fileSize = head.ContentLength;
|
|
203
|
-
// }
|
|
204
|
-
|
|
205
|
-
// if (!mediaData) {
|
|
206
|
-
// throw new Error('Media not found');
|
|
207
|
-
// }
|
|
208
|
-
|
|
209
|
-
// const signedUrl = await this.s3.getSignedUrlPromise('getObject', {
|
|
210
|
-
// Bucket: this.bucketName,
|
|
211
|
-
// Key: mediaData.media_url,
|
|
212
|
-
// Expires: Number(expiresIn) || 60 * 5,
|
|
213
|
-
// ResponseContentDisposition: 'inline',
|
|
214
|
-
// ResponseContentType: this.getContentType(
|
|
215
|
-
// mediaData.file_name.split('.').pop() || '',
|
|
216
|
-
// ),
|
|
217
|
-
// });
|
|
218
|
-
|
|
219
|
-
// return {
|
|
220
|
-
// signedUrl,
|
|
221
|
-
// fileName: mediaData.file_name,
|
|
222
|
-
// id: mediaData.id,
|
|
223
|
-
// size: fileSize,
|
|
224
|
-
// uploadedDate: mediaData.created_date,
|
|
225
|
-
// };
|
|
226
|
-
// } catch (error) {
|
|
227
|
-
// console.error('Error generating inline URL:', error);
|
|
228
|
-
// throw new Error('Failed to generate inline URL');
|
|
229
|
-
// }
|
|
230
|
-
// }
|
|
231
|
-
|
|
232
185
|
async getMediaInlineUrl(id: number, loggedInUser, expiresIn?: number) {
|
|
233
186
|
try {
|
|
234
187
|
const entityData = await this.getEntityData(
|
|
@@ -264,11 +217,11 @@ export class MediaDataService extends EntityServiceImpl {
|
|
|
264
217
|
});
|
|
265
218
|
|
|
266
219
|
let previewUrl = signedUrl;
|
|
267
|
-
if (ext === 'doc' || ext === 'docx') {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
220
|
+
// if (ext === 'doc' || ext === 'docx') {
|
|
221
|
+
// previewUrl =
|
|
222
|
+
// `https://view.officeapps.live.com/op/embed.aspx?src=` +
|
|
223
|
+
// encodeURIComponent(signedUrl);
|
|
224
|
+
// }
|
|
272
225
|
|
|
273
226
|
return {
|
|
274
227
|
signedUrl: previewUrl,
|