@ironcode/vas-lib 2.0.0 → 2.2.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.
- package/cjs/lib/entity/vas-control.dto.d.ts +1 -0
- package/cjs/lib/entity/vas-control.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-control.dto.js.map +1 -1
- package/cjs/lib/entity/vas-control.model.d.ts +2 -1
- package/cjs/lib/entity/vas-control.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-control.model.js +7 -4
- package/cjs/lib/entity/vas-control.model.js.map +1 -1
- package/cjs/lib/entity/vas-job-email.model.d.ts +1 -2
- package/cjs/lib/entity/vas-job-email.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job-email.model.js.map +1 -1
- package/cjs/lib/entity/vas-report.dto.d.ts +1 -0
- package/cjs/lib/entity/vas-report.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-report.dto.js.map +1 -1
- package/cjs/lib/entity/vas-report.model.d.ts +3 -3
- package/cjs/lib/entity/vas-report.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-report.model.js +4 -2
- package/cjs/lib/entity/vas-report.model.js.map +1 -1
- package/cjs/lib/utils/only.d.ts +2 -1
- package/cjs/lib/utils/only.d.ts.map +1 -1
- package/cjs/lib/utils/only.js +6 -10
- package/cjs/lib/utils/only.js.map +1 -1
- package/fesm2022/ironcode-vas-lib.mjs +20 -16
- package/fesm2022/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/vas-control.dto.d.ts +1 -0
- package/lib/entity/vas-control.model.d.ts +2 -1
- package/lib/entity/vas-job-email.model.d.ts +1 -2
- package/lib/entity/vas-report.dto.d.ts +1 -0
- package/lib/entity/vas-report.model.d.ts +3 -3
- package/lib/utils/only.d.ts +2 -1
- package/package.json +1 -1
|
@@ -30,8 +30,9 @@ export declare class VasControlModel extends VasRestrictedAccountObjectModel {
|
|
|
30
30
|
config: Record<string, any>;
|
|
31
31
|
descriptionImage: string;
|
|
32
32
|
portalEnabled: boolean;
|
|
33
|
+
portalListVisible: boolean;
|
|
33
34
|
protected controlTypeId: string;
|
|
34
|
-
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, accessGroup: string, controlType: VasControlTypeModel, group: string, validators: string[], name: string, title: string, linkable: boolean, sequence: number, description: string, defaultValue: string, config: Record<string, any>, descriptionImage: string, portalEnabled: boolean);
|
|
35
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, accessGroup: string, controlType: VasControlTypeModel, group: string, validators: string[], name: string, title: string, linkable: boolean, sequence: number, description: string, defaultValue: string, config: Record<string, any>, descriptionImage: string, portalEnabled: boolean, portalListVisible: boolean);
|
|
35
36
|
get controlTypeName(): string;
|
|
36
37
|
/**
|
|
37
38
|
* The defaultValue property is returned from the api as a string or number,
|
|
@@ -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<
|
|
30
|
+
static toApiPatchDto(item: Partial<VasJobEmailDto>): Partial<VasJobEmailDto>;
|
|
32
31
|
}
|
|
@@ -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
|
-
|
|
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<
|
|
30
|
+
static toApiPatchDto(item: Partial<VasReportDto>): Partial<VasReportDto>;
|
|
31
31
|
}
|
package/lib/utils/only.d.ts
CHANGED
|
@@ -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:
|
|
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>;
|