@yuuvis/client-core 3.5.0 → 3.6.0

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.
@@ -299,30 +299,6 @@ class DmsObject {
299
299
  }
300
300
  this.sots = searchResultItem.fields.get(BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS) || [];
301
301
  }
302
- // /**
303
- // * Get the value (state) of a certain tag
304
- // * @param name The tags name
305
- // * @returns The value of the tag or null if the tag does not exist
306
- // */
307
- // getTag(name: string): any {
308
- // const tags: unknown[][] = this.data[BaseObjectTypeField.TAGS] as unknown[][];
309
- // const tag: unknown[] | null = tags ? (tags.find((t: any) => t[0] === name) as unknown[]) : null;
310
- // return tag ? tag[1] : null;
311
- // }
312
- // getRetentionState(): RetentionState {
313
- // if (this.data[RetentionField.RETENTION_START]) {
314
- // const retentionStart = new Date(this.data[RetentionField.RETENTION_START] as string);
315
- // const retentionEnd = new Date(this.data[RetentionField.RETENTION_END] as string);
316
- // const today = new Date();
317
- // return retentionStart <= today && today <= retentionEnd
318
- // ? RetentionState.ACTIVE
319
- // : today < retentionStart
320
- // ? RetentionState.INACTIVE
321
- // : RetentionState.DESTRUCT;
322
- // } else {
323
- // return RetentionState.NONE;
324
- // }
325
- // }
326
302
  #generateData(fields) {
327
303
  const result = {};
328
304
  for (const [key, val] of fields.entries()) {