@spaciv/sdk 0.1.19 → 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/esm/apis/FilesApi.d.ts +132 -18
- package/dist/esm/apis/FilesApi.js +176 -9
- 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/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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AccountDirectoryPostBody
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountDirectoryPostBody {
|
|
22
|
+
/**
|
|
23
|
+
* Display name of the directory. At most 255 bytes after normalising to Unicode NFC. Must not contain a forward slash or a backslash, and must not be . or ..
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AccountDirectoryPostBody
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Identifier of the directory to create this one in. Leave it out to create it at the root.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AccountDirectoryPostBody
|
|
32
|
+
*/
|
|
33
|
+
parentId?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AccountDirectoryPostBody interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAccountDirectoryPostBody(value: object): value is AccountDirectoryPostBody {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function AccountDirectoryPostBodyFromJSON(json: any): AccountDirectoryPostBody {
|
|
45
|
+
return AccountDirectoryPostBodyFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function AccountDirectoryPostBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDirectoryPostBody {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'name': json['name'],
|
|
55
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AccountDirectoryPostBodyToJSON(json: any): AccountDirectoryPostBody {
|
|
60
|
+
return AccountDirectoryPostBodyToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AccountDirectoryPostBodyToJSONTyped(value?: AccountDirectoryPostBody | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'name': value['name'],
|
|
71
|
+
'parentId': value['parentId'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -20,18 +20,23 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface AccountFilePatchBody {
|
|
22
22
|
/**
|
|
23
|
-
* New display name for the file. Must not contain a forward slash or a backslash.
|
|
23
|
+
* New display name for the file. At most 255 bytes after normalising to Unicode NFC. Must not contain a forward slash or a backslash.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AccountFilePatchBody
|
|
26
26
|
*/
|
|
27
|
-
name
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Identifier of the directory to move the file into, or an empty string to move it to the root.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AccountFilePatchBody
|
|
32
|
+
*/
|
|
33
|
+
parentId?: string;
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
/**
|
|
31
37
|
* Check if a given object implements the AccountFilePatchBody interface.
|
|
32
38
|
*/
|
|
33
39
|
export function instanceOfAccountFilePatchBody(value: object): value is AccountFilePatchBody {
|
|
34
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
35
40
|
return true;
|
|
36
41
|
}
|
|
37
42
|
|
|
@@ -45,7 +50,8 @@ export function AccountFilePatchBodyFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
45
50
|
}
|
|
46
51
|
return {
|
|
47
52
|
|
|
48
|
-
'name': json['name'],
|
|
53
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
49
55
|
};
|
|
50
56
|
}
|
|
51
57
|
|
|
@@ -61,6 +67,7 @@ export function AccountFilePatchBodyToJSONTyped(value?: AccountFilePatchBody | n
|
|
|
61
67
|
return {
|
|
62
68
|
|
|
63
69
|
'name': value['name'],
|
|
70
|
+
'parentId': value['parentId'],
|
|
64
71
|
};
|
|
65
72
|
}
|
|
66
73
|
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Directory
|
|
20
|
+
*/
|
|
21
|
+
export interface Directory {
|
|
22
|
+
/**
|
|
23
|
+
* When the directory was created (RFC 3339).
|
|
24
|
+
* @type {Date}
|
|
25
|
+
* @memberof Directory
|
|
26
|
+
*/
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
/**
|
|
29
|
+
* Identifier of the user who created the directory.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof Directory
|
|
32
|
+
*/
|
|
33
|
+
createdBy: number;
|
|
34
|
+
/**
|
|
35
|
+
* Opaque identifier of the directory.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Directory
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
/**
|
|
41
|
+
* Display name of the directory. Nothing else in the same parent has the same name, compared exactly and after normalising to Unicode NFC.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Directory
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
/**
|
|
47
|
+
* Identifier of the directory this one is in. Absent for a directory at the root.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Directory
|
|
50
|
+
*/
|
|
51
|
+
parentId?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the Directory interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfDirectory(value: object): value is Directory {
|
|
58
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
59
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
60
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
61
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function DirectoryFromJSON(json: any): Directory {
|
|
66
|
+
return DirectoryFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function DirectoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Directory {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
76
|
+
'createdBy': json['createdBy'],
|
|
77
|
+
'id': json['id'],
|
|
78
|
+
'name': json['name'],
|
|
79
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function DirectoryToJSON(json: any): Directory {
|
|
84
|
+
return DirectoryToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function DirectoryToJSONTyped(value?: Directory | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
95
|
+
'createdBy': value['createdBy'],
|
|
96
|
+
'id': value['id'],
|
|
97
|
+
'name': value['name'],
|
|
98
|
+
'parentId': value['parentId'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* spaciv API
|
|
5
|
+
* The spaciv API powers workplace planning: modelling how many people an organisation has, how they work, and how much space that requires. ## Getting started 1. Exchange credentials for an access token using one of the operations under **Authentication**. 2. Send that token on every subsequent request as `Authorization: Bearer <token>`. 3. Access tokens are short lived. Call `POST /v1/auth/refresh-token` to obtain a new one before the old one expires. ## Conventions Every operation is versioned under `/v1`. Collections are plural (`GET /v1/dashboards` lists, `POST /v1/dashboards` creates) and individual records live beneath them (`/v1/dashboards/{id}`). Singular paths such as `/v1/account`, `/v1/project` and `/v1/user` refer to the record the access token was issued for. Request and response bodies are JSON. Timestamps are RFC 3339. Identifiers are opaque strings unless documented otherwise, and collection operations return the records visible to the account the token was issued for. Failures return an [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem document with a `detail` field describing what went wrong.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@spaciv.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Directory } from './Directory';
|
|
17
|
+
import {
|
|
18
|
+
DirectoryFromJSON,
|
|
19
|
+
DirectoryFromJSONTyped,
|
|
20
|
+
DirectoryToJSON,
|
|
21
|
+
DirectoryToJSONTyped,
|
|
22
|
+
} from './Directory';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DirectoryPage
|
|
28
|
+
*/
|
|
29
|
+
export interface DirectoryPage {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<Directory>}
|
|
33
|
+
* @memberof DirectoryPage
|
|
34
|
+
*/
|
|
35
|
+
directories: Array<Directory>;
|
|
36
|
+
/**
|
|
37
|
+
* Pass back as cursor to fetch the following page. Absent on the last page.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DirectoryPage
|
|
40
|
+
*/
|
|
41
|
+
nextCursor?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the DirectoryPage interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfDirectoryPage(value: object): value is DirectoryPage {
|
|
48
|
+
if (!('directories' in value) || value['directories'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DirectoryPageFromJSON(json: any): DirectoryPage {
|
|
53
|
+
return DirectoryPageFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DirectoryPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectoryPage {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'directories': ((json['directories'] as Array<any>).map(DirectoryFromJSON)),
|
|
63
|
+
'nextCursor': json['nextCursor'] == null ? undefined : json['nextCursor'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function DirectoryPageToJSON(json: any): DirectoryPage {
|
|
68
|
+
return DirectoryPageToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function DirectoryPageToJSONTyped(value?: DirectoryPage | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'directories': ((value['directories'] as Array<any>).map(DirectoryToJSON)),
|
|
79
|
+
'nextCursor': value['nextCursor'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
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';
|