@ironcode/vas-lib 1.8.0-alpha.1 → 1.8.0-alpha.14
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/control-value/index.d.ts +1 -0
- package/cjs/lib/control-value/index.d.ts.map +1 -1
- package/cjs/lib/control-value/index.js +1 -0
- package/cjs/lib/control-value/index.js.map +1 -1
- package/cjs/lib/control-value/vas-camera-control-value.model.js +1 -2
- package/cjs/lib/control-value/vas-camera-control-value.model.js.map +1 -1
- package/cjs/lib/control-value/vas-function-control-value.dto.d.ts +7 -0
- package/cjs/lib/control-value/vas-function-control-value.dto.d.ts.map +1 -0
- package/cjs/lib/control-value/vas-function-control-value.dto.js +3 -0
- package/cjs/lib/control-value/vas-function-control-value.dto.js.map +1 -0
- package/cjs/lib/controls-config/index.d.ts +1 -0
- package/cjs/lib/controls-config/index.d.ts.map +1 -1
- package/cjs/lib/controls-config/index.js +1 -0
- package/cjs/lib/controls-config/index.js.map +1 -1
- package/cjs/lib/controls-config/vas-control-config-direction.enum.js +1 -1
- package/cjs/lib/controls-config/vas-control-config-direction.enum.js.map +1 -1
- package/cjs/lib/controls-config/vas-function-control-config.dto.d.ts +6 -0
- package/cjs/lib/controls-config/vas-function-control-config.dto.d.ts.map +1 -0
- package/cjs/lib/controls-config/vas-function-control-config.dto.js +3 -0
- package/cjs/lib/controls-config/vas-function-control-config.dto.js.map +1 -0
- package/cjs/lib/elastic/index.d.ts +2 -0
- package/cjs/lib/elastic/index.d.ts.map +1 -0
- package/cjs/lib/elastic/index.js +5 -0
- package/cjs/lib/elastic/index.js.map +1 -0
- package/cjs/lib/elastic/job.elastic-doc.d.ts +14 -0
- package/cjs/lib/elastic/job.elastic-doc.d.ts.map +1 -0
- package/cjs/lib/elastic/job.elastic-doc.js +3 -0
- package/cjs/lib/elastic/job.elastic-doc.js.map +1 -0
- package/cjs/lib/entity/index.d.ts +4 -0
- package/cjs/lib/entity/index.d.ts.map +1 -1
- package/cjs/lib/entity/index.js +4 -0
- package/cjs/lib/entity/index.js.map +1 -1
- package/cjs/lib/entity/vas-account.dto.js +1 -1
- package/cjs/lib/entity/vas-account.dto.js.map +1 -1
- package/cjs/lib/entity/vas-base.model.d.ts +5 -4
- package/cjs/lib/entity/vas-base.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-base.model.js +1 -1
- package/cjs/lib/entity/vas-base.model.js.map +1 -1
- package/cjs/lib/entity/vas-contact.model.d.ts +1 -0
- package/cjs/lib/entity/vas-contact.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-contact.model.js +22 -1
- package/cjs/lib/entity/vas-contact.model.js.map +1 -1
- package/cjs/lib/entity/vas-control.model.d.ts +6 -4
- package/cjs/lib/entity/vas-control.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-control.model.js +23 -3
- package/cjs/lib/entity/vas-control.model.js.map +1 -1
- package/cjs/lib/entity/vas-field.dto.d.ts +5 -1
- 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 +10 -9
- package/cjs/lib/entity/vas-field.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-field.model.js +43 -27
- package/cjs/lib/entity/vas-field.model.js.map +1 -1
- package/cjs/lib/entity/vas-file.dto.js +1 -2
- package/cjs/lib/entity/vas-file.dto.js.map +1 -1
- package/cjs/lib/entity/vas-file.model.d.ts +1 -0
- package/cjs/lib/entity/vas-file.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-file.model.js +10 -0
- package/cjs/lib/entity/vas-file.model.js.map +1 -1
- package/cjs/lib/entity/vas-fire-user.model.d.ts +1 -1
- package/cjs/lib/entity/vas-fire-user.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-fire-user.model.js.map +1 -1
- package/cjs/lib/entity/vas-form-config.dto.d.ts +2 -23
- 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 +3 -13
- package/cjs/lib/entity/vas-form-config.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-form-config.model.js.map +1 -1
- package/cjs/lib/entity/vas-form.model.d.ts +5 -0
- package/cjs/lib/entity/vas-form.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-form.model.js +21 -1
- package/cjs/lib/entity/vas-form.model.js.map +1 -1
- package/cjs/lib/entity/vas-group.model.d.ts +1 -0
- package/cjs/lib/entity/vas-group.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-group.model.js +11 -0
- package/cjs/lib/entity/vas-group.model.js.map +1 -1
- package/cjs/lib/entity/vas-invitation.js +1 -1
- package/cjs/lib/entity/vas-invitation.js.map +1 -1
- package/cjs/lib/entity/vas-job-action.dto.d.ts +67 -0
- package/cjs/lib/entity/vas-job-action.dto.d.ts.map +1 -0
- package/cjs/lib/entity/vas-job-action.dto.js +20 -0
- package/cjs/lib/entity/vas-job-action.dto.js.map +1 -0
- package/cjs/lib/entity/vas-job-email.model.d.ts +2 -0
- package/cjs/lib/entity/vas-job-email.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job-email.model.js +15 -9
- package/cjs/lib/entity/vas-job-email.model.js.map +1 -1
- package/cjs/lib/entity/vas-job.dto.d.ts +10 -2
- package/cjs/lib/entity/vas-job.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.dto.js.map +1 -1
- package/cjs/lib/entity/vas-job.model.d.ts +13 -4
- package/cjs/lib/entity/vas-job.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.model.js +49 -18
- package/cjs/lib/entity/vas-job.model.js.map +1 -1
- package/cjs/lib/entity/vas-lookup.model.d.ts +35 -0
- package/cjs/lib/entity/vas-lookup.model.d.ts.map +1 -0
- package/cjs/lib/entity/vas-lookup.model.js +73 -0
- package/cjs/lib/entity/vas-lookup.model.js.map +1 -0
- package/cjs/lib/entity/vas-note.model.d.ts +1 -0
- package/cjs/lib/entity/vas-note.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-note.model.js +9 -0
- package/cjs/lib/entity/vas-note.model.js.map +1 -1
- package/cjs/lib/entity/vas-report.dto.d.ts +1 -1
- 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 +5 -2
- package/cjs/lib/entity/vas-report.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-report.model.js +15 -4
- package/cjs/lib/entity/vas-report.model.js.map +1 -1
- package/cjs/lib/entity/vas-task.dto.d.ts +1 -0
- package/cjs/lib/entity/vas-task.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-task.dto.js.map +1 -1
- package/cjs/lib/entity/vas-task.model.d.ts +3 -1
- package/cjs/lib/entity/vas-task.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-task.model.js +16 -2
- package/cjs/lib/entity/vas-task.model.js.map +1 -1
- package/cjs/lib/entity/vas-user.model.d.ts +2 -2
- package/cjs/lib/entity/vas-user.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-user.model.js +1 -1
- package/cjs/lib/entity/vas-user.model.js.map +1 -1
- package/cjs/lib/entity/vas-vehicle.model.d.ts +1 -0
- package/cjs/lib/entity/vas-vehicle.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-vehicle.model.js +12 -0
- package/cjs/lib/entity/vas-vehicle.model.js.map +1 -1
- package/cjs/lib/utils/find-form-control.js.map +1 -1
- package/cjs/lib/utils/get-value-by-path.d.ts.map +1 -1
- package/cjs/lib/utils/get-value-by-path.js.map +1 -1
- package/cjs/lib/utils/is-array-string.d.ts +1 -1
- package/cjs/lib/utils/is-array-string.d.ts.map +1 -1
- package/cjs/lib/utils/omit.d.ts +8 -0
- package/cjs/lib/utils/omit.d.ts.map +1 -0
- package/cjs/lib/utils/omit.js +26 -0
- package/cjs/lib/utils/omit.js.map +1 -0
- package/cjs/lib/utils/only.d.ts +8 -0
- package/cjs/lib/utils/only.d.ts.map +1 -0
- package/cjs/lib/utils/only.js +26 -0
- package/cjs/lib/utils/only.js.map +1 -0
- package/cjs/public-api.d.ts +1 -0
- package/cjs/public-api.d.ts.map +1 -1
- package/cjs/public-api.js +1 -0
- package/cjs/public-api.js.map +1 -1
- package/{fesm2020 → fesm2022}/ironcode-vas-lib.mjs +905 -67
- package/fesm2022/ironcode-vas-lib.mjs.map +1 -0
- package/lib/control-value/index.d.ts +1 -0
- package/lib/control-value/vas-function-control-value.dto.d.ts +6 -0
- package/lib/controls-config/index.d.ts +1 -0
- package/lib/controls-config/vas-function-control-config.dto.d.ts +5 -0
- package/lib/elastic/index.d.ts +1 -0
- package/lib/elastic/job.elastic-doc.d.ts +13 -0
- package/lib/entity/index.d.ts +4 -0
- package/lib/entity/vas-base.model.d.ts +5 -4
- package/lib/entity/vas-contact.model.d.ts +1 -0
- package/lib/entity/vas-control.model.d.ts +6 -4
- package/lib/entity/vas-field.dto.d.ts +5 -1
- package/lib/entity/vas-field.model.d.ts +10 -9
- package/lib/entity/vas-file.model.d.ts +1 -0
- package/lib/entity/vas-fire-user.model.d.ts +1 -1
- package/lib/entity/vas-form-config.dto.d.ts +2 -23
- package/lib/entity/vas-form-config.model.d.ts +3 -13
- package/lib/entity/vas-form.model.d.ts +5 -0
- package/lib/entity/vas-group.model.d.ts +1 -0
- package/lib/entity/vas-job-action.dto.d.ts +66 -0
- package/lib/entity/vas-job-email.model.d.ts +2 -0
- package/lib/entity/vas-job.dto.d.ts +10 -2
- package/lib/entity/vas-job.model.d.ts +13 -4
- package/lib/entity/vas-lookup.model.d.ts +34 -0
- package/lib/entity/vas-note.model.d.ts +1 -0
- package/lib/entity/vas-report.dto.d.ts +1 -1
- package/lib/entity/vas-report.model.d.ts +5 -2
- package/lib/entity/vas-task.dto.d.ts +9 -0
- package/lib/entity/vas-task.model.d.ts +36 -0
- package/lib/entity/vas-user.model.d.ts +2 -2
- package/lib/entity/vas-vehicle.model.d.ts +1 -0
- package/lib/utils/is-array-string.d.ts +1 -1
- package/lib/utils/only.d.ts +7 -0
- package/package.json +4 -11
- package/public-api.d.ts +1 -0
- package/cjs/package.json +0 -66
- package/esm2020/ironcode-vas-lib.mjs +0 -5
- package/esm2020/lib/control-value/index.mjs +0 -2
- package/esm2020/lib/control-value/vas-camera-control-value.model.mjs +0 -8
- package/esm2020/lib/controls-config/index.mjs +0 -4
- package/esm2020/lib/controls-config/vas-control-config-direction.enum.mjs +0 -8
- package/esm2020/lib/controls-config/vas-control-config.model.mjs +0 -2
- package/esm2020/lib/controls-config/vas-select-control-config.model.mjs +0 -2
- package/esm2020/lib/entity/index.mjs +0 -65
- package/esm2020/lib/entity/vas-access-group.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-account-config.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-account-object.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-account-object.model.mjs +0 -24
- package/esm2020/lib/entity/vas-account.dto.mjs +0 -7
- package/esm2020/lib/entity/vas-base.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-base.model.mjs +0 -34
- package/esm2020/lib/entity/vas-branch.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-branch.model.mjs +0 -68
- package/esm2020/lib/entity/vas-contact-type.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-contact.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-contact.model.mjs +0 -84
- package/esm2020/lib/entity/vas-control-type.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-control-type.model.mjs +0 -52
- package/esm2020/lib/entity/vas-control.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-control.model.mjs +0 -171
- package/esm2020/lib/entity/vas-field.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-field.model.mjs +0 -97
- package/esm2020/lib/entity/vas-file.dto.mjs +0 -9
- package/esm2020/lib/entity/vas-file.model.mjs +0 -125
- package/esm2020/lib/entity/vas-fire-user.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-fire-user.model.mjs +0 -102
- package/esm2020/lib/entity/vas-form-config.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-form-config.model.mjs +0 -31
- package/esm2020/lib/entity/vas-form.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-form.model.mjs +0 -194
- package/esm2020/lib/entity/vas-group.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-group.model.mjs +0 -97
- package/esm2020/lib/entity/vas-instruction-job-field.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-instruction-job-field.model.mjs +0 -48
- package/esm2020/lib/entity/vas-instruction-job.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-instruction-job.model.mjs +0 -81
- package/esm2020/lib/entity/vas-instruction-provider.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-instruction-provider.model.mjs +0 -66
- package/esm2020/lib/entity/vas-instruction.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-instruction.model.mjs +0 -52
- package/esm2020/lib/entity/vas-invitation.mjs +0 -88
- package/esm2020/lib/entity/vas-job-data.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-job-data.model.mjs +0 -21
- package/esm2020/lib/entity/vas-job-email.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-job-email.model.mjs +0 -79
- package/esm2020/lib/entity/vas-job-status.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-job-type.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-job.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-job.model.mjs +0 -496
- package/esm2020/lib/entity/vas-lookup-type.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-lookup.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-membership.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-membership.model.mjs +0 -62
- package/esm2020/lib/entity/vas-note.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-note.model.mjs +0 -59
- package/esm2020/lib/entity/vas-report-layout.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-report-layout.model.mjs +0 -22
- package/esm2020/lib/entity/vas-report-request.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-report-request.model.mjs +0 -44
- package/esm2020/lib/entity/vas-report.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-report.model.mjs +0 -57
- package/esm2020/lib/entity/vas-restricted-account-object.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-restricted-account-object.model.mjs +0 -24
- package/esm2020/lib/entity/vas-task-type.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-user.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-user.model.mjs +0 -42
- package/esm2020/lib/entity/vas-vehicle.dto.mjs +0 -2
- package/esm2020/lib/entity/vas-vehicle.model.mjs +0 -57
- package/esm2020/lib/model/geo-location.mjs +0 -12
- package/esm2020/lib/model/index.mjs +0 -3
- package/esm2020/lib/model/vas-time-range.model.mjs +0 -2
- package/esm2020/lib/utils/get-value-by-path.mjs +0 -64
- package/esm2020/lib/utils/is-array-string.mjs +0 -4
- package/esm2020/public-api.mjs +0 -5
- package/fesm2015/ironcode-vas-lib.mjs +0 -2359
- package/fesm2015/ironcode-vas-lib.mjs.map +0 -1
- package/fesm2020/ironcode-vas-lib.mjs.map +0 -1
|
@@ -5,6 +5,7 @@ const vas_restricted_account_object_model_1 = require("./vas-restricted-account-
|
|
|
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
7
|
const vas_form_config_model_1 = require("./vas-form-config.model");
|
|
8
|
+
const only_1 = require("../utils/only");
|
|
8
9
|
/**
|
|
9
10
|
* VasFormModel
|
|
10
11
|
*/
|
|
@@ -139,6 +140,15 @@ class VasFormModel extends vas_restricted_account_object_model_1.VasRestrictedAc
|
|
|
139
140
|
});
|
|
140
141
|
return paths;
|
|
141
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Return all Controls in the Form
|
|
145
|
+
*/
|
|
146
|
+
getControls() {
|
|
147
|
+
return this.groups
|
|
148
|
+
.reduce((acc, g) => {
|
|
149
|
+
return acc.concat(g.controls);
|
|
150
|
+
}, []);
|
|
151
|
+
}
|
|
142
152
|
/**
|
|
143
153
|
* @param {VasJobModel} jobModel
|
|
144
154
|
* @return {Array<{id: string, value: VasFieldDtoValue}>}
|
|
@@ -186,7 +196,17 @@ class VasFormModel extends vas_restricted_account_object_model_1.VasRestrictedAc
|
|
|
186
196
|
};
|
|
187
197
|
}
|
|
188
198
|
toApiDto(options) {
|
|
189
|
-
return Object.assign(Object.assign({}, super.toApiDto(options)), { title: this.title || '~', description: this.description || '~', jobType: this.jobType });
|
|
199
|
+
return Object.assign(Object.assign({}, super.toApiDto(options)), { title: this.title || '~', description: this.description || '~', jobType: this.jobType, config: this.config.toJsonString() });
|
|
200
|
+
}
|
|
201
|
+
static toApiPatchDto(item) {
|
|
202
|
+
return (0, only_1.only)(item, [
|
|
203
|
+
'created',
|
|
204
|
+
'modified',
|
|
205
|
+
'title',
|
|
206
|
+
'description',
|
|
207
|
+
'jobType',
|
|
208
|
+
'config'
|
|
209
|
+
]);
|
|
190
210
|
}
|
|
191
211
|
}
|
|
192
212
|
exports.VasFormModel = VasFormModel;
|
|
@@ -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;AAC/D,mEAA6D;AAE7D;;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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AC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAC/C,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE;YAClC,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;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,IAAI,GAAG,EACxB,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,GAAG,EACpC,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';\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
|
+
{"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;AAC/D,mEAA6D;AAE7D,wCAAqC;AAErC;;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,MAA0B,EAC1B,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,Y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AU;YAC3B,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAC/C,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE;YAClC,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;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,IAAI,GAAG,EACxB,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,GAAG,EACpC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,IAClC;IACJ,CAAC;IAEM,MAAM,CAAC,aAAa,CACzB,IAAyB;QAEzB,OAAO,IAAA,WAAI,EACT,IAAI,EACJ;YACE,SAAS;YACT,UAAU;YACV,OAAO;YACP,aAAa;YACb,SAAS;YACT,QAAQ;SACT,CACF,CAAC;IACJ,CAAC;CACF;AAxQD,oCAwQC","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';\nimport { VasLookupDto } from './vas-lookup.dto';\nimport { only } from '../utils/only';\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 * Return all Controls in the Form\n */\n getControls(): Array<VasControlModel> {\n return this.groups\n .reduce((acc, g) => {\n return acc.concat(g.controls)\n }, [] as Array<VasControlModel>);\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 config: this.config.toJsonString()\n };\n }\n\n public static toApiPatchDto(\n item: Partial<VasFormDto>\n ): Partial<VasFormDto> {\n return only(\n item,\n [\n 'created',\n 'modified',\n 'title',\n 'description',\n 'jobType',\n 'config'\n ]\n );\n }\n}\n\n"]}
|
|
@@ -46,5 +46,6 @@ export declare class VasGroupModel extends VasRestrictedAccountObjectModel {
|
|
|
46
46
|
*/
|
|
47
47
|
toDto(): VasGroupDto;
|
|
48
48
|
toApiDto(options?: any): Record<string, any>;
|
|
49
|
+
static toApiPatchDto(item: Partial<VasGroupDto>): Partial<VasGroupDto>;
|
|
49
50
|
}
|
|
50
51
|
//# sourceMappingURL=vas-group.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-group.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-group.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"vas-group.model.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-group.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAGxF;;GAEG;AACH,qBAAa,aAAc,SAAQ,+BAA+B;IAG9C,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,WAAW,EAAE,MAAM;IAC5B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,MAAM;IACnB,QAAQ,EAAE,MAAM;IAChB,gBAAgB,EAAE,OAAO;IACzB,KAAK,EAAE,MAAM,EAAE;IACf,iBAAiB,EAAE,MAAM;IACzB,eAAe,EAAE,MAAM;IACvB,QAAQ,EAAE,eAAe,EAAE;IAC3B,WAAW,EAAE,MAAM;gBApBV,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,WAAW,EAAE,MAAM,EAC5B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,gBAAgB,EAAE,OAAO,EACzB,KAAK,EAAE,MAAM,EAAE,EACf,iBAAiB,EAAE,MAAM,EACzB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,eAAe,EAAE,EAC3B,WAAW,EAAE,MAAM;IAiB5B;;;OAGG;WACa,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,WAAW,CAAC,GAAG,aAAa;IA8BjE;;;OAGG;IACH,SAAS,CACP,iBAAiB,EAAE,KAAK,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,CAAA;KAAC,CAAC,GAC1E,OAAO;IAgBV;;OAEG;IACH,KAAK,IAAI,WAAW;IA0BX,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAUvC,aAAa,CACzB,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,GACzB,OAAO,CAAC,WAAW,CAAC;CAaxB"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VasGroupModel = void 0;
|
|
4
4
|
const vas_control_model_1 = require("./vas-control.model");
|
|
5
5
|
const vas_restricted_account_object_model_1 = require("./vas-restricted-account-object.model");
|
|
6
|
+
const only_1 = require("../utils/only");
|
|
6
7
|
/**
|
|
7
8
|
* GroupModel
|
|
8
9
|
*/
|
|
@@ -90,6 +91,16 @@ class VasGroupModel extends vas_restricted_account_object_model_1.VasRestrictedA
|
|
|
90
91
|
toApiDto(options) {
|
|
91
92
|
return Object.assign(Object.assign({}, super.toApiDto(options)), { name: this.name || '~', title: this.title || '~', sequence: this.sequence || 0, includeInSummary: this.includeInSummary });
|
|
92
93
|
}
|
|
94
|
+
static toApiPatchDto(item) {
|
|
95
|
+
return (0, only_1.only)(item, [
|
|
96
|
+
'created',
|
|
97
|
+
'modified',
|
|
98
|
+
'name',
|
|
99
|
+
'title',
|
|
100
|
+
'sequence',
|
|
101
|
+
'includeInSummary'
|
|
102
|
+
]);
|
|
103
|
+
}
|
|
93
104
|
}
|
|
94
105
|
exports.VasGroupModel = VasGroupModel;
|
|
95
106
|
//# sourceMappingURL=vas-group.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-group.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-group.model.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AAGtD,+FAAwF;
|
|
1
|
+
{"version":3,"file":"vas-group.model.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-group.model.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AAGtD,+FAAwF;AACxF,wCAAqC;AAErC;;GAEG;AACH,MAAa,aAAc,SAAQ,qEAA+B;IAEhE,YACkB,EAAU,EACV,OAAe,EACf,aAAqB,EACrB,SAAiB,EACjB,QAAgB,EAChB,cAAsB,EACtB,UAAkB,EAClB,aAAqB,EACrB,cAAsB,EACtB,OAAe,EACf,WAAmB,EAC5B,IAAY,EACZ,KAAa,EACb,WAAmB,EACnB,QAAgB,EAChB,gBAAyB,EACzB,KAAe,EACf,iBAAyB,EACz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AAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,CAAC,EAC5B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,IACvC;IACJ,CAAC;IAEM,MAAM,CAAC,aAAa,CACzB,IAA0B;QAE1B,OAAO,IAAA,WAAI,EACT,IAAI,EACJ;YACE,SAAS;YACT,UAAU;YACV,MAAM;YACN,OAAO;YACP,UAAU;YACV,kBAAkB;SACnB,CACF,CAAC;IACJ,CAAC;CACF;AAtJD,sCAsJC","sourcesContent":["import { VasControlModel } from './vas-control.model';\nimport { VasGroupDto } from './vas-group.dto';\nimport { VasFieldDtoValue } from './vas-field.dto';\nimport { VasRestrictedAccountObjectModel } from './vas-restricted-account-object.model';\nimport { only } from '../utils/only';\n\n/**\n * GroupModel\n */\nexport class VasGroupModel 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 name: string,\n public title: string,\n public description: string,\n public sequence: number,\n public includeInSummary: boolean,\n public forms: string[],\n public visibilityControl: string,\n public visibleIfEquals: string,\n public controls: VasControlModel[],\n public scoreWeight: number\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 * @param {VasGroupDto} dto\n * @return {VasGroupModel}\n */\n static override fromDto(dto: Partial<VasGroupDto>): VasGroupModel {\n return new VasGroupModel(\n // eslint-disable-next-line new-cap\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.name || '',\n dto.title || '',\n dto.description || '',\n dto.sequence || 0,\n dto.includeInSummary || false,\n dto.forms || [],\n dto.visibilityControl || '',\n dto.visibleIfEquals || '',\n (dto.controls || [])\n .filter(control => control.name.startsWith('fields.'))\n .sort((a, b) => a.sequence - b.sequence)\n .map(c => VasControlModel.fromDto(c)),\n dto.scoreWeight || 1\n );\n }\n\n /**\n * @param {Array<VasControlModel>} valuesByControlId\n * @return {boolean}\n */\n isVisible(\n valuesByControlId: Array<{id: string, value: VasFieldDtoValue | undefined}>\n ): boolean {\n if (!this.visibilityControl || !this.visibleIfEquals) {\n return true;\n }\n\n const control = valuesByControlId\n .find(c => c.id === this.visibilityControl);\n\n if (!control) {\n console.warn(`control with id ${this.visibilityControl} not found`);\n return true;\n }\n\n return (control.value || '').toString() === this.visibleIfEquals;\n }\n\n /**\n * @return {VasGroupDto}\n */\n toDto(): VasGroupDto {\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 name: this.name,\n title: this.title,\n description: this.description,\n sequence: this.sequence,\n includeInSummary: this.includeInSummary,\n forms: this.forms,\n visibilityControl: this.visibilityControl,\n visibleIfEquals: this.visibleIfEquals,\n controls: this.controls.map(control => control.toDto()),\n scoreWeight: this.scoreWeight\n };\n }\n\n override toApiDto(options?: any): Record<string, any> {\n return {\n ...super.toApiDto(options),\n name: this.name || '~',\n title: this.title || '~',\n sequence: this.sequence || 0,\n includeInSummary: this.includeInSummary\n };\n }\n\n public static toApiPatchDto(\n item: Partial<VasGroupDto>\n ): Partial<VasGroupDto> {\n return only(\n item,\n [\n 'created',\n 'modified',\n 'name',\n 'title',\n 'sequence',\n 'includeInSummary'\n ]\n );\n }\n}\n\n"]}
|
|
@@ -9,7 +9,7 @@ var VasInvitationTypeEnum;
|
|
|
9
9
|
VasInvitationTypeEnum["TYPE_VAS_PORTAL"] = "vas-portal";
|
|
10
10
|
VasInvitationTypeEnum["TYPE_P2C_DESKTOP"] = "p2c-desktop";
|
|
11
11
|
VasInvitationTypeEnum["TYPE_P2C_MOBILE"] = "p2c-mobile";
|
|
12
|
-
})(VasInvitationTypeEnum
|
|
12
|
+
})(VasInvitationTypeEnum || (exports.VasInvitationTypeEnum = VasInvitationTypeEnum = {}));
|
|
13
13
|
class VasInvitationModel extends vas_account_object_model_1.VasAccountObjectModel {
|
|
14
14
|
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, secret, type, accessGroups, contactTypes, jobStatuses, jobTypes, lookupTypes, taskTypes, instructionProviders) {
|
|
15
15
|
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-invitation.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-invitation.ts"],"names":[],"mappings":";;;AAQA,yEAAmE;AAEnE,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,yDAAgC,CAAA;IAChC,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,yDAAgC,CAAA;IAChC,uDAA8B,CAAA;AAChC,CAAC,EANW,qBAAqB,
|
|
1
|
+
{"version":3,"file":"vas-invitation.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-invitation.ts"],"names":[],"mappings":";;;AAQA,yEAAmE;AAEnE,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,yDAAgC,CAAA;IAChC,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,yDAAgC,CAAA;IAChC,uDAA8B,CAAA;AAChC,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AAcD,MAAa,kBAAmB,SAAQ,gDAAqB;IAE3D,YACkB,EAAU,EACV,OAAe,EACf,aAAqB,EACrB,SAAiB,EACjB,QAAgB,EAChB,cAAsB,EACtB,UAAkB,EAClB,aA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AAC,CAAC,EAAE,CAAC,CAAC;QACnD,CAAC;QACD,IAAI,IAAI,CAAC,oBAAoB,CAAC,MAAM,EAAE,CAAC;YACrC,GAAG,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACzE,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAnHD,gDAmHC","sourcesContent":["import { VasAccountObjectDto } from './vas-account-object.dto';\nimport { VasAccessGroupDto } from './vas-access-group.dto';\nimport { VasContactTypeDto } from './vas-contact-type.dto';\nimport { VasInstructionProviderDto } from './vas-instruction-provider.dto';\nimport { VasJobStatusDto } from './vas-job-status.dto';\nimport { VasJobTypeDto } from './vas-job-type.dto';\nimport { VasLookupTypeDto } from './vas-lookup-type.dto';\nimport { VasTaskTypeDto } from './vas-task-type.dto';\nimport { VasAccountObjectModel } from './vas-account-object.model';\n\nexport enum VasInvitationTypeEnum {\n TYPE_VAS_DESKTOP = 'vas-desktop',\n TYPE_VAS_MOBILE = 'vas-mobile',\n TYPE_VAS_PORTAL = 'vas-portal',\n TYPE_P2C_DESKTOP = 'p2c-desktop',\n TYPE_P2C_MOBILE = 'p2c-mobile',\n}\n\nexport interface VasInvitationDto extends VasAccountObjectDto {\n secret: string;\n type: VasInvitationTypeEnum;\n accessGroups: Array<VasAccessGroupDto>;\n contactTypes: Array<VasContactTypeDto>;\n jobStatuses: Array<VasJobStatusDto>;\n jobTypes: Array<VasJobTypeDto>;\n lookupTypes: Array<VasLookupTypeDto>;\n taskTypes: Array<VasTaskTypeDto>;\n instructionProviders: Array<VasInstructionProviderDto>;\n}\n\nexport class VasInvitationModel extends VasAccountObjectModel implements VasAccountObjectDto {\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 secret: string,\n public type: VasInvitationTypeEnum,\n public accessGroups: Array<VasAccessGroupDto>,\n public contactTypes: Array<VasContactTypeDto>,\n public jobStatuses: Array<VasJobStatusDto>,\n public jobTypes: Array<VasJobTypeDto>,\n public lookupTypes: Array<VasLookupTypeDto>,\n public taskTypes: Array<VasTaskTypeDto>,\n public instructionProviders: Array<VasInstructionProviderDto>,\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 toDto(): VasInvitationDto {\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 secret: this.secret,\n type: this.type,\n accessGroups: this.accessGroups,\n contactTypes: this.contactTypes,\n jobStatuses: this.jobStatuses,\n jobTypes: this.jobTypes,\n lookupTypes: this.lookupTypes,\n taskTypes: this.taskTypes,\n instructionProviders: this.instructionProviders,\n };\n }\n\n static override fromDto(dto: Partial<VasInvitationDto>): VasInvitationModel {\n return new VasInvitationModel(\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.secret || '',\n dto.type || VasInvitationTypeEnum.TYPE_VAS_PORTAL,\n dto.accessGroups || [],\n dto.contactTypes || [],\n dto.jobStatuses || [],\n dto.jobTypes || [],\n dto.lookupTypes || [],\n dto.taskTypes || [],\n dto.instructionProviders || [],\n );\n }\n\n\n override toApiDto(options?: any): Record<string, string | number | boolean> {\n const dto: Record<string, any> = {\n ...super.toApiDto(),\n type: this.type\n };\n\n if (this.accessGroups.length) {\n dto['accessGroups'] = this.accessGroups.map(d => d.id);\n }\n if (this.contactTypes.length) {\n dto['contactTypes'] = this.contactTypes.map(d => d.id);\n }\n if (this.jobStatuses.length) {\n dto['jobStatuses'] = this.jobStatuses.map(d => d.id);\n }\n if (this.jobTypes.length) {\n dto['jobTypes'] = this.jobTypes.map(d => d.id);\n }\n if (this.lookupTypes.length) {\n dto['lookupTypes'] = this.lookupTypes.map(d => d.id);\n }\n if (this.taskTypes.length) {\n dto['taskTypes'] = this.taskTypes.map(d => d.id);\n }\n if (this.instructionProviders.length) {\n dto['instructionProviders'] = this.instructionProviders.map(d => d.id);\n }\n return dto;\n }\n}\n"]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare type VasJobActionStepStage = 'initializing' | 'running' | 'succeeded' | 'failed';
|
|
2
|
+
export interface VasJobActionStepDto {
|
|
3
|
+
id: string;
|
|
4
|
+
type: 'automation' | 'controls' | 'email-form' | 'instruction' | 'set-job-status';
|
|
5
|
+
stage: VasJobActionStepStage;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Describes an action that can be performed on a job
|
|
9
|
+
*/
|
|
10
|
+
export interface VasJobActionDto {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
steps: Array<VasJobActionStepDto>;
|
|
14
|
+
succeededControl?: string;
|
|
15
|
+
jobStatuses?: Array<string>;
|
|
16
|
+
context: 'portal-instruction' | 'job-form';
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Automation steps allow us to send the job along with some configuration
|
|
20
|
+
* parameters to some backend automation
|
|
21
|
+
*/
|
|
22
|
+
export interface VasJobActionAutomationStepDto extends VasJobActionStepDto {
|
|
23
|
+
type: 'automation';
|
|
24
|
+
url: string;
|
|
25
|
+
params?: Record<string, any>;
|
|
26
|
+
}
|
|
27
|
+
export declare const isJobAutomationStep: (step: VasJobActionStepDto) => step is VasJobActionAutomationStepDto;
|
|
28
|
+
/**
|
|
29
|
+
* Controls step allow us to specify a number of controls to present to the user
|
|
30
|
+
*/
|
|
31
|
+
export interface VasJobActionControlsStepDto extends VasJobActionStepDto {
|
|
32
|
+
type: 'controls';
|
|
33
|
+
controlNames: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
export declare const isJobControlsStep: (step: VasJobActionStepDto) => step is VasJobActionControlsStepDto;
|
|
36
|
+
/**
|
|
37
|
+
* Email form step allow us to present the email form with some values already
|
|
38
|
+
* set
|
|
39
|
+
*/
|
|
40
|
+
export interface VasJobActionEmailFormStepDto extends VasJobActionStepDto {
|
|
41
|
+
type: 'email-form';
|
|
42
|
+
params: {
|
|
43
|
+
$recipients: Array<string>;
|
|
44
|
+
$subject: string;
|
|
45
|
+
$body: Array<string>;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export declare const isJobEmailFormStep: (step: VasJobActionStepDto) => step is VasJobActionEmailFormStepDto;
|
|
49
|
+
/**
|
|
50
|
+
* This step is designed to allow us to add an action button that will be
|
|
51
|
+
* displayed on the instruction. If the user invokes the action, a form will be
|
|
52
|
+
* displayed. The form id is discovered by looking up the instruction provider.
|
|
53
|
+
*/
|
|
54
|
+
export interface VasJobActionInstructionStepDto extends VasJobActionStepDto {
|
|
55
|
+
type: 'instruction';
|
|
56
|
+
instructionProviderId: string;
|
|
57
|
+
linkControl: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* SetJobStatus step allow us set the job status to some value
|
|
61
|
+
*/
|
|
62
|
+
export interface VasJobActionSetJobStatusStepDto extends VasJobActionStepDto {
|
|
63
|
+
type: 'set-job-status';
|
|
64
|
+
value: string;
|
|
65
|
+
}
|
|
66
|
+
export declare const isJobSetJobStatusStep: (step: VasJobActionStepDto) => step is VasJobActionSetJobStatusStepDto;
|
|
67
|
+
//# sourceMappingURL=vas-job-action.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vas-job-action.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job-action.dto.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAA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,CAAC,CAAC;KACtB,CAAC;CACH;AAED,eAAO,MAAM,kBAAkB,SACvB,mBAAmB,KACxB,IAAI,IAAI,4BAEV,CAAC;AAGF;;;;GAIG;AACH,MAAM,WAAW,8BAA+B,SAAQ,mBAAmB;IACzE,IAAI,EAAE,aAAa,CAAC;IAIpB,qBAAqB,EAAE,MAAM,CAAC;IAI9B,WAAW,EAAE,MAAM,CAAC;CACrB;AAGD;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,mBAAmB;IAC1E,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,qBAAqB,SAC1B,mBAAmB,KACxB,IAAI,IAAI,+BAEV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isJobSetJobStatusStep = exports.isJobEmailFormStep = exports.isJobControlsStep = exports.isJobAutomationStep = void 0;
|
|
4
|
+
const isJobAutomationStep = (step) => {
|
|
5
|
+
return step && step.type === 'automation';
|
|
6
|
+
};
|
|
7
|
+
exports.isJobAutomationStep = isJobAutomationStep;
|
|
8
|
+
const isJobControlsStep = (step) => {
|
|
9
|
+
return step && step.type === 'controls';
|
|
10
|
+
};
|
|
11
|
+
exports.isJobControlsStep = isJobControlsStep;
|
|
12
|
+
const isJobEmailFormStep = (step) => {
|
|
13
|
+
return step && step.type === 'email-form';
|
|
14
|
+
};
|
|
15
|
+
exports.isJobEmailFormStep = isJobEmailFormStep;
|
|
16
|
+
const isJobSetJobStatusStep = (step) => {
|
|
17
|
+
return step && step.type === 'set-job-status';
|
|
18
|
+
};
|
|
19
|
+
exports.isJobSetJobStatusStep = isJobSetJobStatusStep;
|
|
20
|
+
//# sourceMappingURL=vas-job-action.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vas-job-action.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job-action.dto.ts"],"names":[],"mappings":";;;AA6CO,MAAM,mBAAmB,GAAG,CACjC,IAAyB,EACc,EAAE;IACzC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC;AAC5C,CAAC,CAAC;AAJW,QAAA,mBAAmB,uBAI9B;AAUK,MAAM,iBAAiB,GAAG,CAC/B,IAAyB,EACY,EAAE;IACvC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,CAAC;AAC1C,CAAC,CAAC;AAJW,QAAA,iBAAiB,qBAI5B;AAeK,MAAM,kBAAkB,GAAG,CAChC,IAAyB,EACa,EAAE;IACxC,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC;AAC5C,CAAC,CAAC;AAJW,QAAA,kBAAkB,sBAI7B;AA6BK,MAAM,qBAAqB,GAAG,CACnC,IAAyB,EACgB,EAAE;IAC3C,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAChD,CAAC,CAAC;AAJW,QAAA,qBAAqB,yBAIhC","sourcesContent":["export declare type VasJobActionStepStage = 'initializing' | 'running' | 'succeeded' | 'failed';\n\nexport interface VasJobActionStepDto {\n id: string;\n type: 'automation' | 'controls' | 'email-form' | 'instruction' | 'set-job-status';\n stage: VasJobActionStepStage;\n}\n\n/**\n * Describes an action that can be performed on a job\n */\nexport interface VasJobActionDto {\n // unique id of the action\n id: string;\n // The title of the action\n title: string;\n // a list of steps to be performed\n steps: Array<VasJobActionStepDto>;\n // a control name for which to check the presence of a value. If the value\n // is set, then the action is assumed to have succeeded. The field for the\n // control should be set by the last step in the action.\n succeededControl?: string;\n // a list of job status ids that this action will be valid for, if the array\n // is empty, then the action is valid for any job status.\n jobStatuses?: Array<string>;\n // the context where the action can be displayed\n context:\n // action can be displayed in the portal viewing an instruction\n 'portal-instruction'\n // action can be displayed when the job form is available\n | 'job-form';\n}\n\n/**\n * Automation steps allow us to send the job along with some configuration\n * parameters to some backend automation\n */\nexport interface VasJobActionAutomationStepDto extends VasJobActionStepDto {\n type: 'automation';\n // url of the automation engine\n url: string;\n // an object of parameters that will be passed to the automation\n params?: Record<string, any>;\n}\n\nexport const isJobAutomationStep = (\n step: VasJobActionStepDto\n): step is VasJobActionAutomationStepDto => {\n return step && step.type === 'automation';\n};\n\n/**\n * Controls step allow us to specify a number of controls to present to the user\n */\nexport interface VasJobActionControlsStepDto extends VasJobActionStepDto {\n type: 'controls';\n controlNames: Array<string>;\n}\n\nexport const isJobControlsStep = (\n step: VasJobActionStepDto\n): step is VasJobActionControlsStepDto => {\n return step && step.type === 'controls';\n};\n\n/**\n * Email form step allow us to present the email form with some values already\n * set\n */\nexport interface VasJobActionEmailFormStepDto extends VasJobActionStepDto {\n type: 'email-form';\n params: {\n $recipients: Array<string>,\n $subject: string;\n $body: Array<string>;\n };\n}\n\nexport const isJobEmailFormStep = (\n step: VasJobActionStepDto\n): step is VasJobActionEmailFormStepDto => {\n return step && step.type === 'email-form';\n};\n\n\n/**\n * This step is designed to allow us to add an action button that will be\n * displayed on the instruction. If the user invokes the action, a form will be\n * displayed. The form id is discovered by looking up the instruction provider.\n */\nexport interface VasJobActionInstructionStepDto extends VasJobActionStepDto {\n type: '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\n\n/**\n * SetJobStatus step allow us set the job status to some value\n */\nexport interface VasJobActionSetJobStatusStepDto extends VasJobActionStepDto {\n type: 'set-job-status';\n value: string;\n}\n\nexport const isJobSetJobStatusStep = (\n step: VasJobActionStepDto\n): step is VasJobActionSetJobStatusStepDto => {\n return step && step.type === 'set-job-status';\n};\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
export declare class VasJobEmailModel extends VasJobDataModel {
|
|
4
5
|
id: string;
|
|
5
6
|
created: string;
|
|
@@ -27,5 +28,6 @@ export declare class VasJobEmailModel extends VasJobDataModel {
|
|
|
27
28
|
static fromDto(dto: Partial<VasJobEmailDto>): VasJobEmailModel;
|
|
28
29
|
toDto(): VasJobEmailDto;
|
|
29
30
|
toApiDto(options?: any): Record<string, any>;
|
|
31
|
+
static toApiPatchDto(item: Partial<VasNoteDto>): Partial<VasNoteDto>;
|
|
30
32
|
}
|
|
31
33
|
//# 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;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAI5C,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,GAA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 -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VasJobEmailModel = void 0;
|
|
4
4
|
const vas_job_data_model_1 = require("./vas-job-data.model");
|
|
5
|
+
const only_1 = require("../utils/only");
|
|
5
6
|
class VasJobEmailModel extends vas_job_data_model_1.VasJobDataModel {
|
|
6
7
|
constructor(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job, body, cc, files, message, recipients, replyTo, reports, sender, sentTime, subject, succeeded) {
|
|
7
8
|
super(id, created, serverCreated, createdBy, modified, serverModified, modifiedBy, createdByName, modifiedByName, account, job);
|
|
@@ -59,25 +60,30 @@ class VasJobEmailModel extends vas_job_data_model_1.VasJobDataModel {
|
|
|
59
60
|
}
|
|
60
61
|
toApiDto(options) {
|
|
61
62
|
return {
|
|
62
|
-
id: this.id,
|
|
63
|
+
// id: this.id,
|
|
63
64
|
created: this.created,
|
|
64
|
-
createdBy: this.createdBy,
|
|
65
65
|
modified: this.modified,
|
|
66
|
-
account: this.account,
|
|
67
|
-
job: this.job,
|
|
68
66
|
body: this.body,
|
|
69
67
|
cc: this.cc,
|
|
70
68
|
files: this.files,
|
|
71
|
-
message: this.message,
|
|
72
69
|
recipients: this.recipients,
|
|
73
|
-
replyTo: this.replyTo,
|
|
74
70
|
reports: this.reports,
|
|
75
|
-
sender: this.sender,
|
|
76
|
-
sentTime: this.sentTime,
|
|
77
71
|
subject: this.subject,
|
|
78
|
-
succeeded: this.succeeded,
|
|
79
72
|
};
|
|
80
73
|
}
|
|
74
|
+
static toApiPatchDto(item) {
|
|
75
|
+
return (0, only_1.only)(item, [
|
|
76
|
+
'created',
|
|
77
|
+
'modified',
|
|
78
|
+
'body',
|
|
79
|
+
'cc',
|
|
80
|
+
'files',
|
|
81
|
+
'message',
|
|
82
|
+
'recipients',
|
|
83
|
+
'reports',
|
|
84
|
+
'subject',
|
|
85
|
+
]);
|
|
86
|
+
}
|
|
81
87
|
}
|
|
82
88
|
exports.VasJobEmailModel = VasJobEmailModel;
|
|
83
89
|
//# sourceMappingURL=vas-job-email.model.js.map
|
|
@@ -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;AAGvD,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,EACP,GAAG,CACJ,CAAC;QAnCc,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,OAAO,CAAQ;QACf,QAAG,GAAH,GAAG,CAAQ;QACpB,SAAI,GAAJ,IAAI,CAAQ;QACZ,OAAE,GAA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;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 { VasNoteDto } from './vas-note.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<VasNoteDto>\n ): Partial<VasNoteDto> {\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"]}
|
|
@@ -2,6 +2,10 @@ import { VasFileDto } from './vas-file.dto';
|
|
|
2
2
|
import { VasRestrictedAccountObjectDto } from './vas-restricted-account-object.dto';
|
|
3
3
|
import { VasFieldDto, VasFieldDtoValue } from './vas-field.dto';
|
|
4
4
|
import { GeoLocation } from '../model/geo-location';
|
|
5
|
+
import { VasReportDto } from './vas-report.dto';
|
|
6
|
+
import { VasTaskDto } from './vas-task.dto';
|
|
7
|
+
import { VasNoteDto } from './vas-note.dto';
|
|
8
|
+
import { VasJobEmailDto } from './vas-job-email.dto';
|
|
5
9
|
export interface VasJobStaticDto extends VasRestrictedAccountObjectDto {
|
|
6
10
|
reference: string;
|
|
7
11
|
jobDate: string;
|
|
@@ -13,11 +17,15 @@ export interface VasJobStaticDto extends VasRestrictedAccountObjectDto {
|
|
|
13
17
|
pendingFields: number;
|
|
14
18
|
childModified: string;
|
|
15
19
|
version: number;
|
|
16
|
-
files: Array<VasFileDto>;
|
|
17
|
-
fields: Array<VasFieldDto>;
|
|
18
20
|
createdByDisplayName: string;
|
|
19
21
|
modifiedByDisplayName: string;
|
|
20
22
|
geoLocation: GeoLocation;
|
|
23
|
+
files: Array<VasFileDto>;
|
|
24
|
+
fields: Array<VasFieldDto>;
|
|
25
|
+
jobEmails: Array<VasJobEmailDto>;
|
|
26
|
+
notes: Array<VasNoteDto>;
|
|
27
|
+
reports: Array<VasReportDto>;
|
|
28
|
+
tasks: Array<VasTaskDto>;
|
|
21
29
|
}
|
|
22
30
|
export declare type VasJobDto = VasJobStaticDto & Record<string, VasFieldDtoValue>;
|
|
23
31
|
//# sourceMappingURL=vas-job.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-job.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"vas-job.dto.d.ts","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,WAAW,eAAgB,SAAQ,6BAA6B;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACzB,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC3B,SAAS,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAChC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACzB,OAAO,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC1B;AACD,MAAM,CAAC,OAAO,MAAM,SAAS,GAAG,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vas-job.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasFileDto } from './vas-file.dto';\nimport { VasRestrictedAccountObjectDto } from './vas-restricted-account-object.dto';\nimport { VasFieldDto, VasFieldDtoValue } from './vas-field.dto';\nimport { GeoLocation } from '../model/geo-location';\n\nexport interface VasJobStaticDto extends VasRestrictedAccountObjectDto {\n reference: string;\n jobDate: string;\n jobStatus: string;\n jobType: string;\n assigneeId: string;\n formId: string;\n timeZoneOffset: number;\n pendingFields: number;\n childModified: string;\n version: number;\n files: Array<VasFileDto>;\n fields: Array<VasFieldDto>;\n
|
|
1
|
+
{"version":3,"file":"vas-job.dto.js","sourceRoot":"","sources":["../../../../../projects/vas-lib/src/lib/entity/vas-job.dto.ts"],"names":[],"mappings":"","sourcesContent":["import { VasFileDto } from './vas-file.dto';\nimport { VasRestrictedAccountObjectDto } from './vas-restricted-account-object.dto';\nimport { VasFieldDto, VasFieldDtoValue } from './vas-field.dto';\nimport { GeoLocation } from '../model/geo-location';\nimport { VasReportDto } from './vas-report.dto';\nimport { VasTaskDto } from './vas-task.dto';\nimport { VasNoteDto } from './vas-note.dto';\nimport { VasJobEmailDto } from './vas-job-email.dto';\n\nexport interface VasJobStaticDto extends VasRestrictedAccountObjectDto {\n reference: string;\n jobDate: string;\n jobStatus: string;\n jobType: string;\n assigneeId: string;\n formId: string;\n timeZoneOffset: number;\n pendingFields: number;\n childModified: string;\n version: number;\n createdByDisplayName: string;\n modifiedByDisplayName: string;\n geoLocation: GeoLocation;\n files: Array<VasFileDto>;\n fields: Array<VasFieldDto>;\n jobEmails: Array<VasJobEmailDto>\n notes: Array<VasNoteDto>;\n reports: Array<VasReportDto>;\n tasks: Array<VasTaskDto>;\n}\nexport declare type VasJobDto = VasJobStaticDto & Record<string, VasFieldDtoValue>;\n"]}
|
|
@@ -4,8 +4,12 @@ import { VasFieldDto, VasFieldDtoValue } from './vas-field.dto';
|
|
|
4
4
|
import { VasFormModel } from './vas-form.model';
|
|
5
5
|
import { VasJobDto } from './vas-job.dto';
|
|
6
6
|
import { VasRestrictedAccountObjectModel } from './vas-restricted-account-object.model';
|
|
7
|
-
import { GeoLocation } from '../model
|
|
7
|
+
import { GeoLocation } from '../model';
|
|
8
8
|
import { VasFormDto } from './vas-form.dto';
|
|
9
|
+
import { VasReportDto } from './vas-report.dto';
|
|
10
|
+
import { VasTaskDto } from './vas-task.dto';
|
|
11
|
+
import { VasNoteDto } from './vas-note.dto';
|
|
12
|
+
import { VasJobEmailDto } from './vas-job-email.dto';
|
|
9
13
|
export declare interface VasJobModelDynamicInterface {
|
|
10
14
|
[s: string]: string | number | Record<string, VasFieldDtoValue>;
|
|
11
15
|
}
|
|
@@ -38,12 +42,16 @@ export declare class VasJobModel extends VasRestrictedAccountObjectModel {
|
|
|
38
42
|
pendingFields: number;
|
|
39
43
|
childModified: string;
|
|
40
44
|
version: number;
|
|
41
|
-
fields: Array<VasFieldDto>;
|
|
42
|
-
files: Array<VasFileDto>;
|
|
43
45
|
createdByDisplayName: string;
|
|
44
46
|
modifiedByDisplayName: string;
|
|
45
47
|
geoLocation: GeoLocation;
|
|
46
|
-
|
|
48
|
+
files: Array<VasFileDto>;
|
|
49
|
+
fields: Array<VasFieldDto>;
|
|
50
|
+
jobEmails: Array<VasJobEmailDto>;
|
|
51
|
+
notes: Array<VasNoteDto>;
|
|
52
|
+
reports: Array<VasReportDto>;
|
|
53
|
+
tasks: Array<VasTaskDto>;
|
|
54
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, accessGroup: string, reference: string, jobDate: string, jobStatus: string, jobType: string, assigneeId: string, formId: string, timeZoneOffset: number, pendingFields: number, childModified: string, version: number, createdByDisplayName: string, modifiedByDisplayName: string, geoLocation: GeoLocation, files: Array<VasFileDto>, fields: Array<VasFieldDto>, jobEmails: Array<VasJobEmailDto>, notes: Array<VasNoteDto>, reports: Array<VasReportDto>, tasks: Array<VasTaskDto>);
|
|
47
55
|
/**
|
|
48
56
|
* Returns this with the dynamic interface
|
|
49
57
|
* @return {VasJobModelDynamicInterface}
|
|
@@ -219,5 +227,6 @@ export declare class VasJobModel extends VasRestrictedAccountObjectModel {
|
|
|
219
227
|
* @return {object}
|
|
220
228
|
*/
|
|
221
229
|
toApiDto(): Record<string, string | number | boolean>;
|
|
230
|
+
static toApiPatchDto(item: Partial<VasJobDto>): Partial<VasJobDto>;
|
|
222
231
|
}
|
|
223
232
|
//# sourceMappingURL=vas-job.model.d.ts.map
|
|
@@ -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,
|
|
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,UAAU,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,CAAC,OAAO,WAAW,2BAA2B;IAClD,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,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