@spaciv/sdk 0.1.18 → 0.1.20

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.
Files changed (73) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/dist/apis/FilesApi.d.ts +132 -18
  4. package/dist/apis/FilesApi.js +175 -8
  5. package/dist/apis/FloorPlansApi.d.ts +4 -4
  6. package/dist/apis/FloorPlansApi.js +2 -2
  7. package/dist/apis/ObjectGroupsApi.d.ts +8 -8
  8. package/dist/apis/ObjectGroupsApi.js +4 -4
  9. package/dist/apis/PropertiesApi.d.ts +8 -8
  10. package/dist/apis/PropertiesApi.js +4 -4
  11. package/dist/apis/ScenariosApi.d.ts +4 -4
  12. package/dist/apis/ScenariosApi.js +2 -2
  13. package/dist/apis/SpaceRulesetsApi.d.ts +4 -4
  14. package/dist/apis/SpaceRulesetsApi.js +2 -2
  15. package/dist/esm/apis/FilesApi.d.ts +132 -18
  16. package/dist/esm/apis/FilesApi.js +176 -9
  17. package/dist/esm/apis/FloorPlansApi.d.ts +4 -4
  18. package/dist/esm/apis/FloorPlansApi.js +2 -2
  19. package/dist/esm/apis/ObjectGroupsApi.d.ts +8 -8
  20. package/dist/esm/apis/ObjectGroupsApi.js +4 -4
  21. package/dist/esm/apis/PropertiesApi.d.ts +8 -8
  22. package/dist/esm/apis/PropertiesApi.js +4 -4
  23. package/dist/esm/apis/ScenariosApi.d.ts +4 -4
  24. package/dist/esm/apis/ScenariosApi.js +2 -2
  25. package/dist/esm/apis/SpaceRulesetsApi.d.ts +4 -4
  26. package/dist/esm/apis/SpaceRulesetsApi.js +2 -2
  27. package/dist/esm/models/AccountDirectoryPatchBody.d.ts +38 -0
  28. package/dist/esm/models/AccountDirectoryPatchBody.js +43 -0
  29. package/dist/esm/models/AccountDirectoryPostBody.d.ts +38 -0
  30. package/dist/esm/models/AccountDirectoryPostBody.js +45 -0
  31. package/dist/esm/models/AccountFilePatchBody.d.ts +8 -2
  32. package/dist/esm/models/AccountFilePatchBody.js +3 -3
  33. package/dist/esm/models/Directory.d.ts +56 -0
  34. package/dist/esm/models/Directory.js +57 -0
  35. package/dist/esm/models/DirectoryPage.d.ts +39 -0
  36. package/dist/esm/models/DirectoryPage.js +46 -0
  37. package/dist/esm/models/ListPage.d.ts +7 -0
  38. package/dist/esm/models/ListPage.js +3 -0
  39. package/dist/esm/models/ModelRecord.d.ts +7 -1
  40. package/dist/esm/models/ModelRecord.js +2 -0
  41. package/dist/esm/models/index.d.ts +4 -0
  42. package/dist/esm/models/index.js +4 -0
  43. package/dist/models/AccountDirectoryPatchBody.d.ts +38 -0
  44. package/dist/models/AccountDirectoryPatchBody.js +50 -0
  45. package/dist/models/AccountDirectoryPostBody.d.ts +38 -0
  46. package/dist/models/AccountDirectoryPostBody.js +52 -0
  47. package/dist/models/AccountFilePatchBody.d.ts +8 -2
  48. package/dist/models/AccountFilePatchBody.js +3 -3
  49. package/dist/models/Directory.d.ts +56 -0
  50. package/dist/models/Directory.js +64 -0
  51. package/dist/models/DirectoryPage.d.ts +39 -0
  52. package/dist/models/DirectoryPage.js +53 -0
  53. package/dist/models/ListPage.d.ts +7 -0
  54. package/dist/models/ListPage.js +3 -0
  55. package/dist/models/ModelRecord.d.ts +7 -1
  56. package/dist/models/ModelRecord.js +2 -0
  57. package/dist/models/index.d.ts +4 -0
  58. package/dist/models/index.js +4 -0
  59. package/package.json +1 -1
  60. package/src/apis/FilesApi.ts +319 -17
  61. package/src/apis/FloorPlansApi.ts +4 -4
  62. package/src/apis/ObjectGroupsApi.ts +8 -8
  63. package/src/apis/PropertiesApi.ts +8 -8
  64. package/src/apis/ScenariosApi.ts +4 -4
  65. package/src/apis/SpaceRulesetsApi.ts +4 -4
  66. package/src/models/AccountDirectoryPatchBody.ts +73 -0
  67. package/src/models/AccountDirectoryPostBody.ts +74 -0
  68. package/src/models/AccountFilePatchBody.ts +11 -4
  69. package/src/models/Directory.ts +101 -0
  70. package/src/models/DirectoryPage.ts +82 -0
  71. package/src/models/ListPage.ts +15 -0
  72. package/src/models/ModelRecord.ts +9 -1
  73. package/src/models/index.ts +4 -0
@@ -20,6 +20,13 @@ import {
20
20
  ModelRecordToJSON,
21
21
  ModelRecordToJSONTyped,
22
22
  } from './ModelRecord';
23
+ import type { Directory } from './Directory';
24
+ import {
25
+ DirectoryFromJSON,
26
+ DirectoryFromJSONTyped,
27
+ DirectoryToJSON,
28
+ DirectoryToJSONTyped,
29
+ } from './Directory';
23
30
 
24
31
  /**
25
32
  *
@@ -27,6 +34,12 @@ import {
27
34
  * @interface ListPage
28
35
  */
29
36
  export interface ListPage {
37
+ /**
38
+ * Directories directly inside the listed directory. Returned only when a parent is given, and only on the pages that hold some.
39
+ * @type {Array<Directory>}
40
+ * @memberof ListPage
41
+ */
42
+ directories?: Array<Directory>;
30
43
  /**
31
44
  *
32
45
  * @type {Array<ModelRecord>}
@@ -59,6 +72,7 @@ export function ListPageFromJSONTyped(json: any, ignoreDiscriminator: boolean):
59
72
  }
60
73
  return {
61
74
 
75
+ 'directories': json['directories'] == null ? undefined : ((json['directories'] as Array<any>).map(DirectoryFromJSON)),
62
76
  'files': ((json['files'] as Array<any>).map(ModelRecordFromJSON)),
63
77
  'nextCursor': json['nextCursor'] == null ? undefined : json['nextCursor'],
64
78
  };
@@ -75,6 +89,7 @@ export function ListPageToJSONTyped(value?: ListPage | null, ignoreDiscriminator
75
89
 
76
90
  return {
77
91
 
92
+ 'directories': value['directories'] == null ? undefined : ((value['directories'] as Array<any>).map(DirectoryToJSON)),
78
93
  'files': ((value['files'] as Array<any>).map(ModelRecordToJSON)),
79
94
  'nextCursor': value['nextCursor'],
80
95
  };
@@ -38,11 +38,17 @@ export interface ModelRecord {
38
38
  */
39
39
  mimeType: string;
40
40
  /**
41
- * Display name of the file, taken from the uploaded file name and changeable afterwards.
41
+ * Display name of the file, taken from the uploaded file name and changeable afterwards. Nothing else in the same directory has the same name, compared exactly and after normalising to Unicode NFC.
42
42
  * @type {string}
43
43
  * @memberof ModelRecord
44
44
  */
45
45
  name: string;
46
+ /**
47
+ * Identifier of the directory the file is in. Absent for a file at the root.
48
+ * @type {string}
49
+ * @memberof ModelRecord
50
+ */
51
+ parentId?: string;
46
52
  /**
47
53
  * Name of the virus signature the file matched when it was quarantined.
48
54
  * @type {string}
@@ -96,6 +102,7 @@ export function ModelRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean
96
102
  'id': json['id'],
97
103
  'mimeType': json['mimeType'],
98
104
  'name': json['name'],
105
+ 'parentId': json['parentId'] == null ? undefined : json['parentId'],
99
106
  'quarantineSignature': json['quarantineSignature'] == null ? undefined : json['quarantineSignature'],
100
107
  'quarantinedAt': json['quarantinedAt'] == null ? undefined : (new Date(json['quarantinedAt'])),
101
108
  'size': json['size'],
@@ -118,6 +125,7 @@ export function ModelRecordToJSONTyped(value?: ModelRecord | null, ignoreDiscrim
118
125
  'id': value['id'],
119
126
  'mimeType': value['mimeType'],
120
127
  'name': value['name'],
128
+ 'parentId': value['parentId'],
121
129
  'quarantineSignature': value['quarantineSignature'],
122
130
  'quarantinedAt': value['quarantinedAt'] == null ? undefined : ((value['quarantinedAt']).toISOString()),
123
131
  'size': value['size'],
@@ -6,6 +6,8 @@ export * from './AccountAuthOption';
6
6
  export * from './AccountCalculationUsageBody';
7
7
  export * from './AccountCalculationUsageDay';
8
8
  export * from './AccountDetailsResBody';
9
+ export * from './AccountDirectoryPatchBody';
10
+ export * from './AccountDirectoryPostBody';
9
11
  export * from './AccountFilePatchBody';
10
12
  export * from './AccountGetAuthOptionsResBody';
11
13
  export * from './AccountOIDCProvider';
@@ -169,6 +171,8 @@ export * from './DatasetDataOneOf2';
169
171
  export * from './DatasetModify';
170
172
  export * from './DatasetRes';
171
173
  export * from './DaysOffData';
174
+ export * from './Directory';
175
+ export * from './DirectoryPage';
172
176
  export * from './EntityChangeActor';
173
177
  export * from './EntityChangedEvent';
174
178
  export * from './EntryPatch';