avvir 0.3.20 → 0.3.21

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.
@@ -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, sizeInBytes = _a.sizeInBytes, location3d = _a.location3d;
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,9 @@ 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.sizeInBytes = sizeInBytes;
2409
2407
  }
2410
2408
  return ApiCloudFile;
2411
2409
  }());
@@ -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 ApiCloudFileLocation3d from "./api_cloud_file_location_3d";
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,14 @@ 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, sizeInBytes, location3d }: ApiCloudFileArgument);
20
20
  readonly url: string;
21
- location3d?: ApiCloudFileLocation3d;
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
+ sizeInBytes?: number;
26
28
  }
27
29
  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, sizeInBytes, location3d }) {
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,9 @@ 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.sizeInBytes = sizeInBytes;
38
36
  }
39
37
  }
40
38
  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;QAiC3F,iBAAY,GAAmB,IAAI,CAAC;QACpC,cAAS,GAAmB,IAAI,CAAC;QACjC,gBAAW,GAAmB,qBAAqB,CAAC,KAAK,CAAC;QAlCxD,mCAAmC,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAC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@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;AAc/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"}
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "avvir",
3
3
  "repository": "git@github.com:Avvir/avvir-javascript-client.git",
4
- "version": "0.3.20",
4
+ "version": "0.3.21",
5
5
  "description": "Javascript client for Avvir APIs",
6
6
  "license": "Apache-2.0",
7
7
  "module": "dist/esm/index.js",
@@ -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 ApiCloudFileLocation3d from "./api_cloud_file_location_3d";
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, sizeInBytes, location3d}: 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,19 @@ 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.sizeInBytes = sizeInBytes;
48
46
  }
49
47
 
50
48
  readonly url: string;
51
- location3d?: ApiCloudFileLocation3d
49
+ location3d?: ApiPhotoLocation3d
52
50
  readonly id?: number
53
51
  lastModified?: number | null = null;
54
52
  createdAt?: number | null = null;
55
53
  purposeType: ApiPurposeType = ApiProjectPurposeType.OTHER;
54
+ readonly createdBy?: string;
55
+ sizeInBytes?: number;
56
56
  }
57
57
 
58
58
  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,