@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
|
@@ -101,7 +101,7 @@ export interface DataCollectionApiInterface {
|
|
|
101
101
|
delete(requestParameters: DataCollectionApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling* permission.
|
|
104
|
+
* Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
|
|
105
105
|
* @summary Get a data collection survey
|
|
106
106
|
* @param {string} id
|
|
107
107
|
* @param {*} [options] Override http request option.
|
|
@@ -111,7 +111,7 @@ export interface DataCollectionApiInterface {
|
|
|
111
111
|
getRaw(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDatacollectionRes>>;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling* permission.
|
|
114
|
+
* Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
|
|
115
115
|
* Get a data collection survey
|
|
116
116
|
*/
|
|
117
117
|
get(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDatacollectionRes>;
|
|
@@ -164,7 +164,7 @@ export interface DataCollectionApiInterface {
|
|
|
164
164
|
list(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDatacollectionListRes>;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* Returns every
|
|
167
|
+
* Returns every contributor of an email or preferred-channel survey, each with their current contribution state and contact details: the survey\'s uploaded contributors or, if none were ever uploaded, the users in the object group named by its authentication mode. Anonymous and public surveys have no contributor list and return an empty list. Requires the *View crowd modelling* permission.
|
|
168
168
|
* @summary List contributors for a survey
|
|
169
169
|
* @param {string} id
|
|
170
170
|
* @param {*} [options] Override http request option.
|
|
@@ -174,13 +174,13 @@ export interface DataCollectionApiInterface {
|
|
|
174
174
|
listContributorsRaw(requestParameters: DataCollectionApiListContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContributionListRes>>;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
|
-
* Returns every
|
|
177
|
+
* Returns every contributor of an email or preferred-channel survey, each with their current contribution state and contact details: the survey\'s uploaded contributors or, if none were ever uploaded, the users in the object group named by its authentication mode. Anonymous and public surveys have no contributor list and return an empty list. Requires the *View crowd modelling* permission.
|
|
178
178
|
* List contributors for a survey
|
|
179
179
|
*/
|
|
180
180
|
listContributors(requestParameters: DataCollectionApiListContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContributionListRes>;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
* Partially updates the survey\'s name, steps, authentication mode, status, and other configurable fields. Only fields present in the request body are changed. Requires the *Configure crowd modelling* permission. Returns 400 if `anonymisationProperty` names a property that does not exist, or that is not a tree property for email or preferred-channel authentication. Also returns 400 if an already-set anonymisation property or authentication mode is changed, or status is moved back to draft, once the survey has left draft; an empty property or mode may still be set.
|
|
183
|
+
* Partially updates the survey\'s name, steps, authentication mode, status, and other configurable fields. Only fields present in the request body are changed. Requires the *Configure crowd modelling* permission. Returns 400 if `anonymisationProperty` names a property that does not exist, or that is not a tree property for email or preferred-channel authentication. Also returns 400 if an already-set anonymisation property or authentication mode is changed, or status is moved back to draft, once the survey has left draft; an empty property or mode may still be set. The object group ID in an email or preferred-channel authentication mode is only locked until contributors have been uploaded. For email or preferred-channel authentication, `contributors` lists each contributor\'s user ID and their nodes on the anonymisation property; a non-empty list replaces the stored one and `clearContributors` empties it. Sending either requires the *Upload data collection contributors* permission as well, and sending both returns 400. Switching a draft to anonymous or public authentication clears its contributors. Returns 400 if contributors are uploaded for anonymous or public authentication, if a contributor is listed twice, is not a user of the account, or names a node that is not on the anonymisation property, if the contributors change or are cleared once the survey has left draft, or if the survey leaves draft without contributors. Also returns 400 if the stored survey, contributors included, would exceed 300 KiB; at one node ID per contributor that is roughly 5,000 contributors. A survey that leaves draft without ever having had contributors uploaded takes them from the object group named by its authentication mode, if any.
|
|
184
184
|
* @summary Update a data collection survey
|
|
185
185
|
* @param {string} id
|
|
186
186
|
* @param {DatacollectionBody} [datacollectionBody]
|
|
@@ -191,7 +191,7 @@ export interface DataCollectionApiInterface {
|
|
|
191
191
|
updateRaw(requestParameters: DataCollectionApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
* Partially updates the survey\'s name, steps, authentication mode, status, and other configurable fields. Only fields present in the request body are changed. Requires the *Configure crowd modelling* permission. Returns 400 if `anonymisationProperty` names a property that does not exist, or that is not a tree property for email or preferred-channel authentication. Also returns 400 if an already-set anonymisation property or authentication mode is changed, or status is moved back to draft, once the survey has left draft; an empty property or mode may still be set.
|
|
194
|
+
* Partially updates the survey\'s name, steps, authentication mode, status, and other configurable fields. Only fields present in the request body are changed. Requires the *Configure crowd modelling* permission. Returns 400 if `anonymisationProperty` names a property that does not exist, or that is not a tree property for email or preferred-channel authentication. Also returns 400 if an already-set anonymisation property or authentication mode is changed, or status is moved back to draft, once the survey has left draft; an empty property or mode may still be set. The object group ID in an email or preferred-channel authentication mode is only locked until contributors have been uploaded. For email or preferred-channel authentication, `contributors` lists each contributor\'s user ID and their nodes on the anonymisation property; a non-empty list replaces the stored one and `clearContributors` empties it. Sending either requires the *Upload data collection contributors* permission as well, and sending both returns 400. Switching a draft to anonymous or public authentication clears its contributors. Returns 400 if contributors are uploaded for anonymous or public authentication, if a contributor is listed twice, is not a user of the account, or names a node that is not on the anonymisation property, if the contributors change or are cleared once the survey has left draft, or if the survey leaves draft without contributors. Also returns 400 if the stored survey, contributors included, would exceed 300 KiB; at one node ID per contributor that is roughly 5,000 contributors. A survey that leaves draft without ever having had contributors uploaded takes them from the object group named by its authentication mode, if any.
|
|
195
195
|
* Update a data collection survey
|
|
196
196
|
*/
|
|
197
197
|
update(requestParameters: DataCollectionApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
@@ -290,7 +290,7 @@ export class DataCollectionApi extends runtime.BaseAPI implements DataCollection
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
/**
|
|
293
|
-
* Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling* permission.
|
|
293
|
+
* Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
|
|
294
294
|
* Get a data collection survey
|
|
295
295
|
*/
|
|
296
296
|
async getRaw(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetDatacollectionRes>> {
|
|
@@ -328,7 +328,7 @@ export class DataCollectionApi extends runtime.BaseAPI implements DataCollection
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
/**
|
|
331
|
-
* Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling* permission.
|
|
331
|
+
* Returns the survey and a summary of contribution progress: how many contributors have started, completed, and the total invited. Requires the *View crowd modelling*, *View data collection preview* or *View public data collection* permission; drafts need one of the first two. Callers without *View crowd modelling* receive the survey without its `contributors` list or progress counts. For an email or preferred-channel survey whose contributors were never uploaded, `legacyContributors` counts the contributors it takes from the object group named by its authentication mode.
|
|
332
332
|
* Get a data collection survey
|
|
333
333
|
*/
|
|
334
334
|
async get(requestParameters: DataCollectionApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetDatacollectionRes> {
|
|
@@ -478,7 +478,7 @@ export class DataCollectionApi extends runtime.BaseAPI implements DataCollection
|
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
/**
|
|
481
|
-
* Returns every
|
|
481
|
+
* Returns every contributor of an email or preferred-channel survey, each with their current contribution state and contact details: the survey\'s uploaded contributors or, if none were ever uploaded, the users in the object group named by its authentication mode. Anonymous and public surveys have no contributor list and return an empty list. Requires the *View crowd modelling* permission.
|
|
482
482
|
* List contributors for a survey
|
|
483
483
|
*/
|
|
484
484
|
async listContributorsRaw(requestParameters: DataCollectionApiListContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContributionListRes>> {
|
|
@@ -516,7 +516,7 @@ export class DataCollectionApi extends runtime.BaseAPI implements DataCollection
|
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
/**
|
|
519
|
-
* Returns every
|
|
519
|
+
* Returns every contributor of an email or preferred-channel survey, each with their current contribution state and contact details: the survey\'s uploaded contributors or, if none were ever uploaded, the users in the object group named by its authentication mode. Anonymous and public surveys have no contributor list and return an empty list. Requires the *View crowd modelling* permission.
|
|
520
520
|
* List contributors for a survey
|
|
521
521
|
*/
|
|
522
522
|
async listContributors(requestParameters: DataCollectionApiListContributorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContributionListRes> {
|
|
@@ -525,7 +525,7 @@ export class DataCollectionApi extends runtime.BaseAPI implements DataCollection
|
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
/**
|
|
528
|
-
* Partially updates the survey\'s name, steps, authentication mode, status, and other configurable fields. Only fields present in the request body are changed. Requires the *Configure crowd modelling* permission. Returns 400 if `anonymisationProperty` names a property that does not exist, or that is not a tree property for email or preferred-channel authentication. Also returns 400 if an already-set anonymisation property or authentication mode is changed, or status is moved back to draft, once the survey has left draft; an empty property or mode may still be set.
|
|
528
|
+
* Partially updates the survey\'s name, steps, authentication mode, status, and other configurable fields. Only fields present in the request body are changed. Requires the *Configure crowd modelling* permission. Returns 400 if `anonymisationProperty` names a property that does not exist, or that is not a tree property for email or preferred-channel authentication. Also returns 400 if an already-set anonymisation property or authentication mode is changed, or status is moved back to draft, once the survey has left draft; an empty property or mode may still be set. The object group ID in an email or preferred-channel authentication mode is only locked until contributors have been uploaded. For email or preferred-channel authentication, `contributors` lists each contributor\'s user ID and their nodes on the anonymisation property; a non-empty list replaces the stored one and `clearContributors` empties it. Sending either requires the *Upload data collection contributors* permission as well, and sending both returns 400. Switching a draft to anonymous or public authentication clears its contributors. Returns 400 if contributors are uploaded for anonymous or public authentication, if a contributor is listed twice, is not a user of the account, or names a node that is not on the anonymisation property, if the contributors change or are cleared once the survey has left draft, or if the survey leaves draft without contributors. Also returns 400 if the stored survey, contributors included, would exceed 300 KiB; at one node ID per contributor that is roughly 5,000 contributors. A survey that leaves draft without ever having had contributors uploaded takes them from the object group named by its authentication mode, if any.
|
|
529
529
|
* Update a data collection survey
|
|
530
530
|
*/
|
|
531
531
|
async updateRaw(requestParameters: DataCollectionApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
|
|
@@ -566,7 +566,7 @@ export class DataCollectionApi extends runtime.BaseAPI implements DataCollection
|
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
/**
|
|
569
|
-
* Partially updates the survey\'s name, steps, authentication mode, status, and other configurable fields. Only fields present in the request body are changed. Requires the *Configure crowd modelling* permission. Returns 400 if `anonymisationProperty` names a property that does not exist, or that is not a tree property for email or preferred-channel authentication. Also returns 400 if an already-set anonymisation property or authentication mode is changed, or status is moved back to draft, once the survey has left draft; an empty property or mode may still be set.
|
|
569
|
+
* Partially updates the survey\'s name, steps, authentication mode, status, and other configurable fields. Only fields present in the request body are changed. Requires the *Configure crowd modelling* permission. Returns 400 if `anonymisationProperty` names a property that does not exist, or that is not a tree property for email or preferred-channel authentication. Also returns 400 if an already-set anonymisation property or authentication mode is changed, or status is moved back to draft, once the survey has left draft; an empty property or mode may still be set. The object group ID in an email or preferred-channel authentication mode is only locked until contributors have been uploaded. For email or preferred-channel authentication, `contributors` lists each contributor\'s user ID and their nodes on the anonymisation property; a non-empty list replaces the stored one and `clearContributors` empties it. Sending either requires the *Upload data collection contributors* permission as well, and sending both returns 400. Switching a draft to anonymous or public authentication clears its contributors. Returns 400 if contributors are uploaded for anonymous or public authentication, if a contributor is listed twice, is not a user of the account, or names a node that is not on the anonymisation property, if the contributors change or are cleared once the survey has left draft, or if the survey leaves draft without contributors. Also returns 400 if the stored survey, contributors included, would exceed 300 KiB; at one node ID per contributor that is roughly 5,000 contributors. A survey that leaves draft without ever having had contributors uploaded takes them from the object group named by its authentication mode, if any.
|
|
570
570
|
* Update a data collection survey
|
|
571
571
|
*/
|
|
572
572
|
async update(requestParameters: DataCollectionApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
|
|
@@ -104,7 +104,7 @@ export interface FloorPlansApiInterface {
|
|
|
104
104
|
delete(requestParameters: FloorPlansApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
* Returns the floor plan\'s metadata, space overlay geometry, and image offset. Returns an empty body (not 404) when the floor plan does not exist. Use `GET /v1/floorplans/{id}/images/{imageType}` to retrieve the drawing image. Requires the *View floorplans* permission.
|
|
107
|
+
* Returns the floor plan\'s metadata, view mode, space overlay geometry with each space\'s 3D heights, and image offset. Returns an empty body (not 404) when the floor plan does not exist. Use `GET /v1/floorplans/{id}/images/{imageType}` to retrieve the drawing image. Requires the *View floorplans* permission.
|
|
108
108
|
* @summary Get a floor plan
|
|
109
109
|
* @param {string} id
|
|
110
110
|
* @param {*} [options] Override http request option.
|
|
@@ -114,7 +114,7 @@ export interface FloorPlansApiInterface {
|
|
|
114
114
|
getRaw(requestParameters: FloorPlansApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FloorplanGetBody>>;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
|
-
* Returns the floor plan\'s metadata, space overlay geometry, and image offset. Returns an empty body (not 404) when the floor plan does not exist. Use `GET /v1/floorplans/{id}/images/{imageType}` to retrieve the drawing image. Requires the *View floorplans* permission.
|
|
117
|
+
* Returns the floor plan\'s metadata, view mode, space overlay geometry with each space\'s 3D heights, and image offset. Returns an empty body (not 404) when the floor plan does not exist. Use `GET /v1/floorplans/{id}/images/{imageType}` to retrieve the drawing image. Requires the *View floorplans* permission.
|
|
118
118
|
* Get a floor plan
|
|
119
119
|
*/
|
|
120
120
|
get(requestParameters: FloorPlansApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FloorplanGetBody>;
|
|
@@ -153,7 +153,7 @@ export interface FloorPlansApiInterface {
|
|
|
153
153
|
list(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FloorplanBrief>>;
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
|
-
* Partially updates the floor plan\'s name, linked property and node, creation timestamp, image overlay offset, background and foreground images, and space geometry. Only fields present in the request body are changed, and the request fails with `409` if the floor plan keeps changing while they are. When `spaces` is provided the entire space overlay is replaced. Requires the *Edit floorplans* permission. `backgroundFile` and `foregroundFile` take the ID of an image in the account\'s file storage (see `/v1/account/files`), or an empty string to remove the layer\'s image; choosing a file also requires the *View file storage* permission. The file must be a PNG, JPEG, GIF, WebP or SVG image of at most 4 MB that is not quarantined, otherwise the request fails with `422` (`403` when quarantined) and nothing is changed. Setting or removing a layer\'s file also deletes any image previously uploaded to that layer through `PUT /v1/floorplans/{id}/images/{imageType}`.
|
|
156
|
+
* Partially updates the floor plan\'s name, linked property and node, creation timestamp, image overlay offset, background and foreground images, view mode, and space geometry. Only fields present in the request body are changed, and the request fails with `409` if the floor plan keeps changing while they are. When `spaces` is provided the entire space overlay is replaced. `viewMode` is one of `2d-and-3d`, `3d-only` or `2d-only`. A space\'s `startHeight` and `endHeight` are in the same units as its paths, must be set together and the end must be above the start; a space without them is drawn at a default height scaled to the floor plan. Requires the *Edit floorplans* permission. `backgroundFile` and `foregroundFile` take the ID of an image in the account\'s file storage (see `/v1/account/files`), or an empty string to remove the layer\'s image; choosing a file also requires the *View file storage* permission. The file must be a PNG, JPEG, GIF, WebP or SVG image of at most 4 MB that is not quarantined, otherwise the request fails with `422` (`403` when quarantined) and nothing is changed. Setting or removing a layer\'s file also deletes any image previously uploaded to that layer through `PUT /v1/floorplans/{id}/images/{imageType}`.
|
|
157
157
|
* @summary Update a floor plan
|
|
158
158
|
* @param {string} id
|
|
159
159
|
* @param {FloorplanPatchParamsBody} [floorplanPatchParamsBody]
|
|
@@ -164,7 +164,7 @@ export interface FloorPlansApiInterface {
|
|
|
164
164
|
updateRaw(requestParameters: FloorPlansApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
* Partially updates the floor plan\'s name, linked property and node, creation timestamp, image overlay offset, background and foreground images, and space geometry. Only fields present in the request body are changed, and the request fails with `409` if the floor plan keeps changing while they are. When `spaces` is provided the entire space overlay is replaced. Requires the *Edit floorplans* permission. `backgroundFile` and `foregroundFile` take the ID of an image in the account\'s file storage (see `/v1/account/files`), or an empty string to remove the layer\'s image; choosing a file also requires the *View file storage* permission. The file must be a PNG, JPEG, GIF, WebP or SVG image of at most 4 MB that is not quarantined, otherwise the request fails with `422` (`403` when quarantined) and nothing is changed. Setting or removing a layer\'s file also deletes any image previously uploaded to that layer through `PUT /v1/floorplans/{id}/images/{imageType}`.
|
|
167
|
+
* Partially updates the floor plan\'s name, linked property and node, creation timestamp, image overlay offset, background and foreground images, view mode, and space geometry. Only fields present in the request body are changed, and the request fails with `409` if the floor plan keeps changing while they are. When `spaces` is provided the entire space overlay is replaced. `viewMode` is one of `2d-and-3d`, `3d-only` or `2d-only`. A space\'s `startHeight` and `endHeight` are in the same units as its paths, must be set together and the end must be above the start; a space without them is drawn at a default height scaled to the floor plan. Requires the *Edit floorplans* permission. `backgroundFile` and `foregroundFile` take the ID of an image in the account\'s file storage (see `/v1/account/files`), or an empty string to remove the layer\'s image; choosing a file also requires the *View file storage* permission. The file must be a PNG, JPEG, GIF, WebP or SVG image of at most 4 MB that is not quarantined, otherwise the request fails with `422` (`403` when quarantined) and nothing is changed. Setting or removing a layer\'s file also deletes any image previously uploaded to that layer through `PUT /v1/floorplans/{id}/images/{imageType}`.
|
|
168
168
|
* Update a floor plan
|
|
169
169
|
*/
|
|
170
170
|
update(requestParameters: FloorPlansApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
|
|
@@ -296,7 +296,7 @@ export class FloorPlansApi extends runtime.BaseAPI implements FloorPlansApiInter
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
|
-
* Returns the floor plan\'s metadata, space overlay geometry, and image offset. Returns an empty body (not 404) when the floor plan does not exist. Use `GET /v1/floorplans/{id}/images/{imageType}` to retrieve the drawing image. Requires the *View floorplans* permission.
|
|
299
|
+
* Returns the floor plan\'s metadata, view mode, space overlay geometry with each space\'s 3D heights, and image offset. Returns an empty body (not 404) when the floor plan does not exist. Use `GET /v1/floorplans/{id}/images/{imageType}` to retrieve the drawing image. Requires the *View floorplans* permission.
|
|
300
300
|
* Get a floor plan
|
|
301
301
|
*/
|
|
302
302
|
async getRaw(requestParameters: FloorPlansApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FloorplanGetBody>> {
|
|
@@ -334,7 +334,7 @@ export class FloorPlansApi extends runtime.BaseAPI implements FloorPlansApiInter
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
/**
|
|
337
|
-
* Returns the floor plan\'s metadata, space overlay geometry, and image offset. Returns an empty body (not 404) when the floor plan does not exist. Use `GET /v1/floorplans/{id}/images/{imageType}` to retrieve the drawing image. Requires the *View floorplans* permission.
|
|
337
|
+
* Returns the floor plan\'s metadata, view mode, space overlay geometry with each space\'s 3D heights, and image offset. Returns an empty body (not 404) when the floor plan does not exist. Use `GET /v1/floorplans/{id}/images/{imageType}` to retrieve the drawing image. Requires the *View floorplans* permission.
|
|
338
338
|
* Get a floor plan
|
|
339
339
|
*/
|
|
340
340
|
async get(requestParameters: FloorPlansApiGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FloorplanGetBody> {
|
|
@@ -445,7 +445,7 @@ export class FloorPlansApi extends runtime.BaseAPI implements FloorPlansApiInter
|
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
/**
|
|
448
|
-
* Partially updates the floor plan\'s name, linked property and node, creation timestamp, image overlay offset, background and foreground images, and space geometry. Only fields present in the request body are changed, and the request fails with `409` if the floor plan keeps changing while they are. When `spaces` is provided the entire space overlay is replaced. Requires the *Edit floorplans* permission. `backgroundFile` and `foregroundFile` take the ID of an image in the account\'s file storage (see `/v1/account/files`), or an empty string to remove the layer\'s image; choosing a file also requires the *View file storage* permission. The file must be a PNG, JPEG, GIF, WebP or SVG image of at most 4 MB that is not quarantined, otherwise the request fails with `422` (`403` when quarantined) and nothing is changed. Setting or removing a layer\'s file also deletes any image previously uploaded to that layer through `PUT /v1/floorplans/{id}/images/{imageType}`.
|
|
448
|
+
* Partially updates the floor plan\'s name, linked property and node, creation timestamp, image overlay offset, background and foreground images, view mode, and space geometry. Only fields present in the request body are changed, and the request fails with `409` if the floor plan keeps changing while they are. When `spaces` is provided the entire space overlay is replaced. `viewMode` is one of `2d-and-3d`, `3d-only` or `2d-only`. A space\'s `startHeight` and `endHeight` are in the same units as its paths, must be set together and the end must be above the start; a space without them is drawn at a default height scaled to the floor plan. Requires the *Edit floorplans* permission. `backgroundFile` and `foregroundFile` take the ID of an image in the account\'s file storage (see `/v1/account/files`), or an empty string to remove the layer\'s image; choosing a file also requires the *View file storage* permission. The file must be a PNG, JPEG, GIF, WebP or SVG image of at most 4 MB that is not quarantined, otherwise the request fails with `422` (`403` when quarantined) and nothing is changed. Setting or removing a layer\'s file also deletes any image previously uploaded to that layer through `PUT /v1/floorplans/{id}/images/{imageType}`.
|
|
449
449
|
* Update a floor plan
|
|
450
450
|
*/
|
|
451
451
|
async updateRaw(requestParameters: FloorPlansApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
|
|
@@ -486,7 +486,7 @@ export class FloorPlansApi extends runtime.BaseAPI implements FloorPlansApiInter
|
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
|
-
* Partially updates the floor plan\'s name, linked property and node, creation timestamp, image overlay offset, background and foreground images, and space geometry. Only fields present in the request body are changed, and the request fails with `409` if the floor plan keeps changing while they are. When `spaces` is provided the entire space overlay is replaced. Requires the *Edit floorplans* permission. `backgroundFile` and `foregroundFile` take the ID of an image in the account\'s file storage (see `/v1/account/files`), or an empty string to remove the layer\'s image; choosing a file also requires the *View file storage* permission. The file must be a PNG, JPEG, GIF, WebP or SVG image of at most 4 MB that is not quarantined, otherwise the request fails with `422` (`403` when quarantined) and nothing is changed. Setting or removing a layer\'s file also deletes any image previously uploaded to that layer through `PUT /v1/floorplans/{id}/images/{imageType}`.
|
|
489
|
+
* Partially updates the floor plan\'s name, linked property and node, creation timestamp, image overlay offset, background and foreground images, view mode, and space geometry. Only fields present in the request body are changed, and the request fails with `409` if the floor plan keeps changing while they are. When `spaces` is provided the entire space overlay is replaced. `viewMode` is one of `2d-and-3d`, `3d-only` or `2d-only`. A space\'s `startHeight` and `endHeight` are in the same units as its paths, must be set together and the end must be above the start; a space without them is drawn at a default height scaled to the floor plan. Requires the *Edit floorplans* permission. `backgroundFile` and `foregroundFile` take the ID of an image in the account\'s file storage (see `/v1/account/files`), or an empty string to remove the layer\'s image; choosing a file also requires the *View file storage* permission. The file must be a PNG, JPEG, GIF, WebP or SVG image of at most 4 MB that is not quarantined, otherwise the request fails with `422` (`403` when quarantined) and nothing is changed. Setting or removing a layer\'s file also deletes any image previously uploaded to that layer through `PUT /v1/floorplans/{id}/images/{imageType}`.
|
|
490
490
|
* Update a floor plan
|
|
491
491
|
*/
|
|
492
492
|
async update(requestParameters: FloorPlansApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
DatacollectionAuthenticationToJSON,
|
|
21
21
|
DatacollectionAuthenticationToJSONTyped,
|
|
22
22
|
} from './DatacollectionAuthentication';
|
|
23
|
+
import type { DatacollectionContributor } from './DatacollectionContributor';
|
|
24
|
+
import {
|
|
25
|
+
DatacollectionContributorFromJSON,
|
|
26
|
+
DatacollectionContributorFromJSONTyped,
|
|
27
|
+
DatacollectionContributorToJSON,
|
|
28
|
+
DatacollectionContributorToJSONTyped,
|
|
29
|
+
} from './DatacollectionContributor';
|
|
23
30
|
import type { Step } from './Step';
|
|
24
31
|
import {
|
|
25
32
|
StepFromJSON,
|
|
@@ -46,6 +53,12 @@ export interface DatacollectionBody {
|
|
|
46
53
|
* @memberof DatacollectionBody
|
|
47
54
|
*/
|
|
48
55
|
authenticationMode?: DatacollectionAuthentication;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof DatacollectionBody
|
|
60
|
+
*/
|
|
61
|
+
clearContributors?: boolean;
|
|
49
62
|
/**
|
|
50
63
|
*
|
|
51
64
|
* @type {boolean}
|
|
@@ -58,6 +71,12 @@ export interface DatacollectionBody {
|
|
|
58
71
|
* @memberof DatacollectionBody
|
|
59
72
|
*/
|
|
60
73
|
completeMessage?: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Array<DatacollectionContributor>}
|
|
77
|
+
* @memberof DatacollectionBody
|
|
78
|
+
*/
|
|
79
|
+
contributors?: Array<DatacollectionContributor>;
|
|
61
80
|
/**
|
|
62
81
|
*
|
|
63
82
|
* @type {boolean}
|
|
@@ -155,8 +174,10 @@ export function DatacollectionBodyFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
155
174
|
|
|
156
175
|
'anonymisationProperty': json['anonymisationProperty'] == null ? undefined : json['anonymisationProperty'],
|
|
157
176
|
'authenticationMode': json['authenticationMode'] == null ? undefined : DatacollectionAuthenticationFromJSON(json['authenticationMode']),
|
|
177
|
+
'clearContributors': json['clearContributors'] == null ? undefined : json['clearContributors'],
|
|
158
178
|
'clearSteps': json['clearSteps'],
|
|
159
179
|
'completeMessage': json['completeMessage'] == null ? undefined : json['completeMessage'],
|
|
180
|
+
'contributors': json['contributors'] == null ? undefined : ((json['contributors'] as Array<any>).map(DatacollectionContributorFromJSON)),
|
|
160
181
|
'delete': json['delete'],
|
|
161
182
|
'description': json['description'] == null ? undefined : json['description'],
|
|
162
183
|
'end': json['end'] == null ? undefined : json['end'],
|
|
@@ -185,8 +206,10 @@ export function DatacollectionBodyToJSONTyped(value?: DatacollectionBody | null,
|
|
|
185
206
|
|
|
186
207
|
'anonymisationProperty': value['anonymisationProperty'],
|
|
187
208
|
'authenticationMode': DatacollectionAuthenticationToJSON(value['authenticationMode']),
|
|
209
|
+
'clearContributors': value['clearContributors'],
|
|
188
210
|
'clearSteps': value['clearSteps'],
|
|
189
211
|
'completeMessage': value['completeMessage'],
|
|
212
|
+
'contributors': value['contributors'] == null ? undefined : ((value['contributors'] as Array<any>).map(DatacollectionContributorToJSON)),
|
|
190
213
|
'delete': value['delete'],
|
|
191
214
|
'description': value['description'],
|
|
192
215
|
'end': value['end'],
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
DatacollectionAuthenticationToJSON,
|
|
21
21
|
DatacollectionAuthenticationToJSONTyped,
|
|
22
22
|
} from './DatacollectionAuthentication';
|
|
23
|
+
import type { DatacollectionContributor } from './DatacollectionContributor';
|
|
24
|
+
import {
|
|
25
|
+
DatacollectionContributorFromJSON,
|
|
26
|
+
DatacollectionContributorFromJSONTyped,
|
|
27
|
+
DatacollectionContributorToJSON,
|
|
28
|
+
DatacollectionContributorToJSONTyped,
|
|
29
|
+
} from './DatacollectionContributor';
|
|
23
30
|
import type { Step } from './Step';
|
|
24
31
|
import {
|
|
25
32
|
StepFromJSON,
|
|
@@ -52,6 +59,18 @@ export interface DatacollectionChangelogBody {
|
|
|
52
59
|
* @memberof DatacollectionChangelogBody
|
|
53
60
|
*/
|
|
54
61
|
completeMessage: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<DatacollectionContributor>}
|
|
65
|
+
* @memberof DatacollectionChangelogBody
|
|
66
|
+
*/
|
|
67
|
+
contributors: Array<DatacollectionContributor>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof DatacollectionChangelogBody
|
|
72
|
+
*/
|
|
73
|
+
contributorsUploaded: boolean;
|
|
55
74
|
/**
|
|
56
75
|
*
|
|
57
76
|
* @type {string}
|
|
@@ -121,6 +140,8 @@ export function instanceOfDatacollectionChangelogBody(value: object): value is D
|
|
|
121
140
|
if (!('anonymisationProperty' in value) || value['anonymisationProperty'] === undefined) return false;
|
|
122
141
|
if (!('authenticationMode' in value) || value['authenticationMode'] === undefined) return false;
|
|
123
142
|
if (!('completeMessage' in value) || value['completeMessage'] === undefined) return false;
|
|
143
|
+
if (!('contributors' in value) || value['contributors'] === undefined) return false;
|
|
144
|
+
if (!('contributorsUploaded' in value) || value['contributorsUploaded'] === undefined) return false;
|
|
124
145
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
125
146
|
if (!('end' in value) || value['end'] === undefined) return false;
|
|
126
147
|
if (!('inviteMessage' in value) || value['inviteMessage'] === undefined) return false;
|
|
@@ -147,6 +168,8 @@ export function DatacollectionChangelogBodyFromJSONTyped(json: any, ignoreDiscri
|
|
|
147
168
|
'anonymisationProperty': json['anonymisationProperty'],
|
|
148
169
|
'authenticationMode': DatacollectionAuthenticationFromJSON(json['authenticationMode']),
|
|
149
170
|
'completeMessage': json['completeMessage'],
|
|
171
|
+
'contributors': ((json['contributors'] as Array<any>).map(DatacollectionContributorFromJSON)),
|
|
172
|
+
'contributorsUploaded': json['contributorsUploaded'],
|
|
150
173
|
'description': json['description'],
|
|
151
174
|
'end': json['end'],
|
|
152
175
|
'inviteMessage': json['inviteMessage'],
|
|
@@ -174,6 +197,8 @@ export function DatacollectionChangelogBodyToJSONTyped(value?: DatacollectionCha
|
|
|
174
197
|
'anonymisationProperty': value['anonymisationProperty'],
|
|
175
198
|
'authenticationMode': DatacollectionAuthenticationToJSON(value['authenticationMode']),
|
|
176
199
|
'completeMessage': value['completeMessage'],
|
|
200
|
+
'contributors': ((value['contributors'] as Array<any>).map(DatacollectionContributorToJSON)),
|
|
201
|
+
'contributorsUploaded': value['contributorsUploaded'],
|
|
177
202
|
'description': value['description'],
|
|
178
203
|
'end': value['end'],
|
|
179
204
|
'inviteMessage': value['inviteMessage'],
|
|
@@ -0,0 +1,75 @@
|
|
|
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 DatacollectionContributor
|
|
20
|
+
*/
|
|
21
|
+
export interface DatacollectionContributor {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof DatacollectionContributor
|
|
26
|
+
*/
|
|
27
|
+
nodes: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DatacollectionContributor
|
|
32
|
+
*/
|
|
33
|
+
user: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the DatacollectionContributor interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDatacollectionContributor(value: object): value is DatacollectionContributor {
|
|
40
|
+
if (!('nodes' in value) || value['nodes'] === undefined) return false;
|
|
41
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DatacollectionContributorFromJSON(json: any): DatacollectionContributor {
|
|
46
|
+
return DatacollectionContributorFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DatacollectionContributorFromJSONTyped(json: any, ignoreDiscriminator: boolean): DatacollectionContributor {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'nodes': json['nodes'],
|
|
56
|
+
'user': json['user'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DatacollectionContributorToJSON(json: any): DatacollectionContributor {
|
|
61
|
+
return DatacollectionContributorToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function DatacollectionContributorToJSONTyped(value?: DatacollectionContributor | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'nodes': value['nodes'],
|
|
72
|
+
'user': value['user'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -27,6 +27,12 @@ import {
|
|
|
27
27
|
* @interface FloorplanCreateSpace
|
|
28
28
|
*/
|
|
29
29
|
export interface FloorplanCreateSpace {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof FloorplanCreateSpace
|
|
34
|
+
*/
|
|
35
|
+
endHeight?: number;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -39,6 +45,12 @@ export interface FloorplanCreateSpace {
|
|
|
39
45
|
* @memberof FloorplanCreateSpace
|
|
40
46
|
*/
|
|
41
47
|
paths: Array<FloorplanSpaceChangelogPath>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof FloorplanCreateSpace
|
|
52
|
+
*/
|
|
53
|
+
startHeight?: number;
|
|
42
54
|
}
|
|
43
55
|
|
|
44
56
|
/**
|
|
@@ -60,8 +72,10 @@ export function FloorplanCreateSpaceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
60
72
|
}
|
|
61
73
|
return {
|
|
62
74
|
|
|
75
|
+
'endHeight': json['endHeight'] == null ? undefined : json['endHeight'],
|
|
63
76
|
'location': json['location'],
|
|
64
77
|
'paths': ((json['paths'] as Array<any>).map(FloorplanSpaceChangelogPathFromJSON)),
|
|
78
|
+
'startHeight': json['startHeight'] == null ? undefined : json['startHeight'],
|
|
65
79
|
};
|
|
66
80
|
}
|
|
67
81
|
|
|
@@ -76,8 +90,10 @@ export function FloorplanCreateSpaceToJSONTyped(value?: FloorplanCreateSpace | n
|
|
|
76
90
|
|
|
77
91
|
return {
|
|
78
92
|
|
|
93
|
+
'endHeight': value['endHeight'],
|
|
79
94
|
'location': value['location'],
|
|
80
95
|
'paths': ((value['paths'] as Array<any>).map(FloorplanSpaceChangelogPathToJSON)),
|
|
96
|
+
'startHeight': value['startHeight'],
|
|
81
97
|
};
|
|
82
98
|
}
|
|
83
99
|
|
|
@@ -82,8 +82,26 @@ export interface FloorplanGetBody {
|
|
|
82
82
|
* @memberof FloorplanGetBody
|
|
83
83
|
*/
|
|
84
84
|
spaces: Array<FloorplanGetBodySpace>;
|
|
85
|
+
/**
|
|
86
|
+
* Whether the floor plan can be shown in 2D, in 3D, or both. Defaults to 2d-and-3d.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof FloorplanGetBody
|
|
89
|
+
*/
|
|
90
|
+
viewMode: FloorplanGetBodyViewModeEnum;
|
|
85
91
|
}
|
|
86
92
|
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export const FloorplanGetBodyViewModeEnum = {
|
|
98
|
+
_2dAnd3d: '2d-and-3d',
|
|
99
|
+
_3dOnly: '3d-only',
|
|
100
|
+
_2dOnly: '2d-only'
|
|
101
|
+
} as const;
|
|
102
|
+
export type FloorplanGetBodyViewModeEnum = typeof FloorplanGetBodyViewModeEnum[keyof typeof FloorplanGetBodyViewModeEnum];
|
|
103
|
+
|
|
104
|
+
|
|
87
105
|
/**
|
|
88
106
|
* Check if a given object implements the FloorplanGetBody interface.
|
|
89
107
|
*/
|
|
@@ -94,6 +112,7 @@ export function instanceOfFloorplanGetBody(value: object): value is FloorplanGet
|
|
|
94
112
|
if (!('property' in value) || value['property'] === undefined) return false;
|
|
95
113
|
if (!('propertyNode' in value) || value['propertyNode'] === undefined) return false;
|
|
96
114
|
if (!('spaces' in value) || value['spaces'] === undefined) return false;
|
|
115
|
+
if (!('viewMode' in value) || value['viewMode'] === undefined) return false;
|
|
97
116
|
return true;
|
|
98
117
|
}
|
|
99
118
|
|
|
@@ -115,6 +134,7 @@ export function FloorplanGetBodyFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
115
134
|
'property': json['property'],
|
|
116
135
|
'propertyNode': json['propertyNode'],
|
|
117
136
|
'spaces': ((json['spaces'] as Array<any>).map(FloorplanGetBodySpaceFromJSON)),
|
|
137
|
+
'viewMode': json['viewMode'],
|
|
118
138
|
};
|
|
119
139
|
}
|
|
120
140
|
|
|
@@ -137,6 +157,7 @@ export function FloorplanGetBodyToJSONTyped(value?: FloorplanGetBody | null, ign
|
|
|
137
157
|
'property': value['property'],
|
|
138
158
|
'propertyNode': value['propertyNode'],
|
|
139
159
|
'spaces': ((value['spaces'] as Array<any>).map(FloorplanGetBodySpaceToJSON)),
|
|
160
|
+
'viewMode': value['viewMode'],
|
|
140
161
|
};
|
|
141
162
|
}
|
|
142
163
|
|
|
@@ -27,6 +27,12 @@ import {
|
|
|
27
27
|
* @interface FloorplanGetBodySpace
|
|
28
28
|
*/
|
|
29
29
|
export interface FloorplanGetBodySpace {
|
|
30
|
+
/**
|
|
31
|
+
* Height the space ends at in 3D, in the same units as its paths. Absent when the space uses the default heights.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof FloorplanGetBodySpace
|
|
34
|
+
*/
|
|
35
|
+
endHeight?: number;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -39,6 +45,12 @@ export interface FloorplanGetBodySpace {
|
|
|
39
45
|
* @memberof FloorplanGetBodySpace
|
|
40
46
|
*/
|
|
41
47
|
paths: Array<Array<FloorplanGetBodySpacePoint>>;
|
|
48
|
+
/**
|
|
49
|
+
* Height the space starts at in 3D, in the same units as its paths. Absent when the space uses the default heights.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof FloorplanGetBodySpace
|
|
52
|
+
*/
|
|
53
|
+
startHeight?: number;
|
|
42
54
|
}
|
|
43
55
|
|
|
44
56
|
/**
|
|
@@ -60,8 +72,10 @@ export function FloorplanGetBodySpaceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
60
72
|
}
|
|
61
73
|
return {
|
|
62
74
|
|
|
75
|
+
'endHeight': json['endHeight'] == null ? undefined : json['endHeight'],
|
|
63
76
|
'location': json['location'],
|
|
64
77
|
'paths': json['paths'],
|
|
78
|
+
'startHeight': json['startHeight'] == null ? undefined : json['startHeight'],
|
|
65
79
|
};
|
|
66
80
|
}
|
|
67
81
|
|
|
@@ -76,8 +90,10 @@ export function FloorplanGetBodySpaceToJSONTyped(value?: FloorplanGetBodySpace |
|
|
|
76
90
|
|
|
77
91
|
return {
|
|
78
92
|
|
|
93
|
+
'endHeight': value['endHeight'],
|
|
79
94
|
'location': value['location'],
|
|
80
95
|
'paths': value['paths'],
|
|
96
|
+
'startHeight': value['startHeight'],
|
|
81
97
|
};
|
|
82
98
|
}
|
|
83
99
|
|
|
@@ -82,6 +82,12 @@ export interface FloorplanPatchParamsBody {
|
|
|
82
82
|
* @memberof FloorplanPatchParamsBody
|
|
83
83
|
*/
|
|
84
84
|
spaces?: FloorplanCreateSpaceRepeated;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof FloorplanPatchParamsBody
|
|
89
|
+
*/
|
|
90
|
+
viewMode?: string;
|
|
85
91
|
}
|
|
86
92
|
|
|
87
93
|
/**
|
|
@@ -109,6 +115,7 @@ export function FloorplanPatchParamsBodyFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
109
115
|
'property': json['property'] == null ? undefined : json['property'],
|
|
110
116
|
'propertyNode': json['propertyNode'] == null ? undefined : json['propertyNode'],
|
|
111
117
|
'spaces': json['spaces'] == null ? undefined : FloorplanCreateSpaceRepeatedFromJSON(json['spaces']),
|
|
118
|
+
'viewMode': json['viewMode'] == null ? undefined : json['viewMode'],
|
|
112
119
|
};
|
|
113
120
|
}
|
|
114
121
|
|
|
@@ -131,6 +138,7 @@ export function FloorplanPatchParamsBodyToJSONTyped(value?: FloorplanPatchParams
|
|
|
131
138
|
'property': value['property'],
|
|
132
139
|
'propertyNode': value['propertyNode'],
|
|
133
140
|
'spaces': FloorplanCreateSpaceRepeatedToJSON(value['spaces']),
|
|
141
|
+
'viewMode': value['viewMode'],
|
|
134
142
|
};
|
|
135
143
|
}
|
|
136
144
|
|
|
@@ -45,6 +45,12 @@ export interface GetDatacollectionRes {
|
|
|
45
45
|
* @memberof GetDatacollectionRes
|
|
46
46
|
*/
|
|
47
47
|
id: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetDatacollectionRes
|
|
52
|
+
*/
|
|
53
|
+
legacyContributors?: number;
|
|
48
54
|
/**
|
|
49
55
|
*
|
|
50
56
|
* @type {number}
|
|
@@ -84,6 +90,7 @@ export function GetDatacollectionResFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
84
90
|
'completed': json['completed'],
|
|
85
91
|
'datacollection': DatacollectionChangelogBodyFromJSON(json['datacollection']),
|
|
86
92
|
'id': json['id'],
|
|
93
|
+
'legacyContributors': json['legacyContributors'] == null ? undefined : json['legacyContributors'],
|
|
87
94
|
'started': json['started'],
|
|
88
95
|
'total': json['total'],
|
|
89
96
|
};
|
|
@@ -103,6 +110,7 @@ export function GetDatacollectionResToJSONTyped(value?: GetDatacollectionRes | n
|
|
|
103
110
|
'completed': value['completed'],
|
|
104
111
|
'datacollection': DatacollectionChangelogBodyToJSON(value['datacollection']),
|
|
105
112
|
'id': value['id'],
|
|
113
|
+
'legacyContributors': value['legacyContributors'],
|
|
106
114
|
'started': value['started'],
|
|
107
115
|
'total': value['total'],
|
|
108
116
|
};
|
package/src/models/index.ts
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';
|