@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
package/lib/entity/index.d.ts
CHANGED
|
@@ -40,9 +40,11 @@ export * from './vas-job-email.dto';
|
|
|
40
40
|
export * from './vas-job-email.model';
|
|
41
41
|
export * from './vas-job.dto';
|
|
42
42
|
export * from './vas-job.model';
|
|
43
|
+
export * from './vas-job-action.dto';
|
|
43
44
|
export * from './vas-job-status.dto';
|
|
44
45
|
export * from './vas-job-type.dto';
|
|
45
46
|
export * from './vas-lookup.dto';
|
|
47
|
+
export * from './vas-lookup.model';
|
|
46
48
|
export * from './vas-lookup-type.dto';
|
|
47
49
|
export * from './vas-membership.dto';
|
|
48
50
|
export * from './vas-membership.model';
|
|
@@ -56,6 +58,8 @@ export * from './vas-report-request.dto';
|
|
|
56
58
|
export * from './vas-report-request.model';
|
|
57
59
|
export * from './vas-restricted-account-object.dto';
|
|
58
60
|
export * from './vas-restricted-account-object.model';
|
|
61
|
+
export * from './vas-task.dto';
|
|
62
|
+
export * from './vas-task.model';
|
|
59
63
|
export * from './vas-task-type.dto';
|
|
60
64
|
export * from './vas-user.dto';
|
|
61
65
|
export * from './vas-user.model';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { VasBaseDto } from './vas-base.dto';
|
|
2
|
-
|
|
3
|
-
interface VasModelStatic<T extends VasBaseModel> {
|
|
2
|
+
export interface VasModelStatic<T extends VasBaseModel> {
|
|
4
3
|
new (...args: any[]): T;
|
|
5
4
|
fromDto(dto: Partial<VasBaseDto>): T;
|
|
6
5
|
}
|
|
@@ -19,6 +18,8 @@ export declare class VasBaseModel implements VasBaseDto {
|
|
|
19
18
|
modifiedByName: string;
|
|
20
19
|
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string);
|
|
21
20
|
static fromDto(dto: Partial<VasBaseDto>): VasBaseModel;
|
|
22
|
-
static create<T extends VasBaseDto>(this: VasModelStatic<T>, user:
|
|
21
|
+
static create<T extends VasBaseDto>(this: VasModelStatic<T>, user: {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
}, values?: Partial<T>): T;
|
|
23
25
|
}
|
|
24
|
-
export {};
|
|
@@ -29,4 +29,5 @@ export declare class VasContactModel extends VasRestrictedAccountObjectModel imp
|
|
|
29
29
|
static fromDto(dto: Partial<VasContactDto>): VasContactModel;
|
|
30
30
|
toDto(): VasContactDto;
|
|
31
31
|
toApiDto(options?: any): Record<string, string | number | boolean>;
|
|
32
|
+
static toApiPatchDto(contact: Partial<VasContactDto>): Partial<VasContactDto>;
|
|
32
33
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { VasControlTypeModel } from './vas-control-type.model';
|
|
2
2
|
import { VasControlDto } from './vas-control.dto';
|
|
3
3
|
import { VasRestrictedAccountObjectModel } from './vas-restricted-account-object.model';
|
|
4
|
+
import { VasFieldDtoValue } from './vas-field.dto';
|
|
4
5
|
export declare type VasControlModelDefaultValueType = string | number | object;
|
|
5
6
|
/**
|
|
6
7
|
* ControlModel
|
|
@@ -37,7 +38,7 @@ export declare class VasControlModel extends VasRestrictedAccountObjectModel {
|
|
|
37
38
|
* in the case of string, it maybe a json. This getter will return an
|
|
38
39
|
* object if the value is a json string
|
|
39
40
|
*/
|
|
40
|
-
get defaultValueDecoded():
|
|
41
|
+
get defaultValueDecoded(): VasFieldDtoValue;
|
|
41
42
|
/**
|
|
42
43
|
* Returns the name of this control to be used in the report templates
|
|
43
44
|
* i.e. fields.foo -> foo
|
|
@@ -58,13 +59,14 @@ export declare class VasControlModel extends VasRestrictedAccountObjectModel {
|
|
|
58
59
|
*/
|
|
59
60
|
static fromDto(dto: Partial<VasControlDto>): VasControlModel;
|
|
60
61
|
/**
|
|
61
|
-
* @param {
|
|
62
|
-
* @return {
|
|
62
|
+
* @param {any} value the value to be parsed
|
|
63
|
+
* @return {VasFieldDtoValue} the parsed value
|
|
63
64
|
*/
|
|
64
|
-
protected parseMaybeJson(value:
|
|
65
|
+
protected parseMaybeJson(value: any): VasFieldDtoValue;
|
|
65
66
|
/**
|
|
66
67
|
* @return {VasControlDto}
|
|
67
68
|
*/
|
|
68
69
|
toDto(): VasControlDto;
|
|
69
70
|
toApiDto(options?: any): Record<string, any>;
|
|
71
|
+
static toApiPatchDto(item: Partial<VasControlDto>): Partial<VasControlDto>;
|
|
70
72
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { VasJobDataDto } from './vas-job-data.dto';
|
|
2
2
|
import { VasFileDto } from './vas-file.dto';
|
|
3
3
|
import { GeoLocation } from '../model/geo-location';
|
|
4
|
-
|
|
4
|
+
import { VasFunctionControlValueDto } from '../control-value';
|
|
5
|
+
import { VasCameraControlValueModel } from '../control-value';
|
|
6
|
+
declare type FieldValueType = string | number | boolean | null | GeoLocation | Array<object | string | number | boolean | VasFileDto> | Record<string, any> | VasCameraControlValueModel | VasFunctionControlValueDto;
|
|
7
|
+
export declare type VasFieldDtoValue = FieldValueType | Record<string, FieldValueType>;
|
|
5
8
|
export interface VasFieldDto extends VasJobDataDto {
|
|
6
9
|
control: string;
|
|
7
10
|
fieldJobPointers: Array<string>;
|
|
@@ -11,3 +14,4 @@ export interface VasFieldDto extends VasJobDataDto {
|
|
|
11
14
|
controlTitle: string;
|
|
12
15
|
controlTypeName: string;
|
|
13
16
|
}
|
|
17
|
+
export {};
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { VasFieldDto, VasFieldDtoValue } from './vas-field.dto';
|
|
2
2
|
import { VasJobDataModel } from './vas-job-data.model';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares the value to be sent to the API. The api will only accept strings,
|
|
5
|
+
* numbers and booleans, thus if we have an array or object, we need to JSON
|
|
6
|
+
* encode it
|
|
7
|
+
* @param {VasFieldDto} value
|
|
8
|
+
* @return {string | number | boolean}
|
|
9
|
+
* @protected
|
|
10
|
+
*/
|
|
11
|
+
export declare const prepareFieldApiValue: (value: VasFieldDtoValue) => string | number | boolean;
|
|
3
12
|
/**
|
|
4
13
|
* VasFieldModel
|
|
5
14
|
*/
|
|
@@ -36,13 +45,5 @@ export declare class VasFieldModel extends VasJobDataModel {
|
|
|
36
45
|
* @return {object}
|
|
37
46
|
*/
|
|
38
47
|
toApiDto(): Record<string, string | number | boolean>;
|
|
39
|
-
|
|
40
|
-
* Prepares the value to be sent to the API. The api will only accept strings,
|
|
41
|
-
* numbers and booleans, thus if we have an array or object, we need to JSON
|
|
42
|
-
* encode it
|
|
43
|
-
* @param {VasFieldDto} value
|
|
44
|
-
* @return {string | number | boolean}
|
|
45
|
-
* @protected
|
|
46
|
-
*/
|
|
47
|
-
protected prepareApiValue(value: VasFieldDtoValue): string | number | boolean;
|
|
48
|
+
static toApiPatchDto(item: Partial<VasFieldDto>): Partial<VasFieldDto>;
|
|
48
49
|
}
|
|
@@ -39,4 +39,5 @@ export declare class VasFileModel extends VasJobDataModel {
|
|
|
39
39
|
stringifyConfig(config: VasFileDtoConfigDto): string;
|
|
40
40
|
toApiDto(options?: VasFileModelToApiDtoOptions): Record<string, string | number | boolean>;
|
|
41
41
|
protected safeNumber(value: number): number;
|
|
42
|
+
static toApiPatchDto(item: Partial<VasFileDto>): Partial<VasFileDto>;
|
|
42
43
|
}
|
|
@@ -20,7 +20,7 @@ export declare class VasFireUserModel extends VasUserModel implements VasFireUse
|
|
|
20
20
|
topics: Array<string>;
|
|
21
21
|
language: string;
|
|
22
22
|
displayName: string;
|
|
23
|
-
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, email: string, name: string, username: string, memberships: Array<string>, instructionProviders: Array<string>, accounts: VasFireUserDtoAccountType, tokens: Array<string>, topics: Array<string>, language: string, displayName: string);
|
|
23
|
+
constructor(id: string, created: string | undefined, serverCreated: string | undefined, createdBy: string | undefined, modified: string | undefined, serverModified: string | undefined, modifiedBy: string | undefined, createdByName: string, modifiedByName: string, email: string, name: string, username: string, memberships: Array<string>, instructionProviders: Array<string>, accounts: VasFireUserDtoAccountType, tokens: Array<string>, topics: Array<string>, language: string, displayName: string);
|
|
24
24
|
static fromDto(dto: VasFireUserDto): VasFireUserModel;
|
|
25
25
|
static newUser(uid: string, displayName: string, email: string): VasFireUserModel;
|
|
26
26
|
toDto(): VasFireUserDto;
|
|
@@ -1,25 +1,4 @@
|
|
|
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
|
-
automation?: {
|
|
18
|
-
promptNote: boolean;
|
|
19
|
-
url: string;
|
|
20
|
-
key: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
1
|
+
import { VasJobActionDto } from './vas-job-action.dto';
|
|
23
2
|
export interface VasFormConfigDto {
|
|
24
3
|
emailRecipients?: {
|
|
25
4
|
job: Array<{
|
|
@@ -27,5 +6,5 @@ export interface VasFormConfigDto {
|
|
|
27
6
|
}>;
|
|
28
7
|
static: Array<string>;
|
|
29
8
|
};
|
|
30
|
-
actions?: Array<
|
|
9
|
+
actions?: Array<VasJobActionDto>;
|
|
31
10
|
}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import { VasFormConfigDto } from './vas-form-config.dto';
|
|
2
2
|
export declare class VasFormConfigModel {
|
|
3
|
-
emailRecipients?:
|
|
4
|
-
|
|
5
|
-
|
|
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);
|
|
3
|
+
emailRecipients?: VasFormConfigDto['emailRecipients'];
|
|
4
|
+
actions?: VasFormConfigDto['actions'];
|
|
5
|
+
constructor(emailRecipients?: VasFormConfigDto['emailRecipients'], actions?: VasFormConfigDto['actions']);
|
|
16
6
|
toDto(): VasFormConfigDto;
|
|
17
7
|
toJsonString(): string;
|
|
18
8
|
static create(): VasFormConfigModel;
|
|
@@ -72,6 +72,10 @@ export declare class VasFormModel extends VasRestrictedAccountObjectModel {
|
|
|
72
72
|
* @return {Array<Array<string>>}
|
|
73
73
|
*/
|
|
74
74
|
getCameraControlPaths(): Array<Array<string>>;
|
|
75
|
+
/**
|
|
76
|
+
* Return all Controls in the Form
|
|
77
|
+
*/
|
|
78
|
+
getControls(): Array<VasControlModel>;
|
|
75
79
|
/**
|
|
76
80
|
* @param {VasJobModel} jobModel
|
|
77
81
|
* @return {Array<{id: string, value: VasFieldDtoValue}>}
|
|
@@ -85,4 +89,5 @@ export declare class VasFormModel extends VasRestrictedAccountObjectModel {
|
|
|
85
89
|
*/
|
|
86
90
|
toDto(): VasFormDto;
|
|
87
91
|
toApiDto(options?: any): Record<string, any>;
|
|
92
|
+
static toApiPatchDto(item: Partial<VasFormDto>): Partial<VasFormDto>;
|
|
88
93
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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;
|
|
@@ -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,4 +28,5 @@ 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
|
}
|
|
@@ -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,10 +17,14 @@ 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>;
|
|
@@ -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,4 +227,5 @@ 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
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { VasLookupDto } from './vas-lookup.dto';
|
|
2
|
+
import { VasRestrictedAccountObjectModel } from './vas-restricted-account-object.model';
|
|
3
|
+
/**
|
|
4
|
+
* VasLookupModel
|
|
5
|
+
*/
|
|
6
|
+
export declare class VasLookupModel extends VasRestrictedAccountObjectModel implements VasLookupDto {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
account: string;
|
|
17
|
+
accessGroup: string;
|
|
18
|
+
content: string;
|
|
19
|
+
lookupType: string;
|
|
20
|
+
sequence: number;
|
|
21
|
+
title: string;
|
|
22
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, accessGroup: string, content: string, lookupType: string, sequence: number, title: string);
|
|
23
|
+
/**
|
|
24
|
+
* @param dto VasLookupDto
|
|
25
|
+
* @return VasLookupModel
|
|
26
|
+
*/
|
|
27
|
+
static fromDto(dto: Partial<VasLookupDto>): VasLookupModel;
|
|
28
|
+
/**
|
|
29
|
+
* @returns VasLookupDto
|
|
30
|
+
*/
|
|
31
|
+
toDto(): VasLookupDto;
|
|
32
|
+
toApiDto(options?: any): Record<string, string | number | boolean>;
|
|
33
|
+
static toApiPatchDto(item: Partial<VasLookupDto>): Partial<VasLookupDto>;
|
|
34
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VasJobDataModel } from './vas-job-data.model';
|
|
2
2
|
import { VasReportDto } from './vas-report.dto';
|
|
3
|
+
import { VasTaskDto } from './vas-task.dto';
|
|
3
4
|
export declare class VasReportModel extends VasJobDataModel implements VasReportDto {
|
|
4
5
|
id: string;
|
|
5
6
|
created: string;
|
|
@@ -12,7 +13,7 @@ export declare class VasReportModel extends VasJobDataModel implements VasReport
|
|
|
12
13
|
modifiedByName: string;
|
|
13
14
|
account: string;
|
|
14
15
|
job: string;
|
|
15
|
-
|
|
16
|
+
reportLayout: string;
|
|
16
17
|
title: string;
|
|
17
18
|
sendEmail: string;
|
|
18
19
|
message: string;
|
|
@@ -21,8 +22,10 @@ export declare class VasReportModel extends VasJobDataModel implements VasReport
|
|
|
21
22
|
succeeded: string;
|
|
22
23
|
attempts: number;
|
|
23
24
|
notificationId: string;
|
|
24
|
-
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, job: string,
|
|
25
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, job: string, reportLayout: string, title: string, sendEmail: string, message: string, attempted: string, completed: string, succeeded: string, attempts: number, notificationId: string);
|
|
25
26
|
static empty(): VasReportModel;
|
|
26
27
|
static fromDto(dto: Partial<VasReportModel>): VasReportModel;
|
|
27
28
|
toDto(): VasReportDto;
|
|
29
|
+
toApiDto(options?: any): Record<string, any>;
|
|
30
|
+
static toApiPatchDto(item: Partial<VasTaskDto>): Partial<VasTaskDto>;
|
|
28
31
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { VasJobDataModel } from './vas-job-data.model';
|
|
2
|
+
import { VasTaskDto } from './vas-task.dto';
|
|
3
|
+
/**
|
|
4
|
+
* VasTaskModel
|
|
5
|
+
*/
|
|
6
|
+
export declare class VasTaskModel extends VasJobDataModel {
|
|
7
|
+
id: string;
|
|
8
|
+
created: string;
|
|
9
|
+
serverCreated: string;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
modified: string;
|
|
12
|
+
serverModified: string;
|
|
13
|
+
modifiedBy: string;
|
|
14
|
+
createdByName: string;
|
|
15
|
+
modifiedByName: string;
|
|
16
|
+
account: string;
|
|
17
|
+
job: string;
|
|
18
|
+
assignee: string;
|
|
19
|
+
done: boolean;
|
|
20
|
+
dueDate: string;
|
|
21
|
+
taskType: string;
|
|
22
|
+
title: string;
|
|
23
|
+
jobReference: string;
|
|
24
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, account: string, job: string, assignee: string, done: boolean, dueDate: string, taskType: string, title: string, jobReference: string);
|
|
25
|
+
/**
|
|
26
|
+
* @param dto VasTaskDto
|
|
27
|
+
* @return VasNoteModel
|
|
28
|
+
*/
|
|
29
|
+
static fromDto(dto: Partial<VasTaskDto>): VasTaskModel;
|
|
30
|
+
/**
|
|
31
|
+
* @returns VasTaskDto
|
|
32
|
+
*/
|
|
33
|
+
toDto(): VasTaskDto;
|
|
34
|
+
toApiDto(options?: any): Record<string, any>;
|
|
35
|
+
static toApiPatchDto(item: Partial<VasTaskDto>): Partial<VasTaskDto>;
|
|
36
|
+
}
|
|
@@ -15,7 +15,7 @@ export declare class VasUserModel extends VasBaseModel implements VasUserDto {
|
|
|
15
15
|
username: string;
|
|
16
16
|
memberships: Array<string>;
|
|
17
17
|
instructionProviders: Array<string>;
|
|
18
|
-
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, createdByName: string, modifiedByName: string, email: string, name: string, username: string, memberships: Array<string>, instructionProviders: Array<string>);
|
|
19
|
-
static fromDto(dto: VasUserDto): VasUserModel;
|
|
18
|
+
constructor(id: string, created: string | undefined, serverCreated: string | undefined, createdBy: string | undefined, modified: string | undefined, serverModified: string | undefined, modifiedBy: string | undefined, createdByName: string, modifiedByName: string, email: string, name: string, username: string, memberships: Array<string>, instructionProviders: Array<string>);
|
|
19
|
+
static fromDto(dto: Partial<VasUserDto>): VasUserModel;
|
|
20
20
|
toDto(): VasUserDto;
|
|
21
21
|
}
|
|
@@ -20,4 +20,5 @@ export declare class VasVehicleModel extends VasAccountObjectModel {
|
|
|
20
20
|
static fromDto(dto: Partial<VasVehicleDto>): VasVehicleModel;
|
|
21
21
|
toDto(): VasVehicleDto;
|
|
22
22
|
toApiDto(options?: any): Record<string, string | number | boolean>;
|
|
23
|
+
static toApiPatchDto(dto: Partial<VasVehicleDto>): Partial<VasVehicleDto>;
|
|
23
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isArrayString: (value: any) => value is string
|
|
1
|
+
export declare const isArrayString: (value: any) => value is Array<string>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return an object with only the properties specified by key(s)
|
|
3
|
+
*
|
|
4
|
+
* @param obj object to be processed
|
|
5
|
+
* @param omitKey key or array of keys to be kept
|
|
6
|
+
*/
|
|
7
|
+
export declare const only: <T extends Record<string, any>>(obj: T, omitKey: string | Array<string>) => Partial<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ironcode/vas-lib",
|
|
3
|
-
"version": "1.8.0-alpha.
|
|
3
|
+
"version": "1.8.0-alpha.14",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"angular2-uuid": "^1.1.1",
|
|
6
6
|
"moment": "^2.0.0"
|
|
@@ -8,11 +8,7 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|
|
10
10
|
},
|
|
11
|
-
"module": "
|
|
12
|
-
"es2020": "fesm2020/ironcode-vas-lib.mjs",
|
|
13
|
-
"esm2020": "esm2020/ironcode-vas-lib.mjs",
|
|
14
|
-
"fesm2020": "fesm2020/ironcode-vas-lib.mjs",
|
|
15
|
-
"fesm2015": "fesm2015/ironcode-vas-lib.mjs",
|
|
11
|
+
"module": "fesm2022/ironcode-vas-lib.mjs",
|
|
16
12
|
"typings": "index.d.ts",
|
|
17
13
|
"exports": {
|
|
18
14
|
"./package.json": {
|
|
@@ -20,11 +16,8 @@
|
|
|
20
16
|
},
|
|
21
17
|
".": {
|
|
22
18
|
"types": "./index.d.ts",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"es2015": "./fesm2015/ironcode-vas-lib.mjs",
|
|
26
|
-
"node": "./cjs/public-api.js",
|
|
27
|
-
"default": "./fesm2020/ironcode-vas-lib.mjs"
|
|
19
|
+
"default": "./fesm2022/ironcode-vas-lib.mjs",
|
|
20
|
+
"node": "./cjs/public-api.js"
|
|
28
21
|
}
|
|
29
22
|
},
|
|
30
23
|
"sideEffects": false
|
package/public-api.d.ts
CHANGED
package/cjs/package.json
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vas-lib-projects",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"scripts": {
|
|
5
|
-
"ng": "ng",
|
|
6
|
-
"start": "ng serve",
|
|
7
|
-
"clean:vas-lib": "rm -fr dist/vas-lib/*",
|
|
8
|
-
"build:vas-lib": "ng build --project vas-lib && tsc -p ./projects/vas-lib/tsconfig.cjs.json && bin/cjs-patch vas-lib",
|
|
9
|
-
"clean:vas-lib-ng": "rm -fr dist/vas-lib-ng/*",
|
|
10
|
-
"build:vas-lib-ng": "ng build --project vas-lib-ng",
|
|
11
|
-
"clean:vas-api": "rm -rf dist/vas-api/*",
|
|
12
|
-
"build:vas-api": "ng build --project vas-api && tsc -p ./projects/vas-api/tsconfig.cjs.json && bin/cjs-patch vas-api",
|
|
13
|
-
"build:vas-lib-pdf": "cd projects/vas-lib-pdf && npm run build",
|
|
14
|
-
"build": "npm run build:vas-lib && npm run build:vas-lib-ng && npm run build:vas-api && npm run build:vas-lib-pdf",
|
|
15
|
-
"watch": "ng build --watch",
|
|
16
|
-
"test": "ng test",
|
|
17
|
-
"publish:vas-lib": "cd ./dist/vas-lib; npm publish",
|
|
18
|
-
"publish:vas-lib-ng": "cd ./dist/vas-lib-ng; npm publish",
|
|
19
|
-
"publish:vas-api": "cd ./dist/vas-api; npm publish",
|
|
20
|
-
"publish:vas-lib-pdf": "cd projects/vas-lib-pdf; npm run publish:lib",
|
|
21
|
-
"link:vas-lib": "cd dist/vas-lib; npm link",
|
|
22
|
-
"link:vas-lib-ng": "cd dist/vas-lib-ng; npm link @ironcode/vas-lib; npm link",
|
|
23
|
-
"link:vas-api": "cd dist/vas-api; npm link @ironcode/vas-lib; npm link",
|
|
24
|
-
"link:vas-lib-pdf": "cd dist/vas-lib-pdf; npm link",
|
|
25
|
-
"link": "npm run link:vas-lib; npm run link:vas-lib-ng; npm run link:vas-api"
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@angular/animations": "~14",
|
|
29
|
-
"@angular/common": "^14.3.0",
|
|
30
|
-
"@angular/compiler": "~14",
|
|
31
|
-
"@angular/core": "~14",
|
|
32
|
-
"@angular/forms": "~14",
|
|
33
|
-
"@angular/platform-browser": "~14",
|
|
34
|
-
"@angular/platform-browser-dynamic": "~14",
|
|
35
|
-
"@angular/router": "~14",
|
|
36
|
-
"@pdf-lib/fontkit": "^1.1.1",
|
|
37
|
-
"angular2-uuid": "^1.1.1",
|
|
38
|
-
"moment": "^2.29.3",
|
|
39
|
-
"pdf-lib": "^1.17.1",
|
|
40
|
-
"rxjs": "~7.5.0",
|
|
41
|
-
"zone.js": "~0.11.4"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@angular-devkit/build-angular": "~14",
|
|
45
|
-
"@angular/cli": "~14",
|
|
46
|
-
"@angular/compiler-cli": "~14",
|
|
47
|
-
"@types/jasmine": "~3.10.0",
|
|
48
|
-
"@types/jest": "^29.5.12",
|
|
49
|
-
"@types/mocha": "^10.0.6",
|
|
50
|
-
"@types/node": "^12.20.55",
|
|
51
|
-
"@types/nodemailer": "^6.4.6",
|
|
52
|
-
"copyfiles": "^2.4.1",
|
|
53
|
-
"jasmine": "^5.1.0",
|
|
54
|
-
"jasmine-core": "~4.0.0",
|
|
55
|
-
"karma": "~6.3.0",
|
|
56
|
-
"karma-chrome-launcher": "~3.1.0",
|
|
57
|
-
"karma-coverage": "~2.1.0",
|
|
58
|
-
"karma-jasmine": "~4.0.0",
|
|
59
|
-
"karma-jasmine-html-reporter": "~1.7.0",
|
|
60
|
-
"ng-packagr": "~14",
|
|
61
|
-
"ts-node": "^10.9.2",
|
|
62
|
-
"tslib": "^2.6.2",
|
|
63
|
-
"typescript": "~4.6.2"
|
|
64
|
-
},
|
|
65
|
-
"type": "commonjs"
|
|
66
|
-
}
|