@ironcode/vas-lib 1.5.2 → 1.7.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/index.d.ts +2 -1
- package/cjs/lib/entity/index.d.ts.map +1 -1
- package/cjs/lib/entity/index.js +2 -1
- package/cjs/lib/entity/index.js.map +1 -1
- package/cjs/lib/entity/vas-field.dto.d.ts +3 -0
- package/cjs/lib/entity/vas-field.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-field.dto.js.map +1 -1
- package/cjs/lib/entity/vas-field.model.d.ts +4 -1
- package/cjs/lib/entity/vas-field.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-field.model.js +8 -2
- package/cjs/lib/entity/vas-field.model.js.map +1 -1
- package/cjs/lib/entity/vas-form-config.dto.d.ts +19 -1
- package/cjs/lib/entity/vas-form-config.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-form-config.dto.js.map +1 -1
- package/cjs/lib/entity/vas-form-config.model.d.ts +22 -0
- package/cjs/lib/entity/vas-form-config.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-form-config.model.js +35 -0
- package/cjs/lib/entity/vas-form-config.model.js.map +1 -0
- package/cjs/lib/entity/vas-form.model.d.ts +3 -2
- package/cjs/lib/entity/vas-form.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-form.model.js +3 -2
- package/cjs/lib/entity/vas-form.model.js.map +1 -1
- package/cjs/lib/entity/vas-instruction-provider.dto.d.ts +1 -0
- package/cjs/lib/entity/vas-instruction-provider.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-instruction-provider.dto.js.map +1 -1
- package/cjs/lib/entity/vas-instruction-provider.model.d.ts +2 -1
- package/cjs/lib/entity/vas-instruction-provider.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-instruction-provider.model.js +6 -4
- package/cjs/lib/entity/vas-instruction-provider.model.js.map +1 -1
- package/cjs/lib/entity/vas-job.model.d.ts +5 -3
- package/cjs/lib/entity/vas-job.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.model.js +5 -2
- package/cjs/lib/entity/vas-job.model.js.map +1 -1
- package/cjs/package.json +8 -13
- package/esm2020/lib/entity/index.mjs +3 -2
- package/esm2020/lib/entity/vas-field.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-field.model.mjs +9 -3
- package/esm2020/lib/entity/vas-form-config.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-form-config.model.mjs +31 -0
- package/esm2020/lib/entity/vas-form.model.mjs +4 -3
- package/esm2020/lib/entity/vas-instruction-provider.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-instruction-provider.model.mjs +8 -5
- package/esm2020/lib/entity/vas-job.model.mjs +6 -3
- package/fesm2015/ironcode-vas-lib.mjs +53 -11
- package/fesm2015/ironcode-vas-lib.mjs.map +1 -1
- package/fesm2020/ironcode-vas-lib.mjs +54 -11
- package/fesm2020/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/index.d.ts +2 -1
- package/lib/entity/vas-field.dto.d.ts +3 -0
- package/lib/entity/vas-field.model.d.ts +4 -1
- package/lib/entity/vas-form-config.dto.d.ts +19 -1
- package/lib/entity/vas-form-config.model.d.ts +21 -0
- package/lib/entity/vas-form.model.d.ts +3 -2
- package/lib/entity/vas-instruction-provider.dto.d.ts +1 -0
- package/lib/entity/vas-instruction-provider.model.d.ts +2 -1
- package/lib/entity/vas-job.model.d.ts +5 -3
- package/package.json +1 -1
|
@@ -21,6 +21,8 @@ export * from './vas-file.dto';
|
|
|
21
21
|
export * from './vas-file.model';
|
|
22
22
|
export * from './vas-form.dto';
|
|
23
23
|
export * from './vas-form.model';
|
|
24
|
+
export * from './vas-form-config.dto';
|
|
25
|
+
export * from './vas-form-config.model';
|
|
24
26
|
export * from './vas-invitation';
|
|
25
27
|
export * from './vas-group.dto';
|
|
26
28
|
export * from './vas-group.model';
|
|
@@ -57,7 +59,6 @@ export * from './vas-restricted-account-object.model';
|
|
|
57
59
|
export * from './vas-task-type.dto';
|
|
58
60
|
export * from './vas-user.dto';
|
|
59
61
|
export * from './vas-user.model';
|
|
60
|
-
export * from './vas-form-config.dto';
|
|
61
62
|
export * from './vas-account-config.dto';
|
|
62
63
|
export * from './vas-vehicle.dto';
|
|
63
64
|
export * from './vas-vehicle.model';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc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qB,CAAC"}
|
package/cjs/lib/entity/index.js
CHANGED
|
@@ -24,6 +24,8 @@ tslib_1.__exportStar(require("./vas-file.dto"), exports);
|
|
|
24
24
|
tslib_1.__exportStar(require("./vas-file.model"), exports);
|
|
25
25
|
tslib_1.__exportStar(require("./vas-form.dto"), exports);
|
|
26
26
|
tslib_1.__exportStar(require("./vas-form.model"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./vas-form-config.dto"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./vas-form-config.model"), exports);
|
|
27
29
|
tslib_1.__exportStar(require("./vas-invitation"), exports);
|
|
28
30
|
tslib_1.__exportStar(require("./vas-group.dto"), exports);
|
|
29
31
|
tslib_1.__exportStar(require("./vas-group.model"), exports);
|
|
@@ -60,7 +62,6 @@ tslib_1.__exportStar(require("./vas-restricted-account-object.model"), exports);
|
|
|
60
62
|
tslib_1.__exportStar(require("./vas-task-type.dto"), exports);
|
|
61
63
|
tslib_1.__exportStar(require("./vas-user.dto"), exports);
|
|
62
64
|
tslib_1.__exportStar(require("./vas-user.model"), exports);
|
|
63
|
-
tslib_1.__exportStar(require("./vas-form-config.dto"), exports);
|
|
64
65
|
tslib_1.__exportStar(require("./vas-account-config.dto"), exports);
|
|
65
66
|
tslib_1.__exportStar(require("./vas-vehicle.dto"), exports);
|
|
66
67
|
tslib_1.__exportStar(require("./vas-vehicle.model"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,gEAAsC;AACtC,iEAAuC;AACvC,4DAAkC;AAClC,mEAAyC;AACzC,qEAA2C;AAC3C,yDAA+B;AAC/B,2DAAiC;AACjC,2DAAiC;AACjC,6DAAmC;AACnC,4DAAkC;AAClC,8DAAoC;AACpC,iEAAuC;AACvC,4DAAkC;AAClC,8DAAoC;AACpC,iEAAuC;AACvC,mEAAyC;AACzC,0DAAgC;AAChC,4DAAkC;AAClC,yDAA+B;AAC/B,2DAAiC;AACjC,yDAA+B;AAC/B,2DAAiC;AACjC,2DAAiC;AACjC,0DAAgC;AAChC,4DAAkC;AAClC,gEAAsC;AACtC,kEAAwC;AACxC,oEAAyC;AACzC,sEAA4C;AAC5C,0EAAgD;AAChD,4EAAkD;AAClD,yEAA+C;AAC/C,2EAAiD;AACjD,6DAAmC;AACnC,+DAAqC;AACrC,8DAAoC;AACpC,gEAAsC;AACtC,wDAA8B;AAC9B,0DAAgC;AAChC,+DAAqC;AACrC,6DAAmC;AACnC,2DAAiC;AACjC,gEAAsC;AACtC,+DAAqC;AACrC,iEAAuC;AACvC,yDAA+B;AAC/B,2DAAiC;AACjC,2DAAiC;AACjC,6DAAmC;AACnC,kEAAwC;AACxC,oEAA0C;AAC1C,mEAAyC;AACzC,qEAA2C;AAC3C,8EAAoD;AACpD,gFAAsD;AACtD,8DAAoC;AACpC,yDAA+B;AAC/B,2DAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,gEAAsC;AACtC,iEAAuC;AACvC,4DAAkC;AAClC,mEAAyC;AACzC,qEAA2C;AAC3C,yDAA+B;AAC/B,2DAAiC;AACjC,2DAAiC;AACjC,6DAAmC;AACnC,4DAAkC;AAClC,8DAAoC;AACpC,iEAAuC;AACvC,4DAAkC;AAClC,8DAAoC;AACpC,iEAAuC;AACvC,mEAAyC;AACzC,0DAAgC;AAChC,4DAAkC;AAClC,yDAA+B;AAC/B,2DAAiC;AACjC,yDAA+B;AAC/B,2DAAiC;AACjC,gEAAsC;AACtC,kEAAwC;AACxC,2DAAiC;AACjC,0DAAgC;AAChC,4DAAkC;AAClC,gEAAsC;AACtC,kEAAwC;AACxC,oEAAyC;AACzC,sEAA4C;AAC5C,0EAAgD;AAChD,4EAAkD;AAClD,yEAA+C;AAC/C,2EAAiD;AACjD,6DAAmC;AACnC,+DAAqC;AACrC,8DAAoC;AACpC,gEAAsC;AACtC,wDAA8B;AAC9B,0DAAgC;AAChC,+DAAqC;AACrC,6DAAmC;AACnC,2DAAiC;AACjC,gEAAsC;AACtC,+DAAqC;AACrC,iEAAuC;AACvC,yDAA+B;AAC/B,2DAAiC;AACjC,2DAAiC;AACjC,6DAAmC;AACnC,kEAAwC;AACxC,oEAA0C;AAC1C,mEAAyC;AACzC,qEAA2C;AAC3C,8EAAoD;AACpD,gFAAsD;AACtD,8DAAoC;AACpC,yDAA+B;AAC/B,2DAAiC;AACjC,mEAAyC;AACzC,4DAAkC;AAClC,8DAAoC","sourcesContent":["export * from './vas-fire-user.dto';\nexport * from './vas-fire-user.model';\nexport * from './vas-access-group.dto';\nexport * from './vas-account.dto';\nexport * from './vas-account-object.dto';\nexport * from './vas-account-object.model';\nexport * from './vas-base.dto';\nexport * from './vas-base.model';\nexport * from './vas-branch.dto';\nexport * from './vas-branch.model';\nexport * from './vas-contact.dto';\nexport * from './vas-contact.model';\nexport * from './vas-contact-type.dto';\nexport * from './vas-control.dto';\nexport * from './vas-control.model';\nexport * from './vas-control-type.dto';\nexport * from './vas-control-type.model';\nexport * from './vas-field.dto';\nexport * from './vas-field.model';\nexport * from './vas-file.dto';\nexport * from './vas-file.model';\nexport * from './vas-form.dto';\nexport * from './vas-form.model';\nexport * from './vas-form-config.dto';\nexport * from './vas-form-config.model';\nexport * from './vas-invitation';\nexport * from './vas-group.dto';\nexport * from './vas-group.model';\nexport * from './vas-instruction.dto';\nexport * from './vas-instruction.model';\nexport * from './vas-instruction-job.dto'\nexport * from './vas-instruction-job.model';\nexport * from './vas-instruction-job-field.dto';\nexport * from './vas-instruction-job-field.model';\nexport * from './vas-instruction-provider.dto';\nexport * from './vas-instruction-provider.model';\nexport * from './vas-job-data.dto';\nexport * from './vas-job-data.model';\nexport * from './vas-job-email.dto';\nexport * from './vas-job-email.model';\nexport * from './vas-job.dto';\nexport * from './vas-job.model';\nexport * from './vas-job-status.dto';\nexport * from './vas-job-type.dto';\nexport * from './vas-lookup.dto';\nexport * from './vas-lookup-type.dto';\nexport * from './vas-membership.dto';\nexport * from './vas-membership.model';\nexport * from './vas-note.dto';\nexport * from './vas-note.model';\nexport * from './vas-report.dto';\nexport * from './vas-report.model';\nexport * from './vas-report-layout.dto';\nexport * from './vas-report-layout.model';\nexport * from './vas-report-request.dto';\nexport * from './vas-report-request.model';\nexport * from './vas-restricted-account-object.dto';\nexport * from './vas-restricted-account-object.model';\nexport * from './vas-task-type.dto';\nexport * from './vas-user.dto';\nexport * from './vas-user.model';\nexport * from './vas-account-config.dto';\nexport * from './vas-vehicle.dto';\nexport * from './vas-vehicle.model';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-field.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-field.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAClC,MAAM,GACJ,MAAM,GACN,OAAO,GACP,SAAS,GACT,WAAW,GACX,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,GACtD,MAAM,CAAC,MAAM,EAEf,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC;AAE/F,MAAM,WAAW,WAAY,SAAQ,aAAa;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"vas-field.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-field.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAClC,MAAM,GACJ,MAAM,GACN,OAAO,GACP,SAAS,GACT,WAAW,GACX,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,GACtD,MAAM,CAAC,MAAM,EAEf,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC;AAE/F,MAAM,WAAW,WAAY,SAAQ,aAAa;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-field.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-field.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasJobDataDto } from './vas-job-data.dto';\nimport { VasFileDto } from './vas-file.dto';\nimport { GeoLocation } from '../model/geo-location';\n\nexport declare type VasFieldDtoValue =\n string\n | number\n | boolean\n | undefined\n | GeoLocation\n | Array<object | string | number | boolean | VasFileDto>\n | Record<string,\n // eslint-disable-next-line max-len\n object | string | number | boolean | Array<object | string | number | boolean | VasFileDto>>;\n\nexport interface VasFieldDto extends VasJobDataDto {\n control: string;\n fieldJobPointers: Array<string>;\n value: VasFieldDtoValue;\n version: number;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"vas-field.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-field.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasJobDataDto } from './vas-job-data.dto';\nimport { VasFileDto } from './vas-file.dto';\nimport { GeoLocation } from '../model/geo-location';\n\nexport declare type VasFieldDtoValue =\n string\n | number\n | boolean\n | undefined\n | GeoLocation\n | Array<object | string | number | boolean | VasFileDto>\n | Record<string,\n // eslint-disable-next-line max-len\n object | string | number | boolean | Array<object | string | number | boolean | VasFileDto>>;\n\nexport interface VasFieldDto extends VasJobDataDto {\n control: string;\n fieldJobPointers: Array<string>;\n value: VasFieldDtoValue;\n version: number;\n controlName: string;\n controlTitle: string;\n controlTypeName: string;\n}\n"]}
|
|
@@ -19,7 +19,10 @@ export declare class VasFieldModel extends VasJobDataModel {
|
|
|
19
19
|
fieldJobPointers: Array<string>;
|
|
20
20
|
value: VasFieldDtoValue;
|
|
21
21
|
version: number;
|
|
22
|
-
|
|
22
|
+
controlName: string;
|
|
23
|
+
controlTitle: string;
|
|
24
|
+
controlTypeName: 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, control: string, fieldJobPointers: Array<string>, value: VasFieldDtoValue, version: number, controlName: string, controlTitle: string, controlTypeName: string);
|
|
23
26
|
/**
|
|
24
27
|
* @param {VasFieldDto} fieldDto
|
|
25
28
|
* @return {VasFieldModel}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-field.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-field.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,aAAc,SAAQ,eAAe;IAG9B,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,OAAO,EAAE,MAAM;IACf,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,gBAAgB;IACvB,OAAO,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"vas-field.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-field.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,qBAAa,aAAc,SAAQ,eAAe;IAG9B,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,OAAO,EAAE,MAAM;IACf,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,gBAAgB;IACvB,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,MAAM;IACnB,YAAY,EAAE,MAAM;IACpB,eAAe,EAAE,MAAM;gBAjBd,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,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,EAC/B,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,MAAM;IAiBhC;;;OAGG;WACa,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,aAAa;IAuBtE;;OAEG;IACH,KAAK,IAAI,WAAW;IAuBpB;;OAEG;IACM,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAS9D;;;;;;;OAOG;IACH,SAAS,CAAC,eAAe,CACvB,KAAK,EAAE,gBAAgB,GACtB,MAAM,GAAG,MAAM,GAAG,OAAO;CAmB7B"}
|
|
@@ -6,7 +6,7 @@ const vas_job_data_model_1 = require("./vas-job-data.model");
|
|
|
6
6
|
* VasFieldModel
|
|
7
7
|
*/
|
|
8
8
|
class VasFieldModel extends vas_job_data_model_1.VasJobDataModel {
|
|
9
|
-
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job, control, fieldJobPointers, value, version) {
|
|
9
|
+
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job, control, fieldJobPointers, value, version, controlName, controlTitle, controlTypeName) {
|
|
10
10
|
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job);
|
|
11
11
|
this.id = id;
|
|
12
12
|
this.created = created;
|
|
@@ -23,13 +23,16 @@ class VasFieldModel extends vas_job_data_model_1.VasJobDataModel {
|
|
|
23
23
|
this.fieldJobPointers = fieldJobPointers;
|
|
24
24
|
this.value = value;
|
|
25
25
|
this.version = version;
|
|
26
|
+
this.controlName = controlName;
|
|
27
|
+
this.controlTitle = controlTitle;
|
|
28
|
+
this.controlTypeName = controlTypeName;
|
|
26
29
|
}
|
|
27
30
|
/**
|
|
28
31
|
* @param {VasFieldDto} fieldDto
|
|
29
32
|
* @return {VasFieldModel}
|
|
30
33
|
*/
|
|
31
34
|
static fromDto(fieldDto) {
|
|
32
|
-
return new VasFieldModel(fieldDto.id || '', fieldDto.created || '', fieldDto.serverCreated || '', fieldDto.createdBy || '', fieldDto.modified || '', fieldDto.serverModified || '', fieldDto.modifiedBy || '', fieldDto.createdByName || '', fieldDto.modifiedByName || '', fieldDto.account || '', fieldDto.job || '', fieldDto.control || '', fieldDto.fieldJobPointers || [], fieldDto.value || '', fieldDto.version || 0);
|
|
35
|
+
return new VasFieldModel(fieldDto.id || '', fieldDto.created || '', fieldDto.serverCreated || '', fieldDto.createdBy || '', fieldDto.modified || '', fieldDto.serverModified || '', fieldDto.modifiedBy || '', fieldDto.createdByName || '', fieldDto.modifiedByName || '', fieldDto.account || '', fieldDto.job || '', fieldDto.control || '', fieldDto.fieldJobPointers || [], fieldDto.value || '', fieldDto.version || 0, fieldDto.controlName || '', fieldDto.controlTitle || '', fieldDto.controlTypeName || '');
|
|
33
36
|
}
|
|
34
37
|
/**
|
|
35
38
|
* @return {VasFieldDto}
|
|
@@ -51,6 +54,9 @@ class VasFieldModel extends vas_job_data_model_1.VasJobDataModel {
|
|
|
51
54
|
fieldJobPointers: this.fieldJobPointers,
|
|
52
55
|
value: this.value,
|
|
53
56
|
version: this.version,
|
|
57
|
+
controlName: this.controlName,
|
|
58
|
+
controlTitle: this.controlTitle,
|
|
59
|
+
controlTypeName: this.controlTypeName,
|
|
54
60
|
};
|
|
55
61
|
}
|
|
56
62
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-field.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-field.model.ts"],"names":[],"mappings":";;;AACA,6DAAuD;AAEvD;;GAEG;AACH,MAAa,aAAc,SAAQ,oCAAe;IAEhD,YACkB,EAAU,EACV,OAAe,EACf,aAAqB,EACrB,SAAiB,EACjB,QAAgB,EAChB,cAAsB,EACtB,UAAkB,EAClB,aAAqB,EACrB,cAAsB,EACtB,OAAe,EACf,GAAW,EACpB,OAAe,EACf,gBAA+B,EAC/B,KAAuB,EACvB,OAAe;
|
|
1
|
+
{"version":3,"file":"vas-field.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-field.model.ts"],"names":[],"mappings":";;;AACA,6DAAuD;AAEvD;;GAEG;AACH,MAAa,aAAc,SAAQ,oCAAe;IAEhD,YACkB,EAAU,EACV,OAAe,EACf,aAAqB,EACrB,SAAiB,EACjB,QAAgB,EAChB,cAAsB,EACtB,UAAkB,EAClB,aAAqB,EACrB,cAAsB,EACtB,OAAe,EACf,GAAW,EACpB,OAAe,EACf,gBAA+B,EAC/B,KAAuB,EACvB,OAAe,EACf,WAAmB,EACnB,YAAoB,EACpB,eAAuB;QAE9B,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;QA/Bc,OAAE,GAAF,EAAE,CAAQ;QACV,YAAO,GAAP,OAAO,CAAQ;QACf,kBAAa,GAAb,aAAa,CAAQ;QACrB,cAAS,GAAT,SAAS,CAAQ;QACjB,aAAQ,GAAR,QAAQ,CAAQ;QAChB,mBAAc,GAAd,cAAc,CAAQ;QACtB,eAAU,GAAV,UAAU,CAAQ;QAClB,kBAAa,GAAb,aAAa,CAAQ;QACrB,mBAA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toValue } from './vas-field.dto';\nimport { VasJobDataModel } from './vas-job-data.model';\n\n/**\n * VasFieldModel\n */\nexport class VasFieldModel 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 control: string,\n public fieldJobPointers: Array<string>,\n public value: VasFieldDtoValue,\n public version: number,\n public controlName: string,\n public controlTitle: string,\n public controlTypeName: string\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 /**\n * @param {VasFieldDto} fieldDto\n * @return {VasFieldModel}\n */\n static override fromDto(fieldDto: Partial<VasFieldDto>): VasFieldModel {\n return new VasFieldModel(\n fieldDto.id || '',\n fieldDto.created || '',\n fieldDto.serverCreated || '',\n fieldDto.createdBy || '',\n fieldDto.modified || '',\n fieldDto.serverModified || '',\n fieldDto.modifiedBy || '',\n fieldDto.createdByName || '',\n fieldDto.modifiedByName || '',\n fieldDto.account || '',\n fieldDto.job || '',\n fieldDto.control || '',\n fieldDto.fieldJobPointers || [],\n fieldDto.value || '',\n fieldDto.version || 0,\n fieldDto.controlName || '',\n fieldDto.controlTitle || '',\n fieldDto.controlTypeName || '',\n );\n }\n\n /**\n * @return {VasFieldDto}\n */\n toDto(): VasFieldDto {\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 control: this.control,\n fieldJobPointers: this.fieldJobPointers,\n value: this.value,\n version: this.version,\n controlName: this.controlName,\n controlTitle: this.controlTitle,\n controlTypeName: this.controlTypeName,\n };\n }\n\n /**\n * @return {object}\n */\n override toApiDto(): Record<string, string | number | boolean> {\n return {\n ...super.toApiDto(),\n control: this.control,\n value: this.prepareApiValue(this.value)\n };\n }\n\n\n /**\n * Prepares the value to be sent to the API. The api will only accept strings,\n * numbers and booleans, thus if we have an array or object, we need to JSON\n * encode it\n * @param {VasFieldDto} value\n * @return {string | number | boolean}\n * @protected\n */\n protected prepareApiValue(\n value: VasFieldDtoValue\n ): string | number | boolean {\n switch (typeof value) {\n case 'object': {\n return JSON.stringify(value);\n }\n case 'boolean': {\n return value as boolean;\n }\n case 'string': {\n return value as string;\n }\n case 'number': {\n return value as number;\n }\n default: {\n return '';\n }\n }\n }\n}\n"]}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes an action that can be performed on jobs created by this form
|
|
3
|
+
*/
|
|
4
|
+
export interface VasFormActionDto {
|
|
5
|
+
title: string;
|
|
6
|
+
instruction?: {
|
|
7
|
+
instructionProviderId: string;
|
|
8
|
+
linkControl: string;
|
|
9
|
+
};
|
|
10
|
+
updates?: {
|
|
11
|
+
promptNote: boolean;
|
|
12
|
+
changes: Array<{
|
|
13
|
+
controlName: string;
|
|
14
|
+
value: string | '$now';
|
|
15
|
+
}>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
1
18
|
export interface VasFormConfigDto {
|
|
2
|
-
emailRecipients
|
|
19
|
+
emailRecipients?: {
|
|
3
20
|
job: Array<{
|
|
4
21
|
segments: Array<string>;
|
|
5
22
|
}>;
|
|
6
23
|
static: Array<string>;
|
|
7
24
|
};
|
|
25
|
+
actions?: Array<VasFormActionDto>;
|
|
8
26
|
}
|
|
9
27
|
//# sourceMappingURL=vas-form-config.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-form-config.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-form-config.dto.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE;
|
|
1
|
+
{"version":3,"file":"vas-form-config.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-form-config.dto.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAE/B,KAAK,EAAE,MAAM,CAAC;IAGd,WAAW,CAAC,EAAE;QAIZ,qBAAqB,EAAE,MAAM,CAAC;QAI9B,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IAIF,OAAO,CAAC,EAAE;QACR,UAAU,EAAE,OAAO,CAAC;QACpB,OAAO,EAAE,KAAK,CAAC;YACb,WAAW,EAAE,MAAM,CAAC;YACpB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;SACxB,CAAC,CAAA;KACH,CAAA;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE;QAChB,GAAG,EAAE,KAAK,CAAC;YAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;SAAC,CAAC,CAAC;QACtC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;KACtB,CAAA;IACD,OAAO,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAA;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-form-config.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-form-config.dto.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"vas-form-config.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-form-config.dto.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Describes an action that can be performed on jobs created by this form\n */\nexport interface VasFormActionDto {\n // The title of the action\n title: string;\n // actions with this property indicate the client should present a form to\n // handle the action\n instruction?: {\n // The id of an instruction provider, which will be opened in the portal\n // allowing the user to submit a form whose inputs are determined by the\n // instruction provider\n instructionProviderId: string;\n // Optional name of a control in the form referenced by the instruction\n // provider, the value of the control will be set to the job id from which\n // the action was triggered.\n linkControl: string;\n };\n // actions with this property indicate that the client should optionally\n // present a new note dialog for the job, and then update the job with a list\n // of changes. Each change specifies a control name and a value.\n updates?: {\n promptNote: boolean;\n changes: Array<{\n controlName: string;\n value: string | '$now';\n }>\n }\n}\n\nexport interface VasFormConfigDto {\n emailRecipients?: {\n job: Array<{segments: Array<string>}>;\n static: Array<string>\n }\n actions?: Array<VasFormActionDto>\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { VasFormConfigDto } from './vas-form-config.dto';
|
|
2
|
+
export declare class VasFormConfigModel {
|
|
3
|
+
emailRecipients?: {
|
|
4
|
+
job: {
|
|
5
|
+
segments: string[];
|
|
6
|
+
}[];
|
|
7
|
+
static: string[];
|
|
8
|
+
} | undefined;
|
|
9
|
+
actions?: import("./vas-form-config.dto").VasFormActionDto[] | undefined;
|
|
10
|
+
constructor(emailRecipients?: {
|
|
11
|
+
job: {
|
|
12
|
+
segments: string[];
|
|
13
|
+
}[];
|
|
14
|
+
static: string[];
|
|
15
|
+
} | undefined, actions?: import("./vas-form-config.dto").VasFormActionDto[] | undefined);
|
|
16
|
+
toDto(): VasFormConfigDto;
|
|
17
|
+
toJsonString(): string;
|
|
18
|
+
static create(): VasFormConfigModel;
|
|
19
|
+
static fromDto(dto: Partial<VasFormConfigDto>): VasFormConfigModel;
|
|
20
|
+
static fromJsonString(value?: string): VasFormConfigModel;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=vas-form-config.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vas-form-config.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-form-config.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,qBAAa,kBAAkB;IAGpB,eAAe,CAAC;;;;;;IAChB,OAAO,CAAC;gBADR,eAAe,CAAC;;;;;iBAAqC,EACrD,OAAO,CAAC,gEAA6B;IAI9C,KAAK,IAAI,gBAAgB;IAOzB,YAAY,IAAI,MAAM;WAIR,MAAM,IAAI,kBAAkB;WAI5B,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,kBAAkB;WAO3D,cAAc,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB;CAQjE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VasFormConfigModel = void 0;
|
|
4
|
+
class VasFormConfigModel {
|
|
5
|
+
constructor(emailRecipients, actions) {
|
|
6
|
+
this.emailRecipients = emailRecipients;
|
|
7
|
+
this.actions = actions;
|
|
8
|
+
}
|
|
9
|
+
toDto() {
|
|
10
|
+
return {
|
|
11
|
+
emailRecipients: this.emailRecipients,
|
|
12
|
+
actions: this.actions
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
toJsonString() {
|
|
16
|
+
return JSON.stringify(this.toDto());
|
|
17
|
+
}
|
|
18
|
+
static create() {
|
|
19
|
+
return new VasFormConfigModel();
|
|
20
|
+
}
|
|
21
|
+
static fromDto(dto) {
|
|
22
|
+
return new VasFormConfigModel(dto.emailRecipients, dto.actions);
|
|
23
|
+
}
|
|
24
|
+
static fromJsonString(value) {
|
|
25
|
+
try {
|
|
26
|
+
const dto = JSON.parse(value || '{}');
|
|
27
|
+
return VasFormConfigModel.fromDto(dto);
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
return VasFormConfigModel.create();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.VasFormConfigModel = VasFormConfigModel;
|
|
35
|
+
//# sourceMappingURL=vas-form-config.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vas-form-config.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-form-config.model.ts"],"names":[],"mappings":";;;AAEA,MAAa,kBAAkB;IAE7B,YACS,eAAqD,EACrD,OAAqC;QADrC,oBAAe,GAAf,eAAe,CAAsC;QACrD,YAAO,GAAP,OAAO,CAA8B;IAE9C,CAAC;IAED,KAAK;QACH,OAAO;YACL,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAA;IACH,CAAC;IAED,YAAY;QACV,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IACtC,CAAC;IAEM,MAAM,CAAC,MAAM;QAClB,OAAO,IAAI,kBAAkB,EAAE,CAAC;IAClC,CAAC;IAEM,MAAM,CAAC,OAAO,CAAC,GAA8B;QAClD,OAAO,IAAI,kBAAkB,CAC3B,GAAG,CAAC,eAAe,EACnB,GAAG,CAAC,OAAO,CACZ,CAAA;IACH,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,KAAc;QACzC,IAAI;YACF,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC;YACtC,OAAO,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SACxC;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,kBAAkB,CAAC,MAAM,EAAE,CAAC;SACpC;IACH,CAAC;CACF;AAtCD,gDAsCC","sourcesContent":["import { VasFormConfigDto } from './vas-form-config.dto';\n\nexport class VasFormConfigModel {\n\n constructor(\n public emailRecipients?: VasFormConfigDto['emailRecipients'],\n public actions?: VasFormConfigDto['actions'],\n ) {\n }\n\n toDto(): VasFormConfigDto {\n return {\n emailRecipients: this.emailRecipients,\n actions: this.actions\n }\n }\n\n toJsonString(): string {\n return JSON.stringify(this.toDto());\n }\n\n public static create(): VasFormConfigModel {\n return new VasFormConfigModel();\n }\n\n public static fromDto(dto: Partial<VasFormConfigDto>): VasFormConfigModel {\n return new VasFormConfigModel(\n dto.emailRecipients,\n dto.actions\n )\n }\n\n public static fromJsonString(value?: string): VasFormConfigModel {\n try {\n const dto = JSON.parse(value || '{}');\n return VasFormConfigModel.fromDto(dto);\n } catch (e) {\n return VasFormConfigModel.create();\n }\n }\n}\n"]}
|
|
@@ -5,6 +5,7 @@ import { VasFieldDtoValue } from './vas-field.dto';
|
|
|
5
5
|
import { VasFormDto } from './vas-form.dto';
|
|
6
6
|
import { VasGroupModel } from './vas-group.model';
|
|
7
7
|
import { VasJobModel } from './vas-job.model';
|
|
8
|
+
import { VasFormConfigModel } from './vas-form-config.model';
|
|
8
9
|
/**
|
|
9
10
|
* VasFormModel
|
|
10
11
|
*/
|
|
@@ -27,10 +28,10 @@ export declare class VasFormModel extends VasRestrictedAccountObjectModel {
|
|
|
27
28
|
dynamicDescriptor: string;
|
|
28
29
|
indexName: string;
|
|
29
30
|
pipelineName: string;
|
|
30
|
-
config:
|
|
31
|
+
config: VasFormConfigModel;
|
|
31
32
|
geoLocationEnabled: boolean;
|
|
32
33
|
filesEnabled: boolean;
|
|
33
|
-
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, accessGroup: string, jobType: string, title: string, description: string, groups: VasGroupModel[], dynamicDescriptor: string, indexName: string, pipelineName: string, config:
|
|
34
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, accessGroup: string, jobType: string, title: string, description: string, groups: VasGroupModel[], dynamicDescriptor: string, indexName: string, pipelineName: string, config: VasFormConfigModel, geoLocationEnabled: boolean, filesEnabled: boolean);
|
|
34
35
|
/**
|
|
35
36
|
* Returns the name of this form in a "safe" way, i.e. no spaces, special
|
|
36
37
|
* characters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-form.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-form.model.ts"],"names":[],"mappings":"AAAA,OAAO,E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,MAAM,CAAC,CAAC;IAa7C;;;OAGG;IACH,oBAAoB,CAClB,QAAQ,EAAE,WAAW,GACpB,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,CAAA;KAAE,CAAC;IAe7D;;OAEG;IACH,KAAK,IAAI,UAAU;IA0BV,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAQtD"}
|
|
@@ -4,6 +4,7 @@ exports.VasFormModel = void 0;
|
|
|
4
4
|
const vas_restricted_account_object_model_1 = require("./vas-restricted-account-object.model");
|
|
5
5
|
const vas_group_model_1 = require("./vas-group.model");
|
|
6
6
|
const vas_control_type_model_1 = require("./vas-control-type.model");
|
|
7
|
+
const vas_form_config_model_1 = require("./vas-form-config.model");
|
|
7
8
|
/**
|
|
8
9
|
* VasFormModel
|
|
9
10
|
*/
|
|
@@ -85,7 +86,7 @@ class VasFormModel extends vas_restricted_account_object_model_1.VasRestrictedAc
|
|
|
85
86
|
static fromDto(dto) {
|
|
86
87
|
return new VasFormModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.accessGroup || '', dto.jobType || '', dto.title || '', dto.description || '', (dto.groups || [])
|
|
87
88
|
.sort((a, b) => a.sequence - b.sequence)
|
|
88
|
-
.map(g => vas_group_model_1.VasGroupModel.fromDto(g)), dto.dynamicDescriptor || '', dto.indexName || '', dto.pipelineName || '', dto.config
|
|
89
|
+
.map(g => vas_group_model_1.VasGroupModel.fromDto(g)), dto.dynamicDescriptor || '', dto.indexName || '', dto.pipelineName || '', vas_form_config_model_1.VasFormConfigModel.fromJsonString(dto.config), dto.geoLocationEnabled || false, dto.filesEnabled || false);
|
|
89
90
|
}
|
|
90
91
|
/**
|
|
91
92
|
* @param {string} id
|
|
@@ -179,7 +180,7 @@ class VasFormModel extends vas_restricted_account_object_model_1.VasRestrictedAc
|
|
|
179
180
|
dynamicDescriptor: this.dynamicDescriptor,
|
|
180
181
|
indexName: this.indexName,
|
|
181
182
|
pipelineName: this.pipelineName,
|
|
182
|
-
config: this.config,
|
|
183
|
+
config: this.config.toJsonString(),
|
|
183
184
|
geoLocationEnabled: this.geoLocationEnabled,
|
|
184
185
|
filesEnabled: this.filesEnabled
|
|
185
186
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-form.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-form.model.ts"],"names":[],"mappings":";;;AAAA,+FAAwF;AAKxF,uDAAkD;AAElD,qEAA+D;AAE/D;;GAEG;AACH,MAAa,YAAa,SAAQ,qEAA+B;IAE/D,YACkB,EAAU,EACV,OAAe,EACf,aAAqB,EACrB,SAAiB,EACjB,QAAgB,EAChB,cAAsB,EACtB,UAAkB,EAClB,aAAqB,EACrB,cAAsB,EACtB,OAAe,EACf,WAAmB,EAC5B,OAAe,EACf,KAAa,EACb,WAAmB,EACnB,MAAuB,EACvB,iBAAyB,EACzB,SAAiB,EACjB,YAAoB,EACpB,MAAc,EACd,kBAA2B,EAC3B,YAAqB;QAE5B,KAAK,CACH,EAAE,EACF,OAAO,EACP,aAAa,EACb,SAAS,EACT,QAAQ,EACR,cAAc,EACd,UAAU,EACV,aAAa,EACb,cAAc,EACd,OAAO,EACP,WAAW,CACZ,CAAC;QAlCc,OAAE,GAAF,EAAE,CAAQ;QACV,YAAO,GAAP,OAAO,CAAQ;QACf,kBAAa,GAAb,aAAa,CAAQ;QACrB,cAAS,GAAT,SAAS,CAAQ;QACjB,aAAQ,GAAR,QAAQ,CAAQ;QAChB,mBAAc,GAAd,cAAc,CAAQ;QACtB,eAAU,GAAV,UAAU,CAAQ;QAClB,kBAAa,GAAb,aAAa,CAAQ;QACrB,mBAAc,GAAd,cAAc,CAAQ;QACtB,YAAO,GAAP,OA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BAAkB;YAC3C,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC;IACJ,CAAC;IAEQ,QAAQ,CAAC,OAAa;QAC7B,uCACK,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KAC1B,KAAK,EAAE,IAAI,CAAC,KAAK,IAAK,GAAG,EACzB,WAAW,EAAE,IAAI,CAAC,WAAW,IAAK,GAAG,EACrC,OAAO,EAAE,IAAI,CAAC,OAAO,IACrB;IACJ,CAAC;CACF;AA7OD,oCA6OC","sourcesContent":["import { VasRestrictedAccountObjectModel } from './vas-restricted-account-object.model';\nimport { VasControlTypeDto } from './vas-control-type.dto';\nimport { VasControlModel } from './vas-control.model';\nimport { VasFieldDtoValue } from './vas-field.dto';\nimport { VasFormDto } from './vas-form.dto';\nimport { VasGroupModel } from './vas-group.model';\nimport { VasJobModel } from './vas-job.model';\nimport { VasControlTypeModel } from './vas-control-type.model';\n\n/**\n * VasFormModel\n */\nexport class VasFormModel extends VasRestrictedAccountObjectModel {\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 accessGroup: string,\n public jobType: string,\n public title: string,\n public description: string,\n public groups: VasGroupModel[],\n public dynamicDescriptor: string,\n public indexName: string,\n public pipelineName: string,\n public config: string,\n public geoLocationEnabled: boolean,\n public filesEnabled: 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 accessGroup\n );\n }\n\n /**\n * Returns the name of this form in a \"safe\" way, i.e. no spaces, special\n * characters\n * @return {string}\n */\n get safeTitle(): string {\n return this.title\n .replace(/[^a-z0-9]/gi, '-')\n .replace(/-+/g, '-')\n .toLowerCase();\n }\n\n\n /**\n * The VAS API response for Form will inline Group and Control but not\n * ControlType. This method is a help which will allows us to construct an\n * instance of VasFormModel with the ControlType model set appropriately into\n * each VasControlModel\n * @param {VasFormDto} formDto\n * @param {Array<VasControlTypeDto>} controlTypeDtos\n * @return {VasFormModel}\n * @deprecated vas-rest has been updated to inline control types into the\n * control so this method is no longer required. use VasFormModel.fromDto()\n */\n public static fromApiResponse(\n formDto: VasFormDto,\n controlTypeDtos: Array<VasControlTypeDto>\n ): VasFormModel {\n const controlTypeModels = controlTypeDtos\n .map(ctDto => VasControlTypeModel.fromDto(ctDto));\n const formModel = VasFormModel.fromDto(formDto);\n formModel.groups\n .forEach(group => {\n group.controls\n .forEach(control => {\n // Note that we are forcing types here. This is because we have\n // updated the typings for ControlModel and ControlDto to reflect\n // the fact that VASREST is updating the response from certain\n // controllers to inline ControlType into the Control. Consumers of\n // the library will know what version of the API they are consuming\n // so can decide when to migrate away from fromApiResponse, and can\n // use fromDto instead\n (control.controlType as any) = controlTypeModels\n .find(ct => ct.id === ((control as any).controlTypeId));\n });\n });\n return formModel;\n }\n\n static empty(): VasFormModel {\n return VasFormModel.fromDto({});\n }\n\n /**\n * @param {VasFormDto} dto\n * @return {VasFormModel}\n */\n static override fromDto(dto: Partial<VasFormDto>): VasFormModel {\n return new VasFormModel(\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.accessGroup || '',\n dto.jobType || '',\n dto.title || '',\n dto.description || '',\n (dto.groups || [])\n .sort((a, b) => a.sequence - b.sequence)\n .map(g => VasGroupModel.fromDto(g)),\n dto.dynamicDescriptor || '',\n dto.indexName || '',\n dto.pipelineName || '',\n dto.config || '',\n dto.geoLocationEnabled || false,\n dto.filesEnabled || false\n );\n }\n\n /**\n * @param {string} id\n * @return {VasControlModel | undefined}\n */\n findControlModelById(id: string): VasControlModel | undefined {\n let result;\n this.groups\n .find(group => group.controls\n .find(control => {\n if (control.id !== id) {\n return;\n }\n result = control;\n return true;\n }));\n return result;\n }\n\n /**\n *\n * @param {string} name\n * @return {VasControlModel | undefined}\n */\n findControlModelByName(name: string): VasControlModel | undefined {\n let result;\n this.groups\n .find(group => group.controls\n .find(control => {\n if (control.name !== name) {\n return;\n }\n result = control;\n return true;\n }));\n return result;\n }\n\n /**\n *\n * @return {Array<Array<string>>}\n */\n getCameraControlPaths(): Array<Array<string>> {\n const paths: string[][] = [];\n this.groups.forEach(group => {\n group.controls.forEach(control => {\n if (control.controlTypeName !== 'camera') {\n return;\n }\n paths.push([group.name, control.safeName]);\n });\n });\n return paths;\n }\n\n /**\n * @param {VasJobModel} jobModel\n * @return {Array<{id: string, value: VasFieldDtoValue}>}\n */\n getValuesByControlId(\n jobModel: VasJobModel\n ): Array<{ id: string, value: VasFieldDtoValue | undefined }> {\n const items: Array<{ id: string, value: VasFieldDtoValue | undefined }> = [];\n this.groups\n .forEach(group => {\n group.controls\n .forEach(control => {\n items.push({\n id: control.id,\n value: jobModel.getValueByPath([group.name, control.safeName])\n });\n });\n });\n return items;\n }\n\n /**\n * @return {VasFormDto}\n */\n toDto(): VasFormDto {\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 accessGroup: this.accessGroup,\n jobType: this.jobType,\n title: this.title,\n description: this.description,\n groups: this.groups.map(group => group.toDto()),\n dynamicDescriptor: this.dynamicDescriptor,\n indexName: this.indexName,\n pipelineName: this.pipelineName,\n config: this.config,\n geoLocationEnabled: this.geoLocationEnabled,\n filesEnabled: this.filesEnabled\n };\n }\n\n override toApiDto(options?: any): Record<string, any> {\n return {\n ...super.toApiDto(options),\n title: this.title || '~',\n description: this.description || '~',\n jobType: this.jobType\n };\n }\n}\n\n"]}
|
|
1
|
+
{"version":3,"file":"vas-form.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib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CA6OC","sourcesContent":["import { VasRestrictedAccountObjectModel } from './vas-restricted-account-object.model';\nimport { VasControlTypeDto } from './vas-control-type.dto';\nimport { VasControlModel } from './vas-control.model';\nimport { VasFieldDtoValue } from './vas-field.dto';\nimport { VasFormDto } from './vas-form.dto';\nimport { VasGroupModel } from './vas-group.model';\nimport { VasJobModel } from './vas-job.model';\nimport { VasControlTypeModel } from './vas-control-type.model';\nimport { VasFormConfigModel } from './vas-form-config.model';\n\n/**\n * VasFormModel\n */\nexport class VasFormModel extends VasRestrictedAccountObjectModel {\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 accessGroup: string,\n public jobType: string,\n public title: string,\n public description: string,\n public groups: VasGroupModel[],\n public dynamicDescriptor: string,\n public indexName: string,\n public pipelineName: string,\n public config: VasFormConfigModel,\n public geoLocationEnabled: boolean,\n public filesEnabled: 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 accessGroup\n );\n }\n\n /**\n * Returns the name of this form in a \"safe\" way, i.e. no spaces, special\n * characters\n * @return {string}\n */\n get safeTitle(): string {\n return this.title\n .replace(/[^a-z0-9]/gi, '-')\n .replace(/-+/g, '-')\n .toLowerCase();\n }\n\n\n /**\n * The VAS API response for Form will inline Group and Control but not\n * ControlType. This method is a help which will allows us to construct an\n * instance of VasFormModel with the ControlType model set appropriately into\n * each VasControlModel\n * @param {VasFormDto} formDto\n * @param {Array<VasControlTypeDto>} controlTypeDtos\n * @return {VasFormModel}\n * @deprecated vas-rest has been updated to inline control types into the\n * control so this method is no longer required. use VasFormModel.fromDto()\n */\n public static fromApiResponse(\n formDto: VasFormDto,\n controlTypeDtos: Array<VasControlTypeDto>\n ): VasFormModel {\n const controlTypeModels = controlTypeDtos\n .map(ctDto => VasControlTypeModel.fromDto(ctDto));\n const formModel = VasFormModel.fromDto(formDto);\n formModel.groups\n .forEach(group => {\n group.controls\n .forEach(control => {\n // Note that we are forcing types here. This is because we have\n // updated the typings for ControlModel and ControlDto to reflect\n // the fact that VASREST is updating the response from certain\n // controllers to inline ControlType into the Control. Consumers of\n // the library will know what version of the API they are consuming\n // so can decide when to migrate away from fromApiResponse, and can\n // use fromDto instead\n (control.controlType as any) = controlTypeModels\n .find(ct => ct.id === ((control as any).controlTypeId));\n });\n });\n return formModel;\n }\n\n static empty(): VasFormModel {\n return VasFormModel.fromDto({});\n }\n\n /**\n * @param {VasFormDto} dto\n * @return {VasFormModel}\n */\n static override fromDto(dto: Partial<VasFormDto>): VasFormModel {\n return new VasFormModel(\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.accessGroup || '',\n dto.jobType || '',\n dto.title || '',\n dto.description || '',\n (dto.groups || [])\n .sort((a, b) => a.sequence - b.sequence)\n .map(g => VasGroupModel.fromDto(g)),\n dto.dynamicDescriptor || '',\n dto.indexName || '',\n dto.pipelineName || '',\n VasFormConfigModel.fromJsonString(dto.config),\n dto.geoLocationEnabled || false,\n dto.filesEnabled || false\n );\n }\n\n /**\n * @param {string} id\n * @return {VasControlModel | undefined}\n */\n findControlModelById(id: string): VasControlModel | undefined {\n let result;\n this.groups\n .find(group => group.controls\n .find(control => {\n if (control.id !== id) {\n return;\n }\n result = control;\n return true;\n }));\n return result;\n }\n\n /**\n *\n * @param {string} name\n * @return {VasControlModel | undefined}\n */\n findControlModelByName(name: string): VasControlModel | undefined {\n let result;\n this.groups\n .find(group => group.controls\n .find(control => {\n if (control.name !== name) {\n return;\n }\n result = control;\n return true;\n }));\n return result;\n }\n\n /**\n *\n * @return {Array<Array<string>>}\n */\n getCameraControlPaths(): Array<Array<string>> {\n const paths: string[][] = [];\n this.groups.forEach(group => {\n group.controls.forEach(control => {\n if (control.controlTypeName !== 'camera') {\n return;\n }\n paths.push([group.name, control.safeName]);\n });\n });\n return paths;\n }\n\n /**\n * @param {VasJobModel} jobModel\n * @return {Array<{id: string, value: VasFieldDtoValue}>}\n */\n getValuesByControlId(\n jobModel: VasJobModel\n ): Array<{ id: string, value: VasFieldDtoValue | undefined }> {\n const items: Array<{ id: string, value: VasFieldDtoValue | undefined }> = [];\n this.groups\n .forEach(group => {\n group.controls\n .forEach(control => {\n items.push({\n id: control.id,\n value: jobModel.getValueByPath([group.name, control.safeName])\n });\n });\n });\n return items;\n }\n\n /**\n * @return {VasFormDto}\n */\n toDto(): VasFormDto {\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 accessGroup: this.accessGroup,\n jobType: this.jobType,\n title: this.title,\n description: this.description,\n groups: this.groups.map(group => group.toDto()),\n dynamicDescriptor: this.dynamicDescriptor,\n indexName: this.indexName,\n pipelineName: this.pipelineName,\n config: this.config.toJsonString(),\n geoLocationEnabled: this.geoLocationEnabled,\n filesEnabled: this.filesEnabled\n };\n }\n\n override toApiDto(options?: any): Record<string, any> {\n return {\n ...super.toApiDto(options),\n title: this.title || '~',\n description: this.description || '~',\n jobType: this.jobType\n };\n }\n}\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-instruction-provider.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-instruction-provider.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IACpE,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"vas-instruction-provider.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-instruction-provider.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;IACpE,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-instruction-provider.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-instruction-provider.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasAccountObjectDto } from './vas-account-object.dto';\nimport { VasFormDto } from './vas-form.dto';\n\nexport interface VasInstructionProviderDto extends VasAccountObjectDto {\n form: VasFormDto;\n title: string;\n secret: string;\n portalEnabled: boolean
|
|
1
|
+
{"version":3,"file":"vas-instruction-provider.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-instruction-provider.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasAccountObjectDto } from './vas-account-object.dto';\nimport { VasFormDto } from './vas-form.dto';\n\nexport interface VasInstructionProviderDto extends VasAccountObjectDto {\n form: VasFormDto;\n title: string;\n secret: string;\n portalEnabled: boolean;\n portalVisible: boolean;\n}\n"]}
|
|
@@ -19,7 +19,8 @@ export declare class VasInstructionProviderModel extends VasAccountObjectModel {
|
|
|
19
19
|
title: string;
|
|
20
20
|
secret: string;
|
|
21
21
|
portalEnabled: boolean;
|
|
22
|
-
|
|
22
|
+
portalVisible: boolean;
|
|
23
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, form: VasFormModel, title: string, secret: string, portalEnabled: boolean, portalVisible: boolean);
|
|
23
24
|
/**
|
|
24
25
|
* @param dto VasInstructionDto
|
|
25
26
|
* @return VasInstructionModel
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-instruction-provider.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-instruction-provider.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,qBAAqB;IAGlD,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;IACxB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,aAAa,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"vas-instruction-provider.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-instruction-provider.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,qBAAqB;IAGlD,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;IACxB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,aAAa,EAAE,OAAO;IACtB,aAAa,EAAE,OAAO;gBAdb,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,EACxB,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,OAAO,EACtB,aAAa,EAAE,OAAO;IAgB/B;;;OAGG;WACa,OAAO,CACrB,GAAG,EAAE,OAAO,CAAC,yBAAyB,CAAC,GACtC,2BAA2B;IAsB9B;;OAEG;IACH,KAAK,IAAI,yBAAyB;IAoBzB,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAS5E"}
|
|
@@ -7,7 +7,7 @@ const vas_form_model_1 = require("./vas-form.model");
|
|
|
7
7
|
* VasInstructionProviderModel
|
|
8
8
|
*/
|
|
9
9
|
class VasInstructionProviderModel extends vas_account_object_model_1.VasAccountObjectModel {
|
|
10
|
-
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, form, title, secret, portalEnabled) {
|
|
10
|
+
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, form, title, secret, portalEnabled, portalVisible) {
|
|
11
11
|
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account);
|
|
12
12
|
this.id = id;
|
|
13
13
|
this.created = created;
|
|
@@ -23,6 +23,7 @@ class VasInstructionProviderModel extends vas_account_object_model_1.VasAccountO
|
|
|
23
23
|
this.title = title;
|
|
24
24
|
this.secret = secret;
|
|
25
25
|
this.portalEnabled = portalEnabled;
|
|
26
|
+
this.portalVisible = portalVisible;
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* @param dto VasInstructionDto
|
|
@@ -31,7 +32,7 @@ class VasInstructionProviderModel extends vas_account_object_model_1.VasAccountO
|
|
|
31
32
|
static fromDto(dto) {
|
|
32
33
|
return new VasInstructionProviderModel(dto.id || '', dto.created || '', dto.serverCreated || '', dto.createdBy || '', dto.modified || '', dto.serverModified || '', dto.modifiedBy || '', dto.createdByName || '', dto.modifiedByName || '', dto.account || '', dto.form ?
|
|
33
34
|
vas_form_model_1.VasFormModel.fromDto(dto.form) :
|
|
34
|
-
vas_form_model_1.VasFormModel.empty(), dto.title || '', dto.secret || '', dto.portalEnabled || false);
|
|
35
|
+
vas_form_model_1.VasFormModel.empty(), dto.title || '', dto.secret || '', dto.portalEnabled || false, dto.portalVisible || true);
|
|
35
36
|
}
|
|
36
37
|
/**
|
|
37
38
|
* @returns VasNoteDto
|
|
@@ -51,11 +52,12 @@ class VasInstructionProviderModel extends vas_account_object_model_1.VasAccountO
|
|
|
51
52
|
form: this.form.toDto(),
|
|
52
53
|
title: this.title,
|
|
53
54
|
secret: this.secret,
|
|
54
|
-
portalEnabled: this.portalEnabled
|
|
55
|
+
portalEnabled: this.portalEnabled,
|
|
56
|
+
portalVisible: this.portalVisible
|
|
55
57
|
};
|
|
56
58
|
}
|
|
57
59
|
toApiDto(options) {
|
|
58
|
-
return Object.assign(Object.assign({}, super.toApiDto(options)), { title: this.title, form: this.form.id, portalEnabled: this.portalEnabled });
|
|
60
|
+
return Object.assign(Object.assign({}, super.toApiDto(options)), { title: this.title, form: this.form.id, portalEnabled: this.portalEnabled, portalVisible: this.portalVisible });
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
exports.VasInstructionProviderModel = VasInstructionProviderModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-instruction-provider.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-instruction-provider.model.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AAEnE,qDAAgD;AAEhD;;GAEG;AACH,MAAa,2BAA4B,SAAQ,gDAAqB;IAEpE,YACkB,EAAU,EACV,OAAe,EACf,aAAqB,EACrB,SAAiB,EACjB,QAAgB,EAChB,cAAsB,EACtB,UAAkB,EAClB,aAAqB,EACrB,cAAsB,EACtB,OAAe,EACxB,IAAkB,EAClB,KAAa,EACb,MAAc,EACd,aAAsB;QAE7B,KAAK,CACH,EAAE,EACF,OAAO,EACP,aAAa,EACb,SAAS,EACT,QAAQ,EACR,cAAc,EACd,UAAU,EACV,aAAa,EACb,cAAc,EACd,OAAO,CACR,CAAC;
|
|
1
|
+
{"version":3,"file":"vas-instruction-provider.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-instruction-provider.model.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AAEnE,qDAAgD;AAEhD;;GAEG;AACH,MAAa,2BAA4B,SAAQ,gDAAqB;IAEpE,YACkB,EAAU,EACV,OAAe,EACf,aAAqB,EACrB,SAAiB,EACjB,QAAgB,EAChB,cAAsB,EACtB,UAAkB,EAClB,aAAqB,EACrB,cAAsB,EACtB,OAAe,EACxB,IAAkB,EAClB,KAAa,EACb,MAAc,EACd,aAAsB,EACtB,aAAsB;QAE7B,KAAK,CACH,EAAE,EACF,OAAO,EACP,aAAa,EACb,SAAS,EACT,QAAQ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K,EAC1B,GAAG,CAAC,aAAa,IAAI,IAAI,CAC1B,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK;QACH,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;IAEQ,QAAQ,CAAC,OAAa;QAC7B,uCACK,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,KAC1B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAClB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,aAAa,EAAE,IAAI,CAAC,aAAa,IACjC;IACJ,CAAC;CACF;AA7FD,kEA6FC","sourcesContent":["import { VasAccountObjectModel } from './vas-account-object.model';\nimport { VasInstructionProviderDto } from './vas-instruction-provider.dto';\nimport { VasFormModel } from './vas-form.model';\n\n/**\n * VasInstructionProviderModel\n */\nexport class VasInstructionProviderModel extends VasAccountObjectModel {\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 form: VasFormModel,\n public title: string,\n public secret: string,\n public portalEnabled: boolean,\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 );\n }\n\n /**\n * @param dto VasInstructionDto\n * @return VasInstructionModel\n */\n static override fromDto(\n dto: Partial<VasInstructionProviderDto>\n ): VasInstructionProviderModel {\n return new VasInstructionProviderModel(\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.form ?\n VasFormModel.fromDto(dto.form) :\n VasFormModel.empty(),\n dto.title || '',\n dto.secret || '',\n dto.portalEnabled || false,\n dto.portalVisible || true,\n );\n }\n\n /**\n * @returns VasNoteDto\n */\n toDto(): VasInstructionProviderDto {\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 form: this.form.toDto(),\n title: this.title,\n secret: this.secret,\n portalEnabled: this.portalEnabled,\n portalVisible: this.portalVisible\n };\n }\n\n override toApiDto(options?: any): Record<string, string | number | boolean> {\n return {\n ...super.toApiDto(options),\n title: this.title,\n form: this.form.id,\n portalEnabled: this.portalEnabled,\n portalVisible: this.portalVisible\n };\n }\n}\n"]}
|
|
@@ -78,11 +78,13 @@ export declare class VasJobModel extends VasRestrictedAccountObjectModel {
|
|
|
78
78
|
/**
|
|
79
79
|
* Will return an object whose keys are the names of all fields in the job.
|
|
80
80
|
* This method is similar to `getFields` except that this method will only
|
|
81
|
-
* return values where a value was set, as opposed to `getFields` which
|
|
82
|
-
* return a
|
|
81
|
+
* return values where a value was set, as opposed to `getFields` which will
|
|
82
|
+
* return a value for every control even if not value was set, because it uses
|
|
83
|
+
* the form to drive the logic. Note also this method will return values for
|
|
84
|
+
* any Fields in the fields array.
|
|
83
85
|
* @return {Record<string, VasFieldDtoValue>}
|
|
84
86
|
*/
|
|
85
|
-
|
|
87
|
+
getFields2(): Record<string, VasFieldDtoValue>;
|
|
86
88
|
/**
|
|
87
89
|
* Returns an object describing how many attachments were added to this job
|
|
88
90
|
* (camera controls and files), and how many have not been uploaded yet.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-job.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIvD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AAGzE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,CAAC,OAAO,WAAW,2BAA2B;IAClD,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CACjE;AAED,MAAM,WAAW,kBAAkB;IAKjC,cAAc,EAAE,MAAM,CAAC;IAMvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC;CAClF;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,+BAA+B;IA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