@spaciv/sdk 0.1.8 → 0.1.10
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 +1 -0
- package/README.md +2 -2
- package/dist/apis/ContributionsApi.d.ts +4 -4
- package/dist/apis/ContributionsApi.js +2 -2
- package/dist/apis/DataCollectionApi.d.ts +12 -12
- package/dist/apis/DataCollectionApi.js +6 -6
- package/dist/apis/FloorPlansApi.d.ts +8 -8
- package/dist/apis/FloorPlansApi.js +4 -4
- package/dist/esm/apis/ContributionsApi.d.ts +4 -4
- package/dist/esm/apis/ContributionsApi.js +2 -2
- package/dist/esm/apis/DataCollectionApi.d.ts +12 -12
- package/dist/esm/apis/DataCollectionApi.js +6 -6
- package/dist/esm/apis/FloorPlansApi.d.ts +8 -8
- package/dist/esm/apis/FloorPlansApi.js +4 -4
- package/dist/esm/models/DatacollectionBody.d.ts +13 -0
- package/dist/esm/models/DatacollectionBody.js +5 -0
- package/dist/esm/models/DatacollectionChangelogBody.d.ts +13 -0
- package/dist/esm/models/DatacollectionChangelogBody.js +9 -0
- package/dist/esm/models/DatacollectionContributor.d.ts +38 -0
- package/dist/esm/models/DatacollectionContributor.js +47 -0
- package/dist/esm/models/FloorplanCreateSpace.d.ts +12 -0
- package/dist/esm/models/FloorplanCreateSpace.js +4 -0
- package/dist/esm/models/FloorplanGetBody.d.ts +15 -0
- package/dist/esm/models/FloorplanGetBody.js +12 -0
- package/dist/esm/models/FloorplanGetBodySpace.d.ts +12 -0
- package/dist/esm/models/FloorplanGetBodySpace.js +4 -0
- package/dist/esm/models/FloorplanPatchParamsBody.d.ts +6 -0
- package/dist/esm/models/FloorplanPatchParamsBody.js +2 -0
- package/dist/esm/models/GetDatacollectionRes.d.ts +6 -0
- package/dist/esm/models/GetDatacollectionRes.js +2 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/DatacollectionBody.d.ts +13 -0
- package/dist/models/DatacollectionBody.js +5 -0
- package/dist/models/DatacollectionChangelogBody.d.ts +13 -0
- package/dist/models/DatacollectionChangelogBody.js +9 -0
- package/dist/models/DatacollectionContributor.d.ts +38 -0
- package/dist/models/DatacollectionContributor.js +54 -0
- package/dist/models/FloorplanCreateSpace.d.ts +12 -0
- package/dist/models/FloorplanCreateSpace.js +4 -0
- package/dist/models/FloorplanGetBody.d.ts +15 -0
- package/dist/models/FloorplanGetBody.js +13 -0
- package/dist/models/FloorplanGetBodySpace.d.ts +12 -0
- package/dist/models/FloorplanGetBodySpace.js +4 -0
- package/dist/models/FloorplanPatchParamsBody.d.ts +6 -0
- package/dist/models/FloorplanPatchParamsBody.js +2 -0
- package/dist/models/GetDatacollectionRes.d.ts +6 -0
- package/dist/models/GetDatacollectionRes.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/ContributionsApi.ts +4 -4
- package/src/apis/DataCollectionApi.ts +12 -12
- package/src/apis/FloorPlansApi.ts +8 -8
- package/src/models/DatacollectionBody.ts +23 -0
- package/src/models/DatacollectionChangelogBody.ts +25 -0
- package/src/models/DatacollectionContributor.ts +75 -0
- package/src/models/FloorplanCreateSpace.ts +16 -0
- package/src/models/FloorplanGetBody.ts +21 -0
- package/src/models/FloorplanGetBodySpace.ts +16 -0
- package/src/models/FloorplanPatchParamsBody.ts +8 -0
- package/src/models/GetDatacollectionRes.ts +8 -0
- package/src/models/index.ts +1 -0
package/dist/esm/models/index.js
CHANGED
|
@@ -148,6 +148,7 @@ export * from './DatacollectionAuthenticationOneOf2';
|
|
|
148
148
|
export * from './DatacollectionAuthenticationOneOf3';
|
|
149
149
|
export * from './DatacollectionBody';
|
|
150
150
|
export * from './DatacollectionChangelogBody';
|
|
151
|
+
export * from './DatacollectionContributor';
|
|
151
152
|
export * from './DatasetAddResponseBody';
|
|
152
153
|
export * from './DatasetChangelogBody';
|
|
153
154
|
export * from './DatasetChangelogData';
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DatacollectionAuthentication } from './DatacollectionAuthentication';
|
|
13
|
+
import type { DatacollectionContributor } from './DatacollectionContributor';
|
|
13
14
|
import type { Step } from './Step';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -29,6 +30,12 @@ export interface DatacollectionBody {
|
|
|
29
30
|
* @memberof DatacollectionBody
|
|
30
31
|
*/
|
|
31
32
|
authenticationMode?: DatacollectionAuthentication;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {boolean}
|
|
36
|
+
* @memberof DatacollectionBody
|
|
37
|
+
*/
|
|
38
|
+
clearContributors?: boolean;
|
|
32
39
|
/**
|
|
33
40
|
*
|
|
34
41
|
* @type {boolean}
|
|
@@ -41,6 +48,12 @@ export interface DatacollectionBody {
|
|
|
41
48
|
* @memberof DatacollectionBody
|
|
42
49
|
*/
|
|
43
50
|
completeMessage?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<DatacollectionContributor>}
|
|
54
|
+
* @memberof DatacollectionBody
|
|
55
|
+
*/
|
|
56
|
+
contributors?: Array<DatacollectionContributor>;
|
|
44
57
|
/**
|
|
45
58
|
*
|
|
46
59
|
* @type {boolean}
|
|
@@ -19,6 +19,7 @@ exports.DatacollectionBodyFromJSONTyped = DatacollectionBodyFromJSONTyped;
|
|
|
19
19
|
exports.DatacollectionBodyToJSON = DatacollectionBodyToJSON;
|
|
20
20
|
exports.DatacollectionBodyToJSONTyped = DatacollectionBodyToJSONTyped;
|
|
21
21
|
const DatacollectionAuthentication_1 = require("./DatacollectionAuthentication");
|
|
22
|
+
const DatacollectionContributor_1 = require("./DatacollectionContributor");
|
|
22
23
|
const Step_1 = require("./Step");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the DatacollectionBody interface.
|
|
@@ -44,8 +45,10 @@ function DatacollectionBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
45
|
return {
|
|
45
46
|
'anonymisationProperty': json['anonymisationProperty'] == null ? undefined : json['anonymisationProperty'],
|
|
46
47
|
'authenticationMode': json['authenticationMode'] == null ? undefined : (0, DatacollectionAuthentication_1.DatacollectionAuthenticationFromJSON)(json['authenticationMode']),
|
|
48
|
+
'clearContributors': json['clearContributors'] == null ? undefined : json['clearContributors'],
|
|
47
49
|
'clearSteps': json['clearSteps'],
|
|
48
50
|
'completeMessage': json['completeMessage'] == null ? undefined : json['completeMessage'],
|
|
51
|
+
'contributors': json['contributors'] == null ? undefined : (json['contributors'].map(DatacollectionContributor_1.DatacollectionContributorFromJSON)),
|
|
49
52
|
'delete': json['delete'],
|
|
50
53
|
'description': json['description'] == null ? undefined : json['description'],
|
|
51
54
|
'end': json['end'] == null ? undefined : json['end'],
|
|
@@ -70,8 +73,10 @@ function DatacollectionBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
73
|
return {
|
|
71
74
|
'anonymisationProperty': value['anonymisationProperty'],
|
|
72
75
|
'authenticationMode': (0, DatacollectionAuthentication_1.DatacollectionAuthenticationToJSON)(value['authenticationMode']),
|
|
76
|
+
'clearContributors': value['clearContributors'],
|
|
73
77
|
'clearSteps': value['clearSteps'],
|
|
74
78
|
'completeMessage': value['completeMessage'],
|
|
79
|
+
'contributors': value['contributors'] == null ? undefined : (value['contributors'].map(DatacollectionContributor_1.DatacollectionContributorToJSON)),
|
|
75
80
|
'delete': value['delete'],
|
|
76
81
|
'description': value['description'],
|
|
77
82
|
'end': value['end'],
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DatacollectionAuthentication } from './DatacollectionAuthentication';
|
|
13
|
+
import type { DatacollectionContributor } from './DatacollectionContributor';
|
|
13
14
|
import type { Step } from './Step';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -35,6 +36,18 @@ export interface DatacollectionChangelogBody {
|
|
|
35
36
|
* @memberof DatacollectionChangelogBody
|
|
36
37
|
*/
|
|
37
38
|
completeMessage: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<DatacollectionContributor>}
|
|
42
|
+
* @memberof DatacollectionChangelogBody
|
|
43
|
+
*/
|
|
44
|
+
contributors: Array<DatacollectionContributor>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {boolean}
|
|
48
|
+
* @memberof DatacollectionChangelogBody
|
|
49
|
+
*/
|
|
50
|
+
contributorsUploaded: boolean;
|
|
38
51
|
/**
|
|
39
52
|
*
|
|
40
53
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.DatacollectionChangelogBodyFromJSONTyped = DatacollectionChangelogBodyFr
|
|
|
19
19
|
exports.DatacollectionChangelogBodyToJSON = DatacollectionChangelogBodyToJSON;
|
|
20
20
|
exports.DatacollectionChangelogBodyToJSONTyped = DatacollectionChangelogBodyToJSONTyped;
|
|
21
21
|
const DatacollectionAuthentication_1 = require("./DatacollectionAuthentication");
|
|
22
|
+
const DatacollectionContributor_1 = require("./DatacollectionContributor");
|
|
22
23
|
const Step_1 = require("./Step");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the DatacollectionChangelogBody interface.
|
|
@@ -30,6 +31,10 @@ function instanceOfDatacollectionChangelogBody(value) {
|
|
|
30
31
|
return false;
|
|
31
32
|
if (!('completeMessage' in value) || value['completeMessage'] === undefined)
|
|
32
33
|
return false;
|
|
34
|
+
if (!('contributors' in value) || value['contributors'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('contributorsUploaded' in value) || value['contributorsUploaded'] === undefined)
|
|
37
|
+
return false;
|
|
33
38
|
if (!('description' in value) || value['description'] === undefined)
|
|
34
39
|
return false;
|
|
35
40
|
if (!('end' in value) || value['end'] === undefined)
|
|
@@ -63,6 +68,8 @@ function DatacollectionChangelogBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
68
|
'anonymisationProperty': json['anonymisationProperty'],
|
|
64
69
|
'authenticationMode': (0, DatacollectionAuthentication_1.DatacollectionAuthenticationFromJSON)(json['authenticationMode']),
|
|
65
70
|
'completeMessage': json['completeMessage'],
|
|
71
|
+
'contributors': (json['contributors'].map(DatacollectionContributor_1.DatacollectionContributorFromJSON)),
|
|
72
|
+
'contributorsUploaded': json['contributorsUploaded'],
|
|
66
73
|
'description': json['description'],
|
|
67
74
|
'end': json['end'],
|
|
68
75
|
'inviteMessage': json['inviteMessage'],
|
|
@@ -86,6 +93,8 @@ function DatacollectionChangelogBodyToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
86
93
|
'anonymisationProperty': value['anonymisationProperty'],
|
|
87
94
|
'authenticationMode': (0, DatacollectionAuthentication_1.DatacollectionAuthenticationToJSON)(value['authenticationMode']),
|
|
88
95
|
'completeMessage': value['completeMessage'],
|
|
96
|
+
'contributors': (value['contributors'].map(DatacollectionContributor_1.DatacollectionContributorToJSON)),
|
|
97
|
+
'contributorsUploaded': value['contributorsUploaded'],
|
|
89
98
|
'description': value['description'],
|
|
90
99
|
'end': value['end'],
|
|
91
100
|
'inviteMessage': value['inviteMessage'],
|
|
@@ -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 DatacollectionContributor
|
|
16
|
+
*/
|
|
17
|
+
export interface DatacollectionContributor {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof DatacollectionContributor
|
|
22
|
+
*/
|
|
23
|
+
nodes: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DatacollectionContributor
|
|
28
|
+
*/
|
|
29
|
+
user: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DatacollectionContributor interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDatacollectionContributor(value: object): value is DatacollectionContributor;
|
|
35
|
+
export declare function DatacollectionContributorFromJSON(json: any): DatacollectionContributor;
|
|
36
|
+
export declare function DatacollectionContributorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatacollectionContributor;
|
|
37
|
+
export declare function DatacollectionContributorToJSON(json: any): DatacollectionContributor;
|
|
38
|
+
export declare function DatacollectionContributorToJSONTyped(value?: DatacollectionContributor | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfDatacollectionContributor = instanceOfDatacollectionContributor;
|
|
17
|
+
exports.DatacollectionContributorFromJSON = DatacollectionContributorFromJSON;
|
|
18
|
+
exports.DatacollectionContributorFromJSONTyped = DatacollectionContributorFromJSONTyped;
|
|
19
|
+
exports.DatacollectionContributorToJSON = DatacollectionContributorToJSON;
|
|
20
|
+
exports.DatacollectionContributorToJSONTyped = DatacollectionContributorToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DatacollectionContributor interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDatacollectionContributor(value) {
|
|
25
|
+
if (!('nodes' in value) || value['nodes'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function DatacollectionContributorFromJSON(json) {
|
|
32
|
+
return DatacollectionContributorFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function DatacollectionContributorFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'nodes': json['nodes'],
|
|
40
|
+
'user': json['user'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function DatacollectionContributorToJSON(json) {
|
|
44
|
+
return DatacollectionContributorToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function DatacollectionContributorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'nodes': value['nodes'],
|
|
52
|
+
'user': value['user'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -16,6 +16,12 @@ import type { FloorplanSpaceChangelogPath } from './FloorplanSpaceChangelogPath'
|
|
|
16
16
|
* @interface FloorplanCreateSpace
|
|
17
17
|
*/
|
|
18
18
|
export interface FloorplanCreateSpace {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof FloorplanCreateSpace
|
|
23
|
+
*/
|
|
24
|
+
endHeight?: number;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -28,6 +34,12 @@ export interface FloorplanCreateSpace {
|
|
|
28
34
|
* @memberof FloorplanCreateSpace
|
|
29
35
|
*/
|
|
30
36
|
paths: Array<FloorplanSpaceChangelogPath>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof FloorplanCreateSpace
|
|
41
|
+
*/
|
|
42
|
+
startHeight?: number;
|
|
31
43
|
}
|
|
32
44
|
/**
|
|
33
45
|
* Check if a given object implements the FloorplanCreateSpace interface.
|
|
@@ -37,8 +37,10 @@ function FloorplanCreateSpaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
+
'endHeight': json['endHeight'] == null ? undefined : json['endHeight'],
|
|
40
41
|
'location': json['location'],
|
|
41
42
|
'paths': (json['paths'].map(FloorplanSpaceChangelogPath_1.FloorplanSpaceChangelogPathFromJSON)),
|
|
43
|
+
'startHeight': json['startHeight'] == null ? undefined : json['startHeight'],
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
function FloorplanCreateSpaceToJSON(json) {
|
|
@@ -49,7 +51,9 @@ function FloorplanCreateSpaceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
51
|
return value;
|
|
50
52
|
}
|
|
51
53
|
return {
|
|
54
|
+
'endHeight': value['endHeight'],
|
|
52
55
|
'location': value['location'],
|
|
53
56
|
'paths': (value['paths'].map(FloorplanSpaceChangelogPath_1.FloorplanSpaceChangelogPathToJSON)),
|
|
57
|
+
'startHeight': value['startHeight'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -65,7 +65,22 @@ export interface FloorplanGetBody {
|
|
|
65
65
|
* @memberof FloorplanGetBody
|
|
66
66
|
*/
|
|
67
67
|
spaces: Array<FloorplanGetBodySpace>;
|
|
68
|
+
/**
|
|
69
|
+
* Whether the floor plan can be shown in 2D, in 3D, or both. Defaults to 2d-and-3d.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof FloorplanGetBody
|
|
72
|
+
*/
|
|
73
|
+
viewMode: FloorplanGetBodyViewModeEnum;
|
|
68
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export declare const FloorplanGetBodyViewModeEnum: {
|
|
79
|
+
readonly _2dAnd3d: "2d-and-3d";
|
|
80
|
+
readonly _3dOnly: "3d-only";
|
|
81
|
+
readonly _2dOnly: "2d-only";
|
|
82
|
+
};
|
|
83
|
+
export type FloorplanGetBodyViewModeEnum = typeof FloorplanGetBodyViewModeEnum[keyof typeof FloorplanGetBodyViewModeEnum];
|
|
69
84
|
/**
|
|
70
85
|
* Check if a given object implements the FloorplanGetBody interface.
|
|
71
86
|
*/
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FloorplanGetBodyViewModeEnum = void 0;
|
|
16
17
|
exports.instanceOfFloorplanGetBody = instanceOfFloorplanGetBody;
|
|
17
18
|
exports.FloorplanGetBodyFromJSON = FloorplanGetBodyFromJSON;
|
|
18
19
|
exports.FloorplanGetBodyFromJSONTyped = FloorplanGetBodyFromJSONTyped;
|
|
@@ -20,6 +21,14 @@ exports.FloorplanGetBodyToJSON = FloorplanGetBodyToJSON;
|
|
|
20
21
|
exports.FloorplanGetBodyToJSONTyped = FloorplanGetBodyToJSONTyped;
|
|
21
22
|
const FloorplanGetBodyOverlayOffset_1 = require("./FloorplanGetBodyOverlayOffset");
|
|
22
23
|
const FloorplanGetBodySpace_1 = require("./FloorplanGetBodySpace");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.FloorplanGetBodyViewModeEnum = {
|
|
28
|
+
_2dAnd3d: '2d-and-3d',
|
|
29
|
+
_3dOnly: '3d-only',
|
|
30
|
+
_2dOnly: '2d-only'
|
|
31
|
+
};
|
|
23
32
|
/**
|
|
24
33
|
* Check if a given object implements the FloorplanGetBody interface.
|
|
25
34
|
*/
|
|
@@ -36,6 +45,8 @@ function instanceOfFloorplanGetBody(value) {
|
|
|
36
45
|
return false;
|
|
37
46
|
if (!('spaces' in value) || value['spaces'] === undefined)
|
|
38
47
|
return false;
|
|
48
|
+
if (!('viewMode' in value) || value['viewMode'] === undefined)
|
|
49
|
+
return false;
|
|
39
50
|
return true;
|
|
40
51
|
}
|
|
41
52
|
function FloorplanGetBodyFromJSON(json) {
|
|
@@ -54,6 +65,7 @@ function FloorplanGetBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
65
|
'property': json['property'],
|
|
55
66
|
'propertyNode': json['propertyNode'],
|
|
56
67
|
'spaces': (json['spaces'].map(FloorplanGetBodySpace_1.FloorplanGetBodySpaceFromJSON)),
|
|
68
|
+
'viewMode': json['viewMode'],
|
|
57
69
|
};
|
|
58
70
|
}
|
|
59
71
|
function FloorplanGetBodyToJSON(json) {
|
|
@@ -72,5 +84,6 @@ function FloorplanGetBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
84
|
'property': value['property'],
|
|
73
85
|
'propertyNode': value['propertyNode'],
|
|
74
86
|
'spaces': (value['spaces'].map(FloorplanGetBodySpace_1.FloorplanGetBodySpaceToJSON)),
|
|
87
|
+
'viewMode': value['viewMode'],
|
|
75
88
|
};
|
|
76
89
|
}
|
|
@@ -16,6 +16,12 @@ import type { FloorplanGetBodySpacePoint } from './FloorplanGetBodySpacePoint';
|
|
|
16
16
|
* @interface FloorplanGetBodySpace
|
|
17
17
|
*/
|
|
18
18
|
export interface FloorplanGetBodySpace {
|
|
19
|
+
/**
|
|
20
|
+
* Height the space ends at in 3D, in the same units as its paths. Absent when the space uses the default heights.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof FloorplanGetBodySpace
|
|
23
|
+
*/
|
|
24
|
+
endHeight?: number;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @type {string}
|
|
@@ -28,6 +34,12 @@ export interface FloorplanGetBodySpace {
|
|
|
28
34
|
* @memberof FloorplanGetBodySpace
|
|
29
35
|
*/
|
|
30
36
|
paths: Array<Array<FloorplanGetBodySpacePoint>>;
|
|
37
|
+
/**
|
|
38
|
+
* Height the space starts at in 3D, in the same units as its paths. Absent when the space uses the default heights.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof FloorplanGetBodySpace
|
|
41
|
+
*/
|
|
42
|
+
startHeight?: number;
|
|
31
43
|
}
|
|
32
44
|
/**
|
|
33
45
|
* Check if a given object implements the FloorplanGetBodySpace interface.
|
|
@@ -36,8 +36,10 @@ function FloorplanGetBodySpaceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
+
'endHeight': json['endHeight'] == null ? undefined : json['endHeight'],
|
|
39
40
|
'location': json['location'],
|
|
40
41
|
'paths': json['paths'],
|
|
42
|
+
'startHeight': json['startHeight'] == null ? undefined : json['startHeight'],
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
function FloorplanGetBodySpaceToJSON(json) {
|
|
@@ -48,7 +50,9 @@ function FloorplanGetBodySpaceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
return value;
|
|
49
51
|
}
|
|
50
52
|
return {
|
|
53
|
+
'endHeight': value['endHeight'],
|
|
51
54
|
'location': value['location'],
|
|
52
55
|
'paths': value['paths'],
|
|
56
|
+
'startHeight': value['startHeight'],
|
|
53
57
|
};
|
|
54
58
|
}
|
|
@@ -65,6 +65,12 @@ export interface FloorplanPatchParamsBody {
|
|
|
65
65
|
* @memberof FloorplanPatchParamsBody
|
|
66
66
|
*/
|
|
67
67
|
spaces?: FloorplanCreateSpaceRepeated;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof FloorplanPatchParamsBody
|
|
72
|
+
*/
|
|
73
|
+
viewMode?: string;
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
70
76
|
* Check if a given object implements the FloorplanPatchParamsBody interface.
|
|
@@ -42,6 +42,7 @@ function FloorplanPatchParamsBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'property': json['property'] == null ? undefined : json['property'],
|
|
43
43
|
'propertyNode': json['propertyNode'] == null ? undefined : json['propertyNode'],
|
|
44
44
|
'spaces': json['spaces'] == null ? undefined : (0, FloorplanCreateSpaceRepeated_1.FloorplanCreateSpaceRepeatedFromJSON)(json['spaces']),
|
|
45
|
+
'viewMode': json['viewMode'] == null ? undefined : json['viewMode'],
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
function FloorplanPatchParamsBodyToJSON(json) {
|
|
@@ -60,5 +61,6 @@ function FloorplanPatchParamsBodyToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
60
61
|
'property': value['property'],
|
|
61
62
|
'propertyNode': value['propertyNode'],
|
|
62
63
|
'spaces': (0, FloorplanCreateSpaceRepeated_1.FloorplanCreateSpaceRepeatedToJSON)(value['spaces']),
|
|
64
|
+
'viewMode': value['viewMode'],
|
|
63
65
|
};
|
|
64
66
|
}
|
|
@@ -46,6 +46,7 @@ function GetDatacollectionResFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'completed': json['completed'],
|
|
47
47
|
'datacollection': (0, DatacollectionChangelogBody_1.DatacollectionChangelogBodyFromJSON)(json['datacollection']),
|
|
48
48
|
'id': json['id'],
|
|
49
|
+
'legacyContributors': json['legacyContributors'] == null ? undefined : json['legacyContributors'],
|
|
49
50
|
'started': json['started'],
|
|
50
51
|
'total': json['total'],
|
|
51
52
|
};
|
|
@@ -61,6 +62,7 @@ function GetDatacollectionResToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
62
|
'completed': value['completed'],
|
|
62
63
|
'datacollection': (0, DatacollectionChangelogBody_1.DatacollectionChangelogBodyToJSON)(value['datacollection']),
|
|
63
64
|
'id': value['id'],
|
|
65
|
+
'legacyContributors': value['legacyContributors'],
|
|
64
66
|
'started': value['started'],
|
|
65
67
|
'total': value['total'],
|
|
66
68
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -146,6 +146,7 @@ export * from './DatacollectionAuthenticationOneOf2';
|
|
|
146
146
|
export * from './DatacollectionAuthenticationOneOf3';
|
|
147
147
|
export * from './DatacollectionBody';
|
|
148
148
|
export * from './DatacollectionChangelogBody';
|
|
149
|
+
export * from './DatacollectionContributor';
|
|
149
150
|
export * from './DatasetAddResponseBody';
|
|
150
151
|
export * from './DatasetChangelogBody';
|
|
151
152
|
export * from './DatasetChangelogData';
|
package/dist/models/index.js
CHANGED
|
@@ -164,6 +164,7 @@ __exportStar(require("./DatacollectionAuthenticationOneOf2"), exports);
|
|
|
164
164
|
__exportStar(require("./DatacollectionAuthenticationOneOf3"), exports);
|
|
165
165
|
__exportStar(require("./DatacollectionBody"), exports);
|
|
166
166
|
__exportStar(require("./DatacollectionChangelogBody"), exports);
|
|
167
|
+
__exportStar(require("./DatacollectionContributor"), exports);
|
|
167
168
|
__exportStar(require("./DatasetAddResponseBody"), exports);
|
|
168
169
|
__exportStar(require("./DatasetChangelogBody"), exports);
|
|
169
170
|
__exportStar(require("./DatasetChangelogData"), exports);
|
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@ export interface ContributionsApiGetDataCollectionsContributionRequest {
|
|
|
51
51
|
*/
|
|
52
52
|
export interface ContributionsApiInterface {
|
|
53
53
|
/**
|
|
54
|
-
* Saves the contributor\'s answers and state for a survey contribution. The body carries the current node, answer data, and completion status; for identified surveys, the server records the contributor\'s anonymisation
|
|
54
|
+
* Saves the contributor\'s answers and state for a survey contribution. The body carries the current node, answer data, and completion status; for identified surveys, the server records the contributor\'s anonymisation nodes when the contribution is completed, from the survey\'s contributor list or, if none was ever uploaded, from the object group named by its authentication mode, and returns `404` if the contribution ID is unknown. Requires the *Edit contribution* permission.
|
|
55
55
|
* @summary Save a contribution
|
|
56
56
|
* @param {string} id
|
|
57
57
|
* @param {string} [datacollectionId] The survey the contribution belongs to. Required when submitting on behalf of an anonymous or public contributor whose contribution ID differs from the survey ID.
|
|
@@ -63,7 +63,7 @@ export interface ContributionsApiInterface {
|
|
|
63
63
|
createDataCollectionsContributionRaw(requestParameters: ContributionsApiCreateDataCollectionsContributionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* Saves the contributor\'s answers and state for a survey contribution. The body carries the current node, answer data, and completion status; for identified surveys, the server records the contributor\'s anonymisation
|
|
66
|
+
* Saves the contributor\'s answers and state for a survey contribution. The body carries the current node, answer data, and completion status; for identified surveys, the server records the contributor\'s anonymisation nodes when the contribution is completed, from the survey\'s contributor list or, if none was ever uploaded, from the object group named by its authentication mode, and returns `404` if the contribution ID is unknown. Requires the *Edit contribution* permission.
|
|
67
67
|
* Save a contribution
|
|
68
68
|
*/
|
|
69
69
|
createDataCollectionsContribution(requestParameters: ContributionsApiCreateDataCollectionsContributionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
@@ -109,7 +109,7 @@ export interface ContributionsApiInterface {
|
|
|
109
109
|
export class ContributionsApi extends runtime.BaseAPI implements ContributionsApiInterface {
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
-
* Saves the contributor\'s answers and state for a survey contribution. The body carries the current node, answer data, and completion status; for identified surveys, the server records the contributor\'s anonymisation
|
|
112
|
+
* Saves the contributor\'s answers and state for a survey contribution. The body carries the current node, answer data, and completion status; for identified surveys, the server records the contributor\'s anonymisation nodes when the contribution is completed, from the survey\'s contributor list or, if none was ever uploaded, from the object group named by its authentication mode, and returns `404` if the contribution ID is unknown. Requires the *Edit contribution* permission.
|
|
113
113
|
* Save a contribution
|
|
114
114
|
*/
|
|
115
115
|
async createDataCollectionsContributionRaw(requestParameters: ContributionsApiCreateDataCollectionsContributionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
|
|
@@ -154,7 +154,7 @@ export class ContributionsApi extends runtime.BaseAPI implements ContributionsAp
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
|
-
* Saves the contributor\'s answers and state for a survey contribution. The body carries the current node, answer data, and completion status; for identified surveys, the server records the contributor\'s anonymisation
|
|
157
|
+
* Saves the contributor\'s answers and state for a survey contribution. The body carries the current node, answer data, and completion status; for identified surveys, the server records the contributor\'s anonymisation nodes when the contribution is completed, from the survey\'s contributor list or, if none was ever uploaded, from the object group named by its authentication mode, and returns `404` if the contribution ID is unknown. Requires the *Edit contribution* permission.
|
|
158
158
|
* Save a contribution
|
|
159
159
|
*/
|
|
160
160
|
async createDataCollectionsContribution(requestParameters: ContributionsApiCreateDataCollectionsContributionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
|