@ironcode/vas-lib 0.0.39 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/lib/entity/vas-file.dto.d.ts +2 -1
- package/cjs/lib/entity/vas-file.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-file.dto.js.map +1 -1
- package/cjs/lib/entity/vas-file.model.d.ts +3 -3
- package/cjs/lib/entity/vas-file.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-file.model.js +2 -2
- package/cjs/lib/entity/vas-file.model.js.map +1 -1
- package/cjs/lib/entity/vas-form.dto.d.ts +1 -0
- package/cjs/lib/entity/vas-form.dto.d.ts.map +1 -1
- package/cjs/lib/entity/vas-form.dto.js.map +1 -1
- package/cjs/lib/entity/vas-form.model.d.ts +2 -21
- package/cjs/lib/entity/vas-form.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-form.model.js +5 -23
- package/cjs/lib/entity/vas-form.model.js.map +1 -1
- package/cjs/lib/entity/vas-job.model.d.ts +11 -1
- package/cjs/lib/entity/vas-job.model.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.model.js +48 -1
- package/cjs/lib/entity/vas-job.model.js.map +1 -1
- package/cjs/lib/entity/vas-job.model.spec-data.d.ts.map +1 -1
- package/cjs/lib/entity/vas-job.model.spec-data.js +1 -0
- package/cjs/lib/entity/vas-job.model.spec-data.js.map +1 -1
- package/cjs/lib/utils/is-array-string.d.ts +2 -0
- package/cjs/lib/utils/is-array-string.d.ts.map +1 -0
- package/cjs/lib/utils/is-array-string.js +8 -0
- package/cjs/lib/utils/is-array-string.js.map +1 -0
- package/esm2020/lib/entity/vas-file.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-file.model.mjs +3 -3
- package/esm2020/lib/entity/vas-form.dto.mjs +1 -1
- package/esm2020/lib/entity/vas-form.model.mjs +6 -24
- package/esm2020/lib/entity/vas-job.model.mjs +49 -2
- package/esm2020/lib/utils/is-array-string.mjs +4 -0
- package/fesm2015/ironcode-vas-lib.mjs +56 -26
- package/fesm2015/ironcode-vas-lib.mjs.map +1 -1
- package/fesm2020/ironcode-vas-lib.mjs +56 -26
- package/fesm2020/ironcode-vas-lib.mjs.map +1 -1
- package/lib/entity/vas-file.dto.d.ts +2 -1
- package/lib/entity/vas-file.model.d.ts +3 -3
- package/lib/entity/vas-form.dto.d.ts +1 -0
- package/lib/entity/vas-form.model.d.ts +2 -21
- package/lib/entity/vas-job.model.d.ts +11 -1
- package/lib/utils/is-array-string.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export interface VasFileDtoConfigDto {
|
|
|
7
7
|
displayedName?: string;
|
|
8
8
|
rotation?: number;
|
|
9
9
|
}
|
|
10
|
+
export declare type VasFileStatus = 'NEW' | 'COMPLETE' | 'AUTH_ERROR' | 'UPLOAD_ERROR' | 'UPDATE_FIREBASE_ERROR';
|
|
10
11
|
export interface VasFileDto extends VasJobDataDto {
|
|
11
12
|
name: string;
|
|
12
13
|
fileSize: number;
|
|
@@ -16,7 +17,7 @@ export interface VasFileDto extends VasJobDataDto {
|
|
|
16
17
|
url: string;
|
|
17
18
|
uri: string;
|
|
18
19
|
message: string;
|
|
19
|
-
status:
|
|
20
|
+
status: VasFileStatus;
|
|
20
21
|
controlPath: string;
|
|
21
22
|
}
|
|
22
23
|
export declare function isFileDto(object: any): object is VasFileDto;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VasFileDto, VasFileDtoConfigDto } from './vas-file.dto';
|
|
1
|
+
import { VasFileDto, VasFileDtoConfigDto, VasFileStatus } from './vas-file.dto';
|
|
2
2
|
import { VasJobDataModel } from './vas-job-data.model';
|
|
3
3
|
export interface VasFileModelToApiDtoOptions {
|
|
4
4
|
contentUploaded: boolean;
|
|
@@ -24,9 +24,9 @@ export declare class VasFileModel extends VasJobDataModel {
|
|
|
24
24
|
url: string;
|
|
25
25
|
controlPath: string;
|
|
26
26
|
message: string;
|
|
27
|
-
status:
|
|
27
|
+
status: VasFileStatus;
|
|
28
28
|
uri: string;
|
|
29
|
-
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, account: string, job: string, name: string, fileSize: number, mimeType: string, sequence: number, config: VasFileDtoConfigDto, url: string, controlPath: string, message: string, status:
|
|
29
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, account: string, job: string, name: string, fileSize: number, mimeType: string, sequence: number, config: VasFileDtoConfigDto, url: string, controlPath: string, message: string, status: VasFileStatus, uri: string);
|
|
30
30
|
static empty(): VasFileModel;
|
|
31
31
|
static fromDto(fileDto: Partial<VasFileDto>): VasFileModel;
|
|
32
32
|
static parseConfig(config?: string): VasFileDtoConfigDto;
|
|
@@ -27,27 +27,8 @@ export declare class VasFormModel extends VasRestrictedAccountObjectModel {
|
|
|
27
27
|
pipelineName: string;
|
|
28
28
|
config: string;
|
|
29
29
|
geoLocationEnabled: boolean;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* @param {string} created
|
|
33
|
-
* @param {string} serverCreated
|
|
34
|
-
* @param {string} createdBy
|
|
35
|
-
* @param {string} modified
|
|
36
|
-
* @param {string} serverModified
|
|
37
|
-
* @param {string} modifiedBy
|
|
38
|
-
* @param {string} account
|
|
39
|
-
* @param {string} accessGroup
|
|
40
|
-
* @param {string} jobType
|
|
41
|
-
* @param {string} title
|
|
42
|
-
* @param {string} description
|
|
43
|
-
* @param {VasGroupModel[]} groups
|
|
44
|
-
* @param {string} dynamicDescriptor
|
|
45
|
-
* @param {string} indexName
|
|
46
|
-
* @param {string} pipelineName
|
|
47
|
-
* @param {string} config
|
|
48
|
-
* @param {boolean} geoLocationEnabled
|
|
49
|
-
*/
|
|
50
|
-
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, account: string, accessGroup: string, jobType: string, title: string, description: string, groups: VasGroupModel[], dynamicDescriptor: string, indexName: string, pipelineName: string, config: string, geoLocationEnabled: boolean);
|
|
30
|
+
filesEnabled: boolean;
|
|
31
|
+
constructor(id: string, created: string, serverCreated: string, createdBy: string, modified: string, serverModified: string, modifiedBy: string, account: string, accessGroup: string, jobType: string, title: string, description: string, groups: VasGroupModel[], dynamicDescriptor: string, indexName: string, pipelineName: string, config: string, geoLocationEnabled: boolean, filesEnabled: boolean);
|
|
51
32
|
/**
|
|
52
33
|
* Returns the name of this form in a "safe" way, i.e. no spaces, special
|
|
53
34
|
* characters
|
|
@@ -105,6 +105,17 @@ export declare class VasJobModel extends VasRestrictedAccountObjectModel {
|
|
|
105
105
|
* @return {Record<string, VasFieldDtoValue>}
|
|
106
106
|
*/
|
|
107
107
|
getFields2(): Record<string, VasFieldDtoValue>;
|
|
108
|
+
/**
|
|
109
|
+
* Returns an object describing how many attachments were added to this job
|
|
110
|
+
* (camera controls and files), and how many have not been uploaded yet.
|
|
111
|
+
*
|
|
112
|
+
* @param formModel instance of {@link VasFormModel} that was used when the
|
|
113
|
+
* job was created
|
|
114
|
+
*/
|
|
115
|
+
getFilesUploadStatus(formModel: VasFormModel): {
|
|
116
|
+
pending: number;
|
|
117
|
+
total: number;
|
|
118
|
+
};
|
|
108
119
|
/**
|
|
109
120
|
* This method will hydrate the `fields` property of the model. The reason for
|
|
110
121
|
* this is that we have different ways to store the field data. One way, is
|
|
@@ -187,7 +198,6 @@ export declare class VasJobModel extends VasRestrictedAccountObjectModel {
|
|
|
187
198
|
*/
|
|
188
199
|
hydrateFields(formModel: VasFormModel, controlFieldIdMap?: Map<string, string>, controlNames?: Array<string>): void;
|
|
189
200
|
/**
|
|
190
|
-
|
|
191
201
|
* @param {string[]} path path segments
|
|
192
202
|
* @return {void}
|
|
193
203
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isArrayString: (value: any) => value is string[];
|