@spaciv/sdk 0.1.19 → 0.1.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.
- package/.openapi-generator/FILES +8 -0
- package/README.md +2 -2
- package/dist/apis/FilesApi.d.ts +132 -18
- package/dist/apis/FilesApi.js +175 -8
- package/dist/apis/ScriptsApi.d.ts +57 -1
- package/dist/apis/ScriptsApi.js +82 -0
- package/dist/esm/apis/FilesApi.d.ts +132 -18
- package/dist/esm/apis/FilesApi.js +176 -9
- package/dist/esm/apis/ScriptsApi.d.ts +57 -1
- package/dist/esm/apis/ScriptsApi.js +83 -1
- 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/ScratchpadOutput.d.ts +69 -0
- package/dist/esm/models/ScratchpadOutput.js +64 -0
- package/dist/esm/models/ScratchpadOutputFile.d.ts +44 -0
- package/dist/esm/models/ScratchpadOutputFile.js +49 -0
- package/dist/esm/models/ScratchpadRun.d.ts +127 -0
- package/dist/esm/models/ScratchpadRun.js +91 -0
- package/dist/esm/models/ScratchpadRunPostReqBody.d.ts +58 -0
- package/dist/esm/models/ScratchpadRunPostReqBody.js +53 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -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/ScratchpadOutput.d.ts +69 -0
- package/dist/models/ScratchpadOutput.js +71 -0
- package/dist/models/ScratchpadOutputFile.d.ts +44 -0
- package/dist/models/ScratchpadOutputFile.js +56 -0
- package/dist/models/ScratchpadRun.d.ts +127 -0
- package/dist/models/ScratchpadRun.js +99 -0
- package/dist/models/ScratchpadRunPostReqBody.d.ts +58 -0
- package/dist/models/ScratchpadRunPostReqBody.js +60 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/FilesApi.ts +319 -17
- package/src/apis/ScriptsApi.ts +148 -0
- 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/ScratchpadOutput.ts +126 -0
- package/src/models/ScratchpadOutputFile.ts +83 -0
- package/src/models/ScratchpadRun.ts +203 -0
- package/src/models/ScratchpadRunPostReqBody.ts +99 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Check if a given object implements the ScratchpadRunPostReqBody interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfScratchpadRunPostReqBody(value) {
|
|
18
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('language' in value) || value['language'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ScratchpadRunPostReqBodyFromJSON(json) {
|
|
25
|
+
return ScratchpadRunPostReqBodyFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ScratchpadRunPostReqBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'files': json['files'],
|
|
33
|
+
'input': json['input'] == null ? undefined : json['input'],
|
|
34
|
+
'language': json['language'],
|
|
35
|
+
'timeoutSeconds': json['timeoutSeconds'] == null ? undefined : json['timeoutSeconds'],
|
|
36
|
+
'waitSeconds': json['waitSeconds'] == null ? undefined : json['waitSeconds'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function ScratchpadRunPostReqBodyToJSON(json) {
|
|
40
|
+
return ScratchpadRunPostReqBodyToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ScratchpadRunPostReqBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'files': value['files'],
|
|
48
|
+
'input': value['input'],
|
|
49
|
+
'language': value['language'],
|
|
50
|
+
'timeoutSeconds': value['timeoutSeconds'],
|
|
51
|
+
'waitSeconds': value['waitSeconds'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -4,6 +4,8 @@ export * from './AccountAuthOption';
|
|
|
4
4
|
export * from './AccountCalculationUsageBody';
|
|
5
5
|
export * from './AccountCalculationUsageDay';
|
|
6
6
|
export * from './AccountDetailsResBody';
|
|
7
|
+
export * from './AccountDirectoryPatchBody';
|
|
8
|
+
export * from './AccountDirectoryPostBody';
|
|
7
9
|
export * from './AccountFilePatchBody';
|
|
8
10
|
export * from './AccountGetAuthOptionsResBody';
|
|
9
11
|
export * from './AccountOIDCProvider';
|
|
@@ -167,6 +169,8 @@ export * from './DatasetDataOneOf2';
|
|
|
167
169
|
export * from './DatasetModify';
|
|
168
170
|
export * from './DatasetRes';
|
|
169
171
|
export * from './DaysOffData';
|
|
172
|
+
export * from './Directory';
|
|
173
|
+
export * from './DirectoryPage';
|
|
170
174
|
export * from './EntityChangeActor';
|
|
171
175
|
export * from './EntityChangedEvent';
|
|
172
176
|
export * from './EntryPatch';
|
|
@@ -292,6 +296,10 @@ export * from './ScenarioListEntry';
|
|
|
292
296
|
export * from './ScenarioListRes';
|
|
293
297
|
export * from './ScenarioNotFoundDetail';
|
|
294
298
|
export * from './ScenarioPatch';
|
|
299
|
+
export * from './ScratchpadOutput';
|
|
300
|
+
export * from './ScratchpadOutputFile';
|
|
301
|
+
export * from './ScratchpadRun';
|
|
302
|
+
export * from './ScratchpadRunPostReqBody';
|
|
295
303
|
export * from './ScriptAuditEntry';
|
|
296
304
|
export * from './ScriptAuditResBody';
|
|
297
305
|
export * from './ScriptDetail';
|
package/dist/esm/models/index.js
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';
|
|
@@ -294,6 +298,10 @@ export * from './ScenarioListEntry';
|
|
|
294
298
|
export * from './ScenarioListRes';
|
|
295
299
|
export * from './ScenarioNotFoundDetail';
|
|
296
300
|
export * from './ScenarioPatch';
|
|
301
|
+
export * from './ScratchpadOutput';
|
|
302
|
+
export * from './ScratchpadOutputFile';
|
|
303
|
+
export * from './ScratchpadRun';
|
|
304
|
+
export * from './ScratchpadRunPostReqBody';
|
|
297
305
|
export * from './ScriptAuditEntry';
|
|
298
306
|
export * from './ScriptAuditResBody';
|
|
299
307
|
export * from './ScriptDetail';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spaciv API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@spaciv.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AccountDirectoryPatchBody
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountDirectoryPatchBody {
|
|
18
|
+
/**
|
|
19
|
+
* New display name for 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 ..
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountDirectoryPatchBody
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Identifier of the directory to move this one into, or an empty string to move it to the root.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountDirectoryPatchBody
|
|
28
|
+
*/
|
|
29
|
+
parentId?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AccountDirectoryPatchBody interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAccountDirectoryPatchBody(value: object): value is AccountDirectoryPatchBody;
|
|
35
|
+
export declare function AccountDirectoryPatchBodyFromJSON(json: any): AccountDirectoryPatchBody;
|
|
36
|
+
export declare function AccountDirectoryPatchBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDirectoryPatchBody;
|
|
37
|
+
export declare function AccountDirectoryPatchBodyToJSON(json: any): AccountDirectoryPatchBody;
|
|
38
|
+
export declare function AccountDirectoryPatchBodyToJSONTyped(value?: AccountDirectoryPatchBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAccountDirectoryPatchBody = instanceOfAccountDirectoryPatchBody;
|
|
17
|
+
exports.AccountDirectoryPatchBodyFromJSON = AccountDirectoryPatchBodyFromJSON;
|
|
18
|
+
exports.AccountDirectoryPatchBodyFromJSONTyped = AccountDirectoryPatchBodyFromJSONTyped;
|
|
19
|
+
exports.AccountDirectoryPatchBodyToJSON = AccountDirectoryPatchBodyToJSON;
|
|
20
|
+
exports.AccountDirectoryPatchBodyToJSONTyped = AccountDirectoryPatchBodyToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountDirectoryPatchBody interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountDirectoryPatchBody(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AccountDirectoryPatchBodyFromJSON(json) {
|
|
28
|
+
return AccountDirectoryPatchBodyFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AccountDirectoryPatchBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AccountDirectoryPatchBodyToJSON(json) {
|
|
40
|
+
return AccountDirectoryPatchBodyToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AccountDirectoryPatchBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'parentId': value['parentId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spaciv API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@spaciv.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AccountDirectoryPostBody
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountDirectoryPostBody {
|
|
18
|
+
/**
|
|
19
|
+
* 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 ..
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountDirectoryPostBody
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Identifier of the directory to create this one in. Leave it out to create it at the root.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountDirectoryPostBody
|
|
28
|
+
*/
|
|
29
|
+
parentId?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AccountDirectoryPostBody interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAccountDirectoryPostBody(value: object): value is AccountDirectoryPostBody;
|
|
35
|
+
export declare function AccountDirectoryPostBodyFromJSON(json: any): AccountDirectoryPostBody;
|
|
36
|
+
export declare function AccountDirectoryPostBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDirectoryPostBody;
|
|
37
|
+
export declare function AccountDirectoryPostBodyToJSON(json: any): AccountDirectoryPostBody;
|
|
38
|
+
export declare function AccountDirectoryPostBodyToJSONTyped(value?: AccountDirectoryPostBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAccountDirectoryPostBody = instanceOfAccountDirectoryPostBody;
|
|
17
|
+
exports.AccountDirectoryPostBodyFromJSON = AccountDirectoryPostBodyFromJSON;
|
|
18
|
+
exports.AccountDirectoryPostBodyFromJSONTyped = AccountDirectoryPostBodyFromJSONTyped;
|
|
19
|
+
exports.AccountDirectoryPostBodyToJSON = AccountDirectoryPostBodyToJSON;
|
|
20
|
+
exports.AccountDirectoryPostBodyToJSONTyped = AccountDirectoryPostBodyToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountDirectoryPostBody interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountDirectoryPostBody(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AccountDirectoryPostBodyFromJSON(json) {
|
|
30
|
+
return AccountDirectoryPostBodyFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AccountDirectoryPostBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AccountDirectoryPostBodyToJSON(json) {
|
|
42
|
+
return AccountDirectoryPostBodyToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AccountDirectoryPostBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'parentId': value['parentId'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -16,11 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface AccountFilePatchBody {
|
|
18
18
|
/**
|
|
19
|
-
* New display name for the file. Must not contain a forward slash or a backslash.
|
|
19
|
+
* New display name for the file. At most 255 bytes after normalising to Unicode NFC. Must not contain a forward slash or a backslash.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AccountFilePatchBody
|
|
22
22
|
*/
|
|
23
|
-
name
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Identifier of the directory to move the file into, or an empty string to move it to the root.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountFilePatchBody
|
|
28
|
+
*/
|
|
29
|
+
parentId?: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the AccountFilePatchBody interface.
|
|
@@ -22,8 +22,6 @@ exports.AccountFilePatchBodyToJSONTyped = AccountFilePatchBodyToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AccountFilePatchBody interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAccountFilePatchBody(value) {
|
|
25
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
return true;
|
|
28
26
|
}
|
|
29
27
|
function AccountFilePatchBodyFromJSON(json) {
|
|
@@ -34,7 +32,8 @@ function AccountFilePatchBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
32
|
return json;
|
|
35
33
|
}
|
|
36
34
|
return {
|
|
37
|
-
'name': json['name'],
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
39
|
function AccountFilePatchBodyToJSON(json) {
|
|
@@ -46,5 +45,6 @@ function AccountFilePatchBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
45
|
}
|
|
47
46
|
return {
|
|
48
47
|
'name': value['name'],
|
|
48
|
+
'parentId': value['parentId'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spaciv API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@spaciv.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Directory
|
|
16
|
+
*/
|
|
17
|
+
export interface Directory {
|
|
18
|
+
/**
|
|
19
|
+
* When the directory was created (RFC 3339).
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof Directory
|
|
22
|
+
*/
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
/**
|
|
25
|
+
* Identifier of the user who created the directory.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof Directory
|
|
28
|
+
*/
|
|
29
|
+
createdBy: number;
|
|
30
|
+
/**
|
|
31
|
+
* Opaque identifier of the directory.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Directory
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Display name of the directory. Nothing else in the same parent has the same name, compared exactly and after normalising to Unicode NFC.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Directory
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Identifier of the directory this one is in. Absent for a directory at the root.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Directory
|
|
46
|
+
*/
|
|
47
|
+
parentId?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the Directory interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfDirectory(value: object): value is Directory;
|
|
53
|
+
export declare function DirectoryFromJSON(json: any): Directory;
|
|
54
|
+
export declare function DirectoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Directory;
|
|
55
|
+
export declare function DirectoryToJSON(json: any): Directory;
|
|
56
|
+
export declare function DirectoryToJSONTyped(value?: Directory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDirectory = instanceOfDirectory;
|
|
17
|
+
exports.DirectoryFromJSON = DirectoryFromJSON;
|
|
18
|
+
exports.DirectoryFromJSONTyped = DirectoryFromJSONTyped;
|
|
19
|
+
exports.DirectoryToJSON = DirectoryToJSON;
|
|
20
|
+
exports.DirectoryToJSONTyped = DirectoryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Directory interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDirectory(value) {
|
|
25
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('createdBy' in value) || value['createdBy'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function DirectoryFromJSON(json) {
|
|
36
|
+
return DirectoryFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function DirectoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
44
|
+
'createdBy': json['createdBy'],
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function DirectoryToJSON(json) {
|
|
51
|
+
return DirectoryToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function DirectoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
59
|
+
'createdBy': value['createdBy'],
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'parentId': value['parentId'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* spaciv API
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@spaciv.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Directory } from './Directory';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DirectoryPage
|
|
17
|
+
*/
|
|
18
|
+
export interface DirectoryPage {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<Directory>}
|
|
22
|
+
* @memberof DirectoryPage
|
|
23
|
+
*/
|
|
24
|
+
directories: Array<Directory>;
|
|
25
|
+
/**
|
|
26
|
+
* Pass back as cursor to fetch the following page. Absent on the last page.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof DirectoryPage
|
|
29
|
+
*/
|
|
30
|
+
nextCursor?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the DirectoryPage interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfDirectoryPage(value: object): value is DirectoryPage;
|
|
36
|
+
export declare function DirectoryPageFromJSON(json: any): DirectoryPage;
|
|
37
|
+
export declare function DirectoryPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): DirectoryPage;
|
|
38
|
+
export declare function DirectoryPageToJSON(json: any): DirectoryPage;
|
|
39
|
+
export declare function DirectoryPageToJSONTyped(value?: DirectoryPage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* spaciv API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@spaciv.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDirectoryPage = instanceOfDirectoryPage;
|
|
17
|
+
exports.DirectoryPageFromJSON = DirectoryPageFromJSON;
|
|
18
|
+
exports.DirectoryPageFromJSONTyped = DirectoryPageFromJSONTyped;
|
|
19
|
+
exports.DirectoryPageToJSON = DirectoryPageToJSON;
|
|
20
|
+
exports.DirectoryPageToJSONTyped = DirectoryPageToJSONTyped;
|
|
21
|
+
const Directory_1 = require("./Directory");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the DirectoryPage interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfDirectoryPage(value) {
|
|
26
|
+
if (!('directories' in value) || value['directories'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function DirectoryPageFromJSON(json) {
|
|
31
|
+
return DirectoryPageFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function DirectoryPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'directories': (json['directories'].map(Directory_1.DirectoryFromJSON)),
|
|
39
|
+
'nextCursor': json['nextCursor'] == null ? undefined : json['nextCursor'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function DirectoryPageToJSON(json) {
|
|
43
|
+
return DirectoryPageToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function DirectoryPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'directories': (value['directories'].map(Directory_1.DirectoryToJSON)),
|
|
51
|
+
'nextCursor': value['nextCursor'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -10,12 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ModelRecord } from './ModelRecord';
|
|
13
|
+
import type { Directory } from './Directory';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
16
17
|
* @interface ListPage
|
|
17
18
|
*/
|
|
18
19
|
export interface ListPage {
|
|
20
|
+
/**
|
|
21
|
+
* Directories directly inside the listed directory. Returned only when a parent is given, and only on the pages that hold some.
|
|
22
|
+
* @type {Array<Directory>}
|
|
23
|
+
* @memberof ListPage
|
|
24
|
+
*/
|
|
25
|
+
directories?: Array<Directory>;
|
|
19
26
|
/**
|
|
20
27
|
*
|
|
21
28
|
* @type {Array<ModelRecord>}
|
package/dist/models/ListPage.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.ListPageFromJSONTyped = ListPageFromJSONTyped;
|
|
|
19
19
|
exports.ListPageToJSON = ListPageToJSON;
|
|
20
20
|
exports.ListPageToJSONTyped = ListPageToJSONTyped;
|
|
21
21
|
const ModelRecord_1 = require("./ModelRecord");
|
|
22
|
+
const Directory_1 = require("./Directory");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ListPage interface.
|
|
24
25
|
*/
|
|
@@ -35,6 +36,7 @@ function ListPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
36
|
return json;
|
|
36
37
|
}
|
|
37
38
|
return {
|
|
39
|
+
'directories': json['directories'] == null ? undefined : (json['directories'].map(Directory_1.DirectoryFromJSON)),
|
|
38
40
|
'files': (json['files'].map(ModelRecord_1.ModelRecordFromJSON)),
|
|
39
41
|
'nextCursor': json['nextCursor'] == null ? undefined : json['nextCursor'],
|
|
40
42
|
};
|
|
@@ -47,6 +49,7 @@ function ListPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
49
|
return value;
|
|
48
50
|
}
|
|
49
51
|
return {
|
|
52
|
+
'directories': value['directories'] == null ? undefined : (value['directories'].map(Directory_1.DirectoryToJSON)),
|
|
50
53
|
'files': (value['files'].map(ModelRecord_1.ModelRecordToJSON)),
|
|
51
54
|
'nextCursor': value['nextCursor'],
|
|
52
55
|
};
|
|
@@ -34,11 +34,17 @@ export interface ModelRecord {
|
|
|
34
34
|
*/
|
|
35
35
|
mimeType: string;
|
|
36
36
|
/**
|
|
37
|
-
* Display name of the file, taken from the uploaded file name and changeable afterwards.
|
|
37
|
+
* 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.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof ModelRecord
|
|
40
40
|
*/
|
|
41
41
|
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Identifier of the directory the file is in. Absent for a file at the root.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ModelRecord
|
|
46
|
+
*/
|
|
47
|
+
parentId?: string;
|
|
42
48
|
/**
|
|
43
49
|
* Name of the virus signature the file matched when it was quarantined.
|
|
44
50
|
* @type {string}
|
|
@@ -48,6 +48,7 @@ function ModelRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'id': json['id'],
|
|
49
49
|
'mimeType': json['mimeType'],
|
|
50
50
|
'name': json['name'],
|
|
51
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
51
52
|
'quarantineSignature': json['quarantineSignature'] == null ? undefined : json['quarantineSignature'],
|
|
52
53
|
'quarantinedAt': json['quarantinedAt'] == null ? undefined : (new Date(json['quarantinedAt'])),
|
|
53
54
|
'size': json['size'],
|
|
@@ -66,6 +67,7 @@ function ModelRecordToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
67
|
'id': value['id'],
|
|
67
68
|
'mimeType': value['mimeType'],
|
|
68
69
|
'name': value['name'],
|
|
70
|
+
'parentId': value['parentId'],
|
|
69
71
|
'quarantineSignature': value['quarantineSignature'],
|
|
70
72
|
'quarantinedAt': value['quarantinedAt'] == null ? undefined : ((value['quarantinedAt']).toISOString()),
|
|
71
73
|
'size': value['size'],
|