@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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/dist/apis/FilesApi.d.ts +132 -18
- package/dist/apis/FilesApi.js +175 -8
- package/dist/apis/FloorPlansApi.d.ts +4 -4
- package/dist/apis/FloorPlansApi.js +2 -2
- package/dist/apis/ObjectGroupsApi.d.ts +8 -8
- package/dist/apis/ObjectGroupsApi.js +4 -4
- package/dist/apis/PropertiesApi.d.ts +8 -8
- package/dist/apis/PropertiesApi.js +4 -4
- package/dist/apis/ScenariosApi.d.ts +4 -4
- package/dist/apis/ScenariosApi.js +2 -2
- package/dist/apis/SpaceRulesetsApi.d.ts +4 -4
- package/dist/apis/SpaceRulesetsApi.js +2 -2
- package/dist/esm/apis/FilesApi.d.ts +132 -18
- package/dist/esm/apis/FilesApi.js +176 -9
- package/dist/esm/apis/FloorPlansApi.d.ts +4 -4
- package/dist/esm/apis/FloorPlansApi.js +2 -2
- package/dist/esm/apis/ObjectGroupsApi.d.ts +8 -8
- package/dist/esm/apis/ObjectGroupsApi.js +4 -4
- package/dist/esm/apis/PropertiesApi.d.ts +8 -8
- package/dist/esm/apis/PropertiesApi.js +4 -4
- package/dist/esm/apis/ScenariosApi.d.ts +4 -4
- package/dist/esm/apis/ScenariosApi.js +2 -2
- package/dist/esm/apis/SpaceRulesetsApi.d.ts +4 -4
- package/dist/esm/apis/SpaceRulesetsApi.js +2 -2
- package/dist/esm/models/AccountDirectoryPatchBody.d.ts +38 -0
- package/dist/esm/models/AccountDirectoryPatchBody.js +43 -0
- package/dist/esm/models/AccountDirectoryPostBody.d.ts +38 -0
- package/dist/esm/models/AccountDirectoryPostBody.js +45 -0
- package/dist/esm/models/AccountFilePatchBody.d.ts +8 -2
- package/dist/esm/models/AccountFilePatchBody.js +3 -3
- package/dist/esm/models/Directory.d.ts +56 -0
- package/dist/esm/models/Directory.js +57 -0
- package/dist/esm/models/DirectoryPage.d.ts +39 -0
- package/dist/esm/models/DirectoryPage.js +46 -0
- package/dist/esm/models/ListPage.d.ts +7 -0
- package/dist/esm/models/ListPage.js +3 -0
- package/dist/esm/models/ModelRecord.d.ts +7 -1
- package/dist/esm/models/ModelRecord.js +2 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/AccountDirectoryPatchBody.d.ts +38 -0
- package/dist/models/AccountDirectoryPatchBody.js +50 -0
- package/dist/models/AccountDirectoryPostBody.d.ts +38 -0
- package/dist/models/AccountDirectoryPostBody.js +52 -0
- package/dist/models/AccountFilePatchBody.d.ts +8 -2
- package/dist/models/AccountFilePatchBody.js +3 -3
- package/dist/models/Directory.d.ts +56 -0
- package/dist/models/Directory.js +64 -0
- package/dist/models/DirectoryPage.d.ts +39 -0
- package/dist/models/DirectoryPage.js +53 -0
- package/dist/models/ListPage.d.ts +7 -0
- package/dist/models/ListPage.js +3 -0
- package/dist/models/ModelRecord.d.ts +7 -1
- package/dist/models/ModelRecord.js +2 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/FilesApi.ts +319 -17
- package/src/apis/FloorPlansApi.ts +4 -4
- package/src/apis/ObjectGroupsApi.ts +8 -8
- package/src/apis/PropertiesApi.ts +8 -8
- package/src/apis/ScenariosApi.ts +4 -4
- package/src/apis/SpaceRulesetsApi.ts +4 -4
- package/src/models/AccountDirectoryPatchBody.ts +73 -0
- package/src/models/AccountDirectoryPostBody.ts +74 -0
- package/src/models/AccountFilePatchBody.ts +11 -4
- package/src/models/Directory.ts +101 -0
- package/src/models/DirectoryPage.ts +82 -0
- package/src/models/ListPage.ts +15 -0
- package/src/models/ModelRecord.ts +9 -1
- package/src/models/index.ts +4 -0
package/src/models/ListPage.ts
CHANGED
|
@@ -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'],
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|