@ironcode/vas-lib 2.0.0 → 2.1.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.
@@ -1,6 +1,5 @@
1
1
  import { VasJobDataModel } from './vas-job-data.model';
2
2
  import { VasJobEmailDto } from './vas-job-email.dto';
3
- import { VasNoteDto } from './vas-note.dto';
4
3
  export declare class VasJobEmailModel extends VasJobDataModel {
5
4
  id: string;
6
5
  created: string;
@@ -28,5 +27,5 @@ export declare class VasJobEmailModel extends VasJobDataModel {
28
27
  static fromDto(dto: Partial<VasJobEmailDto>): VasJobEmailModel;
29
28
  toDto(): VasJobEmailDto;
30
29
  toApiDto(options?: any): Record<string, any>;
31
- static toApiPatchDto(item: Partial<VasNoteDto>): Partial<VasNoteDto>;
30
+ static toApiPatchDto(item: Partial<VasJobEmailDto>): Partial<VasJobEmailDto>;
32
31
  }
@@ -9,4 +9,5 @@ export interface VasReportDto extends VasJobDataDto {
9
9
  succeeded: string;
10
10
  attempts: number;
11
11
  notificationId: string;
12
+ portalVisible: boolean;
12
13
  }
@@ -1,6 +1,5 @@
1
1
  import { VasJobDataModel } from './vas-job-data.model';
2
2
  import { VasReportDto } from './vas-report.dto';
3
- import { VasTaskDto } from './vas-task.dto';
4
3
  export declare class VasReportModel extends VasJobDataModel implements VasReportDto {
5
4
  id: string;
6
5
  created: string;
@@ -22,10 +21,11 @@ export declare class VasReportModel extends VasJobDataModel implements VasReport
22
21
  succeeded: string;
23
22
  attempts: number;
24
23
  notificationId: string;
25
- constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, job: string, reportLayout: string, title: string, sendEmail: string, message: string, attempted: string, completed: string, succeeded: string, attempts: number, notificationId: string);
24
+ portalVisible: boolean;
25
+ constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, job: string, reportLayout: string, title: string, sendEmail: string, message: string, attempted: string, completed: string, succeeded: string, attempts: number, notificationId: string, portalVisible: boolean);
26
26
  static empty(): VasReportModel;
27
27
  static fromDto(dto: Partial<VasReportModel>): VasReportModel;
28
28
  toDto(): VasReportDto;
29
29
  toApiDto(options?: any): Record<string, any>;
30
- static toApiPatchDto(item: Partial<VasTaskDto>): Partial<VasTaskDto>;
30
+ static toApiPatchDto(item: Partial<VasReportDto>): Partial<VasReportDto>;
31
31
  }
@@ -3,5 +3,6 @@
3
3
  *
4
4
  * @param obj object to be processed
5
5
  * @param omitKey key or array of keys to be kept
6
+ * @param transform optional function used to transform each value
6
7
  */
7
- export declare const only: <T extends Record<string, any>>(obj: T, omitKey: string | Array<string>) => Partial<T>;
8
+ export declare const only: <T extends Record<string, any>>(obj: T, omitKey: keyof T | Array<keyof T>, transform?: (obj: T, key: keyof T) => any) => Partial<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironcode/vas-lib",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "peerDependencies": {
5
5
  "angular2-uuid": "^1.1.1",
6
6
  "moment": "^2.0.0"