avvir 0.3.20 → 0.3.22
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/dist/avvir_api.node.js +7 -8
- package/dist/esm/models/api/api_cloud_file.d.ts +6 -3
- package/dist/esm/models/api/api_cloud_file.js +7 -8
- package/dist/esm/models/api/api_cloud_file.js.map +1 -1
- package/dist/esm/models/api/api_cloud_file_location_3d.d.ts +3 -0
- package/dist/esm/models/api/api_cloud_file_location_3d.js.map +1 -1
- package/package.json +1 -1
- package/source/models/api/api_cloud_file.ts +12 -10
- package/source/models/api/api_cloud_file_location_3d.ts +3 -0
package/dist/avvir_api.node.js
CHANGED
|
@@ -2374,13 +2374,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2374
2374
|
|
|
2375
2375
|
var ApiCloudFile = /** @class */ (function () {
|
|
2376
2376
|
function ApiCloudFile(_a) {
|
|
2377
|
-
var url = _a.url, id = _a.id, lastModified = _a.lastModified, createdAt = _a.createdAt, purposeType = _a.purposeType, fileType = _a.fileType;
|
|
2377
|
+
var url = _a.url, id = _a.id, lastModified = _a.lastModified, createdAt = _a.createdAt, purposeType = _a.purposeType, fileType = _a.fileType, createdBy = _a.createdBy, fileSize = _a.fileSize, location3d = _a.location3d, originalFileName = _a.originalFileName;
|
|
2378
2378
|
this.lastModified = null;
|
|
2379
2379
|
this.createdAt = null;
|
|
2380
2380
|
this.purposeType = _api_purpose_type__WEBPACK_IMPORTED_MODULE_1__.ApiProjectPurposeType.OTHER;
|
|
2381
|
-
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addInstantGetterAndSetterToApiModel)(this, "lastModified");
|
|
2382
|
-
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addInstantGetterAndSetterToApiModel)(this, "createdAt");
|
|
2383
|
-
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addReadOnlyPropertiesToModel)(this, { url: url, id: id, fileType: fileType });
|
|
2381
|
+
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addInstantGetterAndSetterToApiModel)(this, "lastModified", lastModified);
|
|
2382
|
+
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addInstantGetterAndSetterToApiModel)(this, "createdAt", createdAt);
|
|
2383
|
+
(0,_mixins__WEBPACK_IMPORTED_MODULE_0__.addReadOnlyPropertiesToModel)(this, { url: url, id: id, fileType: fileType, createdBy: createdBy });
|
|
2384
2384
|
var purposeTypeVal = _api_purpose_type__WEBPACK_IMPORTED_MODULE_1__.ApiProjectPurposeType.OTHER;
|
|
2385
2385
|
Object.defineProperties(this, {
|
|
2386
2386
|
purposeType: {
|
|
@@ -2401,11 +2401,10 @@ var ApiCloudFile = /** @class */ (function () {
|
|
|
2401
2401
|
}
|
|
2402
2402
|
});
|
|
2403
2403
|
// @ts-ignore
|
|
2404
|
-
this.lastModified = lastModified || null;
|
|
2405
|
-
// @ts-ignore
|
|
2406
|
-
this.createdAt = createdAt || null;
|
|
2407
|
-
// @ts-ignore
|
|
2408
2404
|
this.purposeType = purposeType;
|
|
2405
|
+
this.location3d = location3d;
|
|
2406
|
+
this.fileSize = fileSize;
|
|
2407
|
+
this.originalFileName = originalFileName;
|
|
2409
2408
|
}
|
|
2410
2409
|
return ApiCloudFile;
|
|
2411
2410
|
}());
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DateLike, Modify } from "./type_aliases";
|
|
2
2
|
import { ApiPurposeType } from "./api_purpose_type";
|
|
3
3
|
import { PurposeType } from "../enums";
|
|
4
|
-
import
|
|
4
|
+
import ApiPhotoLocation3d from "./api_photo_location_3d";
|
|
5
5
|
export declare type AvvirApiFiles<Type extends ApiPurposeType = ApiPurposeType> = {
|
|
6
6
|
[purposeType in Type]?: ApiCloudFile | ApiCloudFile[];
|
|
7
7
|
};
|
|
@@ -16,12 +16,15 @@ export interface ApiCloudFileArgument extends Partial<Modify<ApiCloudFile, {
|
|
|
16
16
|
}>> {
|
|
17
17
|
}
|
|
18
18
|
export declare class ApiCloudFile {
|
|
19
|
-
constructor({ url, id, lastModified, createdAt, purposeType, fileType }: ApiCloudFileArgument);
|
|
19
|
+
constructor({ url, id, lastModified, createdAt, purposeType, fileType, createdBy, fileSize, location3d, originalFileName }: ApiCloudFileArgument);
|
|
20
20
|
readonly url: string;
|
|
21
|
-
location3d?:
|
|
21
|
+
location3d?: ApiPhotoLocation3d;
|
|
22
22
|
readonly id?: number;
|
|
23
23
|
lastModified?: number | null;
|
|
24
24
|
createdAt?: number | null;
|
|
25
25
|
purposeType: ApiPurposeType;
|
|
26
|
+
readonly createdBy?: string;
|
|
27
|
+
fileSize?: number;
|
|
28
|
+
originalFileName?: string;
|
|
26
29
|
}
|
|
27
30
|
export default ApiCloudFile;
|
|
@@ -3,13 +3,13 @@ import { ApiProjectPurposeType, isApiPurposeType } from "./api_purpose_type";
|
|
|
3
3
|
import { PurposeTypeConverter } from "../../converters";
|
|
4
4
|
import { isPurposeType } from "../enums";
|
|
5
5
|
export class ApiCloudFile {
|
|
6
|
-
constructor({ url, id, lastModified, createdAt, purposeType, fileType }) {
|
|
6
|
+
constructor({ url, id, lastModified, createdAt, purposeType, fileType, createdBy, fileSize, location3d, originalFileName }) {
|
|
7
7
|
this.lastModified = null;
|
|
8
8
|
this.createdAt = null;
|
|
9
9
|
this.purposeType = ApiProjectPurposeType.OTHER;
|
|
10
|
-
addInstantGetterAndSetterToApiModel(this, "lastModified");
|
|
11
|
-
addInstantGetterAndSetterToApiModel(this, "createdAt");
|
|
12
|
-
addReadOnlyPropertiesToModel(this, { url, id, fileType });
|
|
10
|
+
addInstantGetterAndSetterToApiModel(this, "lastModified", lastModified);
|
|
11
|
+
addInstantGetterAndSetterToApiModel(this, "createdAt", createdAt);
|
|
12
|
+
addReadOnlyPropertiesToModel(this, { url, id, fileType, createdBy });
|
|
13
13
|
let purposeTypeVal = ApiProjectPurposeType.OTHER;
|
|
14
14
|
Object.defineProperties(this, {
|
|
15
15
|
purposeType: {
|
|
@@ -30,11 +30,10 @@ export class ApiCloudFile {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
// @ts-ignore
|
|
33
|
-
this.lastModified = lastModified || null;
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
this.createdAt = createdAt || null;
|
|
36
|
-
// @ts-ignore
|
|
37
33
|
this.purposeType = purposeType;
|
|
34
|
+
this.location3d = location3d;
|
|
35
|
+
this.fileSize = fileSize;
|
|
36
|
+
this.originalFileName = originalFileName;
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
export default ApiCloudFile;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_cloud_file.js","sourceRoot":"","sources":["../../../../source/models/api/api_cloud_file.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,mCAAmC,EAAE,4BAA4B,EAAC,MAAM,cAAc,CAAA;AAC9F,OAAO,EAAC,qBAAqB,EAAkB,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAC,aAAa,EAAc,MAAM,UAAU,CAAC;AAcpD,MAAM,OAAO,YAAY;IACvB,YAAY,EAAC,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAuB;
|
|
1
|
+
{"version":3,"file":"api_cloud_file.js","sourceRoot":"","sources":["../../../../source/models/api/api_cloud_file.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,mCAAmC,EAAE,4BAA4B,EAAC,MAAM,cAAc,CAAA;AAC9F,OAAO,EAAC,qBAAqB,EAAkB,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAC,aAAa,EAAc,MAAM,UAAU,CAAC;AAcpD,MAAM,OAAO,YAAY;IACvB,YAAY,EAAC,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,EAA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2
|
import { ApiQuaternion } from "./api_quaternion";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated See ApiPhotoLocation3d (./api_photo_location_3d.ts)
|
|
5
|
+
*/
|
|
3
6
|
export declare type ApiCloudFileLocationId = {
|
|
4
7
|
id: number;
|
|
5
8
|
position: Vector3Like;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_cloud_file_location_3d.js","sourceRoot":"","sources":["../../../../source/models/api/api_cloud_file_location_3d.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"api_cloud_file_location_3d.js","sourceRoot":"","sources":["../../../../source/models/api/api_cloud_file_location_3d.ts"],"names":[],"mappings":"AACA,OAAO,4BAA4B,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAiB/C,MAAM,OAAO,sBAAsB;IAIjC,YAAY,EACN,EAAE,EACF,QAAQ,EACR,WAAW,EACqB;QACpC,4BAA4B,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACvD,CAAC;CACF;AAED,eAAe,sBAAsB,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import {addInstantGetterAndSetterToApiModel, addReadOnlyPropertiesToModel} from
|
|
|
3
3
|
import {ApiProjectPurposeType, ApiPurposeType, isApiPurposeType} from "./api_purpose_type";
|
|
4
4
|
import {PurposeTypeConverter} from "../../converters";
|
|
5
5
|
import {isPurposeType, PurposeType} from "../enums";
|
|
6
|
-
import
|
|
6
|
+
import ApiPhotoLocation3d from "./api_photo_location_3d";
|
|
7
7
|
|
|
8
8
|
export type AvvirApiFiles<Type extends ApiPurposeType = ApiPurposeType> = { [purposeType in Type]?: ApiCloudFile | ApiCloudFile[] }
|
|
9
9
|
export type AvvirApiFileIds<Type extends ApiPurposeType = ApiPurposeType> = { [purposeType in Type]?: number[] }
|
|
@@ -17,10 +17,10 @@ export interface ApiCloudFileArgument extends Partial<Modify<ApiCloudFile, {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export class ApiCloudFile {
|
|
20
|
-
constructor({url, id, lastModified, createdAt, purposeType, fileType}: ApiCloudFileArgument) {
|
|
21
|
-
addInstantGetterAndSetterToApiModel(this, "lastModified");
|
|
22
|
-
addInstantGetterAndSetterToApiModel(this, "createdAt");
|
|
23
|
-
addReadOnlyPropertiesToModel(this, {url, id, fileType});
|
|
20
|
+
constructor({url, id, lastModified, createdAt, purposeType, fileType, createdBy, fileSize, location3d, originalFileName}: ApiCloudFileArgument) {
|
|
21
|
+
addInstantGetterAndSetterToApiModel(this, "lastModified", lastModified);
|
|
22
|
+
addInstantGetterAndSetterToApiModel(this, "createdAt", createdAt);
|
|
23
|
+
addReadOnlyPropertiesToModel(this, {url, id, fileType, createdBy});
|
|
24
24
|
let purposeTypeVal: ApiPurposeType = ApiProjectPurposeType.OTHER;
|
|
25
25
|
Object.defineProperties(this, {
|
|
26
26
|
purposeType: {
|
|
@@ -40,19 +40,21 @@ export class ApiCloudFile {
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
// @ts-ignore
|
|
43
|
-
this.lastModified = lastModified || null;
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
this.createdAt = createdAt || null;
|
|
46
|
-
// @ts-ignore
|
|
47
43
|
this.purposeType = purposeType;
|
|
44
|
+
this.location3d = location3d;
|
|
45
|
+
this.fileSize = fileSize;
|
|
46
|
+
this.originalFileName = originalFileName;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
readonly url: string;
|
|
51
|
-
location3d?:
|
|
50
|
+
location3d?: ApiPhotoLocation3d
|
|
52
51
|
readonly id?: number
|
|
53
52
|
lastModified?: number | null = null;
|
|
54
53
|
createdAt?: number | null = null;
|
|
55
54
|
purposeType: ApiPurposeType = ApiProjectPurposeType.OTHER;
|
|
55
|
+
readonly createdBy?: string;
|
|
56
|
+
fileSize?: number;
|
|
57
|
+
originalFileName?: string;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
export default ApiCloudFile;
|
|
@@ -2,6 +2,9 @@ import {Vector3Like, Vector4Like} from "./type_aliases";
|
|
|
2
2
|
import addReadOnlyPropertiesToModel from "../../mixins/add_read_only_properties_to_model";
|
|
3
3
|
import {ApiQuaternion} from "./api_quaternion";
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated See ApiPhotoLocation3d (./api_photo_location_3d.ts)
|
|
7
|
+
*/
|
|
5
8
|
export type ApiCloudFileLocationId = {
|
|
6
9
|
id: number,
|
|
7
10
|
position: Vector3Like,
|