@ironcode/vas-lib 1.17.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.
- package/cjs/lib/controls-config/index.d.ts +3 -2
- package/cjs/lib/controls-config/index.d.ts.map +1 -1
- package/cjs/lib/controls-config/index.js +3 -2
- package/cjs/lib/controls-config/index.js.map +1 -1
- package/cjs/lib/controls-config/{vas-control-config.model.d.ts → vas-control-config.dto.d.ts} +2 -2
- package/cjs/lib/controls-config/vas-control-config.dto.d.ts.map +1 -0
- package/cjs/lib/controls-config/{vas-control-config.model.js → vas-control-config.dto.js} +1 -1
- package/cjs/lib/controls-config/vas-control-config.dto.js.map +1 -0
- package/cjs/lib/controls-config/vas-costs-control-config.dto.d.ts +9 -0
- package/cjs/lib/controls-config/vas-costs-control-config.dto.d.ts.map +1 -0
- package/cjs/lib/controls-config/{vas-select-control-config.model.js → vas-costs-control-config.dto.js} +1 -1
- package/cjs/lib/controls-config/vas-costs-control-config.dto.js.map +1 -0
- package/cjs/lib/controls-config/vas-select-control-config.dto.d.ts +10 -0
- package/cjs/lib/controls-config/vas-select-control-config.dto.d.ts.map +1 -0
- package/cjs/lib/controls-config/vas-select-control-config.dto.js +3 -0
- package/cjs/lib/controls-config/vas-select-control-config.dto.js.map +1 -0
- 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 +11 -12
- package/fesm2022/ironcode-vas-lib.mjs.map +1 -1
- package/lib/controls-config/index.d.ts +3 -2
- package/lib/controls-config/{vas-control-config.model.d.ts → vas-control-config.dto.d.ts} +1 -1
- package/lib/controls-config/vas-costs-control-config.dto.d.ts +8 -0
- package/lib/controls-config/vas-select-control-config.dto.d.ts +9 -0
- 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
- package/cjs/lib/controls-config/vas-control-config.model.d.ts.map +0 -1
- package/cjs/lib/controls-config/vas-control-config.model.js.map +0 -1
- package/cjs/lib/controls-config/vas-select-control-config.model.d.ts +0 -10
- package/cjs/lib/controls-config/vas-select-control-config.model.d.ts.map +0 -1
- package/cjs/lib/controls-config/vas-select-control-config.model.js.map +0 -1
- package/lib/controls-config/vas-select-control-config.model.d.ts +0 -9
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './vas-control-config-direction.enum';
|
|
2
|
-
export * from './vas-control-config.
|
|
2
|
+
export * from './vas-control-config.dto';
|
|
3
|
+
export * from './vas-costs-control-config.dto';
|
|
3
4
|
export * from './vas-function-control-config.dto';
|
|
4
|
-
export * from './vas-select-control-config.
|
|
5
|
+
export * from './vas-select-control-config.dto';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAA;AACnD,cAAc,0BAA0B,CAAA;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAA"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./vas-control-config-direction.enum"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./vas-control-config.
|
|
5
|
+
tslib_1.__exportStar(require("./vas-control-config.dto"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./vas-costs-control-config.dto"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./vas-function-control-config.dto"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./vas-select-control-config.
|
|
8
|
+
tslib_1.__exportStar(require("./vas-select-control-config.dto"), exports);
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/index.ts"],"names":[],"mappings":";;;AAAA,8EAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/index.ts"],"names":[],"mappings":";;;AAAA,8EAAmD;AACnD,mEAAwC;AACxC,yEAA+C;AAC/C,4EAAkD;AAClD,0EAA+C","sourcesContent":["export * from './vas-control-config-direction.enum'\nexport * from './vas-control-config.dto'\nexport * from './vas-costs-control-config.dto';\nexport * from './vas-function-control-config.dto';\nexport * from './vas-select-control-config.dto'\n"]}
|
package/cjs/lib/controls-config/{vas-control-config.model.d.ts → vas-control-config.dto.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VasControlConfigDirection } from './vas-control-config-direction.enum';
|
|
2
|
-
export interface
|
|
2
|
+
export interface VasControlConfigDto {
|
|
3
3
|
placeholder: string;
|
|
4
4
|
direction: VasControlConfigDirection;
|
|
5
5
|
excludeFromSummary: boolean;
|
|
6
6
|
includeInJobCard: boolean;
|
|
7
7
|
}
|
|
8
|
-
//# sourceMappingURL=vas-control-config.
|
|
8
|
+
//# sourceMappingURL=vas-control-config.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vas-control-config.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/vas-control-config.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,yBAAyB,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vas-control-config.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/vas-control-config.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasControlConfigDirection } from './vas-control-config-direction.enum';\n\nexport interface VasControlConfigDto {\n placeholder: string;\n direction: VasControlConfigDirection;\n excludeFromSummary: boolean;\n includeInJobCard: boolean;\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VasControlConfigDto } from './vas-control-config.dto';
|
|
2
|
+
export interface VasCostsControlConfigDto extends VasControlConfigDto {
|
|
3
|
+
currency: string;
|
|
4
|
+
lookupType: string;
|
|
5
|
+
vatRate: number;
|
|
6
|
+
glassMatixControlId: string;
|
|
7
|
+
audatexControlId: string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=vas-costs-control-config.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vas-costs-control-config.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/vas-costs-control-config.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vas-costs-control-config.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/vas-costs-control-config.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasControlConfigDto } from './vas-control-config.dto';\n\nexport interface VasCostsControlConfigDto extends VasControlConfigDto {\n currency: string;\n lookupType: string;\n vatRate: number;\n glassMatixControlId: string;\n audatexControlId: string;\n}\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VasControlConfigDto } from './vas-control-config.dto';
|
|
2
|
+
export interface VasSelectControlConfigSelectOptionDto {
|
|
3
|
+
value: string;
|
|
4
|
+
title: string;
|
|
5
|
+
score: number | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface VasSelectControlConfigDto extends VasControlConfigDto {
|
|
8
|
+
options: Array<VasSelectControlConfigSelectOptionDto>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=vas-select-control-config.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vas-select-control-config.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/vas-select-control-config.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,WAAW,qCAAqC;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IACpE,OAAO,EAAE,KAAK,CAAC,qCAAqC,CAAC,CAAA;CACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vas-select-control-config.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/controls-config/vas-select-control-config.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasControlConfigDto } from './vas-control-config.dto';\n\nexport interface VasSelectControlConfigSelectOptionDto {\n value: string;\n title: string;\n score: number | undefined;\n}\n\nexport interface VasSelectControlConfigDto extends VasControlConfigDto {\n options: Array<VasSelectControlConfigSelectOptionDto>\n}\n"]}
|
|
@@ -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,6 +27,6 @@ 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
|
}
|
|
33
32
|
//# sourceMappingURL=vas-job-email.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-job-email.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job-email.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"vas-job-email.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job-email.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrD,qBAAa,gBAAiB,SAAQ,eAAe;IAGjC,EAAE,EAAE,MAAM;IACV,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,MAAM;IACrB,SAAS,EAAE,MAAM;IACjB,QAAQ,EAAE,MAAM;IAChB,cAAc,EAAE,MAAM;IACtB,UAAU,EAAE,MAAM;IAClB,aAAa,EAAE,MAAM;IACrB,cAAc,EAAE,MAAM;IACtB,OAAO,EAAE,MAAM;IACf,GAAG,EAAE,MAAM;IACpB,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM;IACf,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,OAAO;gBArBT,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,EACjB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EACpB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EACzB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,OAAO;WAiBX,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,gBAAgB;IA2BvE,KAAK,IAAI,cAAc;IA2Bd,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAcvC,aAAa,CACzB,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC,GAC5B,OAAO,CAAC,cAAc,CAAC;CAgB3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-job-email.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job-email.model.ts"],"names":[],"mappings":";;;AAAA,6DAAuD;
|
|
1
|
+
{"version":3,"file":"vas-job-email.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job-email.model.ts"],"names":[],"mappings":";;;AAAA,6DAAuD;AAEvD,wCAAqC;AAGrC,MAAa,gBAAiB,SAAQ,oCAAe;IAEnD,YACkB,EAAU,EACV,OAAe,EACf,aAAqB,EACrB,SAAiB,EACjB,QAAgB,EAChB,cAAsB,EACtB,UAAkB,EAClB,aAAqB,EACrB,cAAsB,EACtB,OAAe,EACf,GAAW,EACpB,IAAY,EACZ,EAAiB,EACjB,KAAoB,EACpB,OAAe,EACf,UAAyB,EACzB,OAAe,EACf,OAAsB,EACtB,MAAc,EACd,QAAgB,EAChB,OAAe,EACf,SAAkB;QAEzB,KAAK,CACH,EAAE,EACF,OAAO,EACP,aAAa,EACb,SAAS,EACT,QAAQ,EACR,cAAc,EACd,UAAU,EACV,aAAa,EACb,cAAc,EACd,OAAO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,OAAa;QAC7B,OAAO;YACL,eAAe;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,aAAa,CACzB,IAA6B;QAE7B,OAAO,IAAA,WAAI,EACT,IAAI,EACJ;YACE,SAAS;YACT,UAAU;YACV,MAAM;YACN,IAAI;YACJ,OAAO;YACP,SAAS;YACT,YAAY;YACZ,SAAS;YACT,SAAS;SACV,CACF,CAAC;IACJ,CAAC;CACF;AA/HD,4CA+HC","sourcesContent":["import { VasJobDataModel } from './vas-job-data.model';\nimport { VasJobEmailDto } from './vas-job-email.dto';\nimport { only } from '../utils/only';\n\n\nexport class VasJobEmailModel extends VasJobDataModel {\n\n constructor(\n public override id: string,\n public override created: string,\n public override serverCreated: string,\n public override createdBy: string,\n public override modified: string,\n public override serverModified: string,\n public override modifiedBy: string,\n public override createdByName: string,\n public override modifiedByName: string,\n public override account: string,\n public override job: string,\n public body: string,\n public cc: Array<string>,\n public files: Array<string>,\n public message: string,\n public recipients: Array<string>,\n public replyTo: string,\n public reports: Array<string>,\n public sender: string,\n public sentTime: string,\n public subject: string,\n public succeeded: boolean,\n ) {\n super(\n id,\n created,\n serverCreated,\n createdBy,\n modified,\n serverModified,\n modifiedBy,\n createdByName,\n modifiedByName,\n account,\n job,\n );\n }\n\n static override fromDto(dto: Partial<VasJobEmailDto>): VasJobEmailModel {\n return new VasJobEmailModel(\n dto.id || '',\n dto.created || '',\n dto.serverCreated || '',\n dto.createdBy || '',\n dto.modified || '',\n dto.serverModified || '',\n dto.modifiedBy || '',\n dto.createdByName || '',\n dto.modifiedByName || '',\n dto.account || '',\n dto.job || '',\n dto.body || '',\n dto.cc || [],\n dto.files || [],\n dto.message || '',\n dto.recipients || [],\n dto.replyTo || '',\n dto.reports || [],\n dto.sender || '',\n dto.sentTime || '',\n dto.subject || '',\n dto.succeeded || false\n );\n }\n\n toDto(): VasJobEmailDto {\n return {\n id: this.id,\n created: this.created,\n serverCreated: this.serverCreated,\n createdBy: this.createdBy,\n modified: this.modified,\n serverModified: this.serverModified,\n modifiedBy: this.modifiedBy,\n createdByName: this.createdByName,\n modifiedByName: this.modifiedByName,\n account: this.account,\n job: this.job,\n body: this.body,\n cc: this.cc,\n files: this.files,\n message: this.message,\n recipients: this.recipients,\n replyTo: this.replyTo,\n reports: this.reports,\n sender: this.sender,\n sentTime: this.sentTime,\n subject: this.subject,\n succeeded: this.succeeded,\n };\n }\n\n override toApiDto(options?: any): Record<string, any> {\n return {\n // id: this.id,\n created: this.created,\n modified: this.modified,\n body: this.body,\n cc: this.cc,\n files: this.files,\n recipients: this.recipients,\n reports: this.reports,\n subject: this.subject,\n };\n }\n\n public static toApiPatchDto(\n item: Partial<VasJobEmailDto>\n ): Partial<VasJobEmailDto> {\n return only(\n item,\n [\n 'created',\n 'modified',\n 'body',\n 'cc',\n 'files',\n 'message',\n 'recipients',\n 'reports',\n 'subject',\n ]\n );\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-report.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-report.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"vas-report.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-report.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-report.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-report.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasJobDataDto } from './vas-job-data.dto';\n\nexport interface VasReportDto extends VasJobDataDto {\n reportLayout: string;\n title: string;\n sendEmail: string;\n message: string;\n attempted: string;\n completed: string;\n succeeded: string;\n attempts: number;\n notificationId: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"vas-report.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-report.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasJobDataDto } from './vas-job-data.dto';\n\nexport interface VasReportDto extends VasJobDataDto {\n reportLayout: string;\n title: string;\n sendEmail: string;\n message: string;\n attempted: string;\n completed: string;\n succeeded: string;\n attempts: number;\n notificationId: string;\n portalVisible: boolean;\n}\n"]}
|
|
@@ -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,11 +21,12 @@ 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
|
}
|
|
32
32
|
//# sourceMappingURL=vas-report.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-report.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-report.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"vas-report.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-report.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,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AAO,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAQ9C,aAAa,CACzB,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,GAC1B,OAAO,CAAC,YAAY,CAAC;CAUzB"}
|
|
@@ -4,7 +4,7 @@ exports.VasReportModel = void 0;
|
|
|
4
4
|
const vas_job_data_model_1 = require("./vas-job-data.model");
|
|
5
5
|
const only_1 = require("../utils/only");
|
|
6
6
|
class VasReportModel extends vas_job_data_model_1.VasJobDataModel {
|
|
7
|
-
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job, reportLayout, title, sendEmail, message, attempted, completed, succeeded, attempts, notificationId) {
|
|
7
|
+
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job, reportLayout, title, sendEmail, message, attempted, completed, succeeded, attempts, notificationId, portalVisible) {
|
|
8
8
|
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job);
|
|
9
9
|
this.id = id;
|
|
10
10
|
this.created = created;
|
|
@@ -26,12 +26,13 @@ class VasReportModel extends vas_job_data_model_1.VasJobDataModel {
|
|
|
26
26
|
this.succeeded = succeeded;
|
|
27
27
|
this.attempts = attempts;
|
|
28
28
|
this.notificationId = notificationId;
|
|
29
|
+
this.portalVisible = portalVisible;
|
|
29
30
|
}
|
|
30
31
|
static empty() {
|
|
31
32
|
return VasReportModel.fromDto({});
|
|
32
33
|
}
|
|
33
34
|
static fromDto(dto) {
|
|
34
|
-
return new VasReportModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job || '', dto.reportLayout || '', dto.title || '', dto.sendEmail || '', dto.message || '', dto.attempted || '', dto.completed || '', dto.succeeded || '', dto.attempts || 0, dto.notificationId || '');
|
|
35
|
+
return new VasReportModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job || '', dto.reportLayout || '', dto.title || '', dto.sendEmail || '', dto.message || '', dto.attempted || '', dto.completed || '', dto.succeeded || '', dto.attempts || 0, dto.notificationId || '', dto.portalVisible || false);
|
|
35
36
|
}
|
|
36
37
|
toDto() {
|
|
37
38
|
return {
|
|
@@ -55,6 +56,7 @@ class VasReportModel extends vas_job_data_model_1.VasJobDataModel {
|
|
|
55
56
|
succeeded: this.succeeded,
|
|
56
57
|
attempts: this.attempts,
|
|
57
58
|
notificationId: this.notificationId,
|
|
59
|
+
portalVisible: this.portalVisible
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
toApiDto(options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-report.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-report.model.ts"],"names":[],"mappings":";;;AAAA,6DAAuD;AAGvD,wCAAqC;AAErC,MAAa,cAAe,SAAQ,oCAAe;IAEjD,YACkB,EAAU,EACV,OAAe,EACf,aAAqB,EACrB,SAAiB,EACjB,QAAgB,EAChB,cAAsB,EACtB,UAAkB,EAClB,aAAqB,EACrB,cAAsB,EACtB,OAAe,EACf,GAAW,EACpB,YAAoB,EACpB,KAAa,EACb,SAAiB,EACjB,OAAe,EACf,SAAiB,EACjB,SAAiB,EACjB,SAAiB,EACjB,QAAgB,EAChB,cAAsB;QAE7B,KAAK,CACH,EAAE,EACF,OAAO,EACP,aAAa,EACb,SAAS,EACT,QAAQ,EACR,cAAc,EACd,UAAU,EACV,aAAa,EACb,cAAc,EACd,OAAO,EACP,GAAG,CACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"vas-report.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-report.model.ts"],"names":[],"mappings":";;;AAAA,6DAAuD;AAGvD,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,EAAE,IAAI,CAAC,GAAG;YACb,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;IAEe,QAAQ,CAAC,OAAa;QACpC,uCACK,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KAC1B,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,YAAY,EAAE,IAAI,CAAC,YAAY,IAC/B;IACJ,CAAC;IAEM,MAAM,CAAC,aAAa,CACzB,IAA2B;QAE3B,OAAO,IAAA,WAAI,EACT,IAAI,EACJ;YACE,SAAS;YACT,UAAU;YACV,eAAe;SAChB,CACF,CAAC;IACJ,CAAC;CACF;AAtHD,wCAsHC","sourcesContent":["import { VasJobDataModel } from './vas-job-data.model';\nimport { VasReportDto } from './vas-report.dto';\nimport { VasTaskDto } from './vas-task.dto';\nimport { only } from '../utils/only';\n\nexport class VasReportModel extends VasJobDataModel implements VasReportDto {\n\n constructor(\n public override id: string,\n public override created: string,\n public override serverCreated: string,\n public override createdBy: string,\n public override modified: string,\n public override serverModified: string,\n public override modifiedBy: string,\n public override createdByName: string,\n public override modifiedByName: string,\n public override account: string,\n public override job: string,\n public reportLayout: string,\n public title: string,\n public sendEmail: string,\n public message: string,\n public attempted: string,\n public completed: string,\n public succeeded: string,\n public attempts: number,\n public notificationId: string,\n public portalVisible: boolean\n ) {\n super(\n id,\n created,\n serverCreated,\n createdBy,\n modified,\n serverModified,\n modifiedBy,\n createdByName,\n modifiedByName,\n account,\n job,\n );\n }\n\n static empty(): VasReportModel {\n return VasReportModel.fromDto({});\n }\n\n static override fromDto(\n dto: Partial<VasReportModel>\n ): VasReportModel {\n return new VasReportModel(\n dto.id || '',\n dto.created || '',\n dto.serverCreated || '',\n dto.createdBy || '',\n dto.modified || '',\n dto.serverModified || '',\n dto.modifiedBy || '',\n dto.createdByName || '',\n dto.modifiedByName || '',\n dto.account || '',\n dto.job || '',\n dto.reportLayout || '',\n dto.title || '',\n dto.sendEmail || '',\n dto.message || '',\n dto.attempted || '',\n dto.completed || '',\n dto.succeeded || '',\n dto.attempts || 0,\n dto.notificationId || '',\n dto.portalVisible || false\n );\n }\n\n toDto(): VasReportDto {\n return {\n id: this.id,\n created: this.created,\n serverCreated: this.serverCreated,\n createdBy: this.createdBy,\n modified: this.modified,\n serverModified: this.serverModified,\n modifiedBy: this.modifiedBy,\n createdByName: this.createdByName,\n modifiedByName: this.modifiedByName,\n account: this.account,\n job: this.job,\n reportLayout: this.reportLayout,\n title: this.title,\n sendEmail: this.sendEmail,\n message: this.message,\n attempted: this.attempted,\n completed: this.completed,\n succeeded: this.succeeded,\n attempts: this.attempts,\n notificationId: this.notificationId,\n portalVisible: this.portalVisible\n };\n }\n\n public override toApiDto(options?: any): Record<string, any> {\n return {\n ...super.toApiDto(options),\n job: this.job,\n reportLayout: this.reportLayout\n };\n }\n\n public static toApiPatchDto(\n item: Partial<VasReportDto>\n ): Partial<VasReportDto> {\n return only(\n item,\n [\n 'created',\n 'modified',\n 'portalVisible',\n ]\n );\n }\n}\n"]}
|
package/cjs/lib/utils/only.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
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>;
|
|
8
9
|
//# sourceMappingURL=only.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"only.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/utils/only.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"only.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/utils/only.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,OAC3C,CAAC,WACG,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,cACrB,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,KAAK,GAAG,KACxC,OAAO,CAAC,CAAC,CASX,CAAC"}
|
package/cjs/lib/utils/only.js
CHANGED
|
@@ -6,18 +6,14 @@ exports.only = void 0;
|
|
|
6
6
|
*
|
|
7
7
|
* @param obj object to be processed
|
|
8
8
|
* @param omitKey key or array of keys to be kept
|
|
9
|
+
* @param transform optional function used to transform each value
|
|
9
10
|
*/
|
|
10
|
-
const only = (obj, omitKey) => {
|
|
11
|
+
const only = (obj, omitKey, transform) => {
|
|
12
|
+
const t = transform || ((obj, key) => obj[key]);
|
|
13
|
+
const omitKeys = Array.isArray(omitKey) ? omitKey : [omitKey];
|
|
11
14
|
return Object.keys(obj).reduce((result, key) => {
|
|
12
|
-
if (
|
|
13
|
-
|
|
14
|
-
result[key] = obj[key];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
if (omitKey === key) {
|
|
19
|
-
result[key] = obj[key];
|
|
20
|
-
}
|
|
15
|
+
if (omitKeys.includes(key)) {
|
|
16
|
+
result[key] = t(obj, key);
|
|
21
17
|
}
|
|
22
18
|
return result;
|
|
23
19
|
}, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"only.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/utils/only.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"only.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/utils/only.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACI,MAAM,IAAI,GAAG,CAClB,GAAM,EACN,OAAiC,EACjC,SAAyC,EAC7B,EAAE;IACd,MAAM,CAAC,GAAG,SAAS,IAAI,CAAC,CAAC,GAAM,EAAE,GAAY,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5D,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC9D,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE;QAC7C,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC3B,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC5B,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,EAAS,CAAC,CAAC;AAChB,CAAC,CAAC;AAbW,QAAA,IAAI,QAaf","sourcesContent":["/**\n * Return an object with only the properties specified by key(s)\n *\n * @param obj object to be processed\n * @param omitKey key or array of keys to be kept\n * @param transform optional function used to transform each value\n */\nexport const only = <T extends Record<string, any>>(\n obj: T,\n omitKey: keyof T | Array<keyof T>,\n transform?: (obj: T, key: keyof T) => any\n): Partial<T> => {\n const t = transform || ((obj: T, key: keyof T) => obj[key]);\n const omitKeys = Array.isArray(omitKey) ? omitKey : [omitKey];\n return Object.keys(obj).reduce((result, key) => {\n if (omitKeys.includes(key)) {\n result[key] = t(obj, key);\n }\n return result;\n }, {} as any);\n};\n"]}
|
|
@@ -860,18 +860,14 @@ class VasBranchModel extends VasRestrictedAccountObjectModel {
|
|
|
860
860
|
*
|
|
861
861
|
* @param obj object to be processed
|
|
862
862
|
* @param omitKey key or array of keys to be kept
|
|
863
|
+
* @param transform optional function used to transform each value
|
|
863
864
|
*/
|
|
864
|
-
const only = (obj, omitKey) => {
|
|
865
|
+
const only = (obj, omitKey, transform) => {
|
|
866
|
+
const t = transform || ((obj, key) => obj[key]);
|
|
867
|
+
const omitKeys = Array.isArray(omitKey) ? omitKey : [omitKey];
|
|
865
868
|
return Object.keys(obj).reduce((result, key) => {
|
|
866
|
-
if (
|
|
867
|
-
|
|
868
|
-
result[key] = obj[key];
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
else {
|
|
872
|
-
if (omitKey === key) {
|
|
873
|
-
result[key] = obj[key];
|
|
874
|
-
}
|
|
869
|
+
if (omitKeys.includes(key)) {
|
|
870
|
+
result[key] = t(obj, key);
|
|
875
871
|
}
|
|
876
872
|
return result;
|
|
877
873
|
}, {});
|
|
@@ -2318,7 +2314,8 @@ class VasReportModel extends VasJobDataModel {
|
|
|
2318
2314
|
succeeded;
|
|
2319
2315
|
attempts;
|
|
2320
2316
|
notificationId;
|
|
2321
|
-
|
|
2317
|
+
portalVisible;
|
|
2318
|
+
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job, reportLayout, title, sendEmail, message, attempted, completed, succeeded, attempts, notificationId, portalVisible) {
|
|
2322
2319
|
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job);
|
|
2323
2320
|
this.id = id;
|
|
2324
2321
|
this.created = created;
|
|
@@ -2340,12 +2337,13 @@ class VasReportModel extends VasJobDataModel {
|
|
|
2340
2337
|
this.succeeded = succeeded;
|
|
2341
2338
|
this.attempts = attempts;
|
|
2342
2339
|
this.notificationId = notificationId;
|
|
2340
|
+
this.portalVisible = portalVisible;
|
|
2343
2341
|
}
|
|
2344
2342
|
static empty() {
|
|
2345
2343
|
return VasReportModel.fromDto({});
|
|
2346
2344
|
}
|
|
2347
2345
|
static fromDto(dto) {
|
|
2348
|
-
return new VasReportModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job || '', dto.reportLayout || '', dto.title || '', dto.sendEmail || '', dto.message || '', dto.attempted || '', dto.completed || '', dto.succeeded || '', dto.attempts || 0, dto.notificationId || '');
|
|
2346
|
+
return new VasReportModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.job || '', dto.reportLayout || '', dto.title || '', dto.sendEmail || '', dto.message || '', dto.attempted || '', dto.completed || '', dto.succeeded || '', dto.attempts || 0, dto.notificationId || '', dto.portalVisible || false);
|
|
2349
2347
|
}
|
|
2350
2348
|
toDto() {
|
|
2351
2349
|
return {
|
|
@@ -2369,6 +2367,7 @@ class VasReportModel extends VasJobDataModel {
|
|
|
2369
2367
|
succeeded: this.succeeded,
|
|
2370
2368
|
attempts: this.attempts,
|
|
2371
2369
|
notificationId: this.notificationId,
|
|
2370
|
+
portalVisible: this.portalVisible
|
|
2372
2371
|
};
|
|
2373
2372
|
}
|
|
2374
2373
|
toApiDto(options) {
|