Skip to content

Commit

Permalink
PATCH: add geometry to ZoneSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimdata-io committed Oct 19, 2023
1 parent 4fab303 commit a9e57df
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 34 deletions.
64 changes: 32 additions & 32 deletions package/src/apis/CollaborationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Accept a validation Required scopes: document:write
* Accept a validation Required scopes: document:read
* Accept a validation
*/
async acceptValidationRaw(requestParameters: AcceptValidationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>> {
Expand Down Expand Up @@ -927,7 +927,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Accept a validation Required scopes: document:write
* Accept a validation Required scopes: document:read
* Accept a validation
*/
async acceptValidation(cloud_pk: number, document_pk: number, id: number, project_pk: number, visa_pk: number, initOverrides?: RequestInit): Promise<void> {
Expand Down Expand Up @@ -1278,7 +1278,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Close a visa of a document Required scopes: document:write
* Close a visa of a document Required scopes: document:read
* Close a visa of a document
*/
async closeVisaRaw(requestParameters: CloseVisaRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>> {
Expand Down Expand Up @@ -1331,7 +1331,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Close a visa of a document Required scopes: document:write
* Close a visa of a document Required scopes: document:read
* Close a visa of a document
*/
async closeVisa(cloud_pk: number, document_pk: number, id: number, project_pk: number, initOverrides?: RequestInit): Promise<void> {
Expand Down Expand Up @@ -1564,7 +1564,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'OBJ\', \'IFC\', \'GLTF\', \'DXF\', \'POINT_CLOUD\', \'DWG\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {\'IFC\', \'GLTF\', \'POINT_CLOUD\', \'DXF\', \'OBJ\', \'DWG\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document
*/
async createDocumentRaw(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Document>> {
Expand Down Expand Up @@ -1667,7 +1667,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'OBJ\', \'IFC\', \'GLTF\', \'DXF\', \'POINT_CLOUD\', \'DWG\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {\'IFC\', \'GLTF\', \'POINT_CLOUD\', \'DXF\', \'OBJ\', \'DWG\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document
*/
async createDocument(cloud_pk: number, project_pk: number, name: string, file: Blob, parent_id?: number | null, file_name?: string, description?: string | null, model_source?: CreateDocumentModelSourceEnum, ifc_source?: CreateDocumentIfcSourceEnum, successor_of?: number, initOverrides?: RequestInit): Promise<Document> {
Expand Down Expand Up @@ -1977,7 +1977,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Add a validation to a visa Required scopes: document:write
* Add a validation to a visa Required scopes: document:read
* Add a validation to a visa
*/
async createValidationRaw(requestParameters: CreateValidationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VisaValidation>> {
Expand Down Expand Up @@ -2037,7 +2037,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Add a validation to a visa Required scopes: document:write
* Add a validation to a visa Required scopes: document:read
* Add a validation to a visa
*/
async createValidation(cloud_pk: number, document_pk: number, project_pk: number, visa_pk: number, VisaValidationRequest: VisaValidationRequest, initOverrides?: RequestInit): Promise<VisaValidation> {
Expand All @@ -2046,7 +2046,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a visa Required scopes: document:write
* Create a visa Required scopes: document:read
* Create a visa
*/
async createVisaRaw(requestParameters: CreateVisaRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Visa>> {
Expand Down Expand Up @@ -2098,7 +2098,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a visa Required scopes: document:write
* Create a visa Required scopes: document:read
* Create a visa
*/
async createVisa(cloud_pk: number, document_pk: number, project_pk: number, VisaRequest?: VisaRequest, initOverrides?: RequestInit): Promise<Visa> {
Expand All @@ -2107,7 +2107,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Add a comment Required scopes: document:write
* Add a comment Required scopes: document:read
* Add a comment
*/
async createVisaCommentRaw(requestParameters: CreateVisaCommentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VisaComment>> {
Expand Down Expand Up @@ -2163,7 +2163,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Add a comment Required scopes: document:write
* Add a comment Required scopes: document:read
* Add a comment
*/
async createVisaComment(cloud_pk: number, document_pk: number, project_pk: number, visa_pk: number, VisaCommentRequest?: VisaCommentRequest, initOverrides?: RequestInit): Promise<VisaComment> {
Expand Down Expand Up @@ -2905,7 +2905,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Remove a validation Required scopes: document:write
* Remove a validation Required scopes: document:read
* Remove a validation
*/
async deleteValidationRaw(requestParameters: DeleteValidationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>> {
Expand Down Expand Up @@ -2962,15 +2962,15 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Remove a validation Required scopes: document:write
* Remove a validation Required scopes: document:read
* Remove a validation
*/
async deleteValidation(cloud_pk: number, document_pk: number, id: number, project_pk: number, visa_pk: number, initOverrides?: RequestInit): Promise<void> {
await this.deleteValidationRaw({ cloud_pk: cloud_pk, document_pk: document_pk, id: id, project_pk: project_pk, visa_pk: visa_pk }, initOverrides);
}

/**
* Remove a visa Required scopes: document:write
* Remove a visa Required scopes: document:read
* Remove a visa
*/
async deleteVisaRaw(requestParameters: DeleteVisaRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>> {
Expand Down Expand Up @@ -3023,15 +3023,15 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Remove a visa Required scopes: document:write
* Remove a visa Required scopes: document:read
* Remove a visa
*/
async deleteVisa(cloud_pk: number, document_pk: number, id: number, project_pk: number, initOverrides?: RequestInit): Promise<void> {
await this.deleteVisaRaw({ cloud_pk: cloud_pk, document_pk: document_pk, id: id, project_pk: project_pk }, initOverrides);
}

/**
* Remove a comment Required scopes: document:write
* Remove a comment Required scopes: document:read
* Remove a comment
*/
async deleteVisaCommentRaw(requestParameters: DeleteVisaCommentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>> {
Expand Down Expand Up @@ -3088,7 +3088,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Remove a comment Required scopes: document:write
* Remove a comment Required scopes: document:read
* Remove a comment
*/
async deleteVisaComment(cloud_pk: number, document_pk: number, id: number, project_pk: number, visa_pk: number, initOverrides?: RequestInit): Promise<void> {
Expand Down Expand Up @@ -3145,7 +3145,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Deny a validation Required scopes: document:write
* Deny a validation Required scopes: document:read
* Deny a validation
*/
async denyValidationRaw(requestParameters: DenyValidationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>> {
Expand Down Expand Up @@ -3202,7 +3202,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Deny a validation Required scopes: document:write
* Deny a validation Required scopes: document:read
* Deny a validation
*/
async denyValidation(cloud_pk: number, document_pk: number, id: number, project_pk: number, visa_pk: number, initOverrides?: RequestInit): Promise<void> {
Expand Down Expand Up @@ -6005,7 +6005,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Pause a visa of a document Required scopes: document:write
* Pause a visa of a document Required scopes: document:read
* Pause a visa of a document
*/
async pauseVisaRaw(requestParameters: PauseVisaRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>> {
Expand Down Expand Up @@ -6058,15 +6058,15 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Pause a visa of a document Required scopes: document:write
* Pause a visa of a document Required scopes: document:read
* Pause a visa of a document
*/
async pauseVisa(cloud_pk: number, document_pk: number, id: number, project_pk: number, initOverrides?: RequestInit): Promise<void> {
await this.pauseVisaRaw({ cloud_pk: cloud_pk, document_pk: document_pk, id: id, project_pk: project_pk }, initOverrides);
}

/**
* Reset a validation if the validation has been accepted or rejected Required scopes: document:write
* Reset a validation if the validation has been accepted or rejected Required scopes: document:read
* Reset a validation
*/
async resetValidationRaw(requestParameters: ResetValidationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>> {
Expand Down Expand Up @@ -6123,15 +6123,15 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Reset a validation if the validation has been accepted or rejected Required scopes: document:write
* Reset a validation if the validation has been accepted or rejected Required scopes: document:read
* Reset a validation
*/
async resetValidation(cloud_pk: number, document_pk: number, id: number, project_pk: number, visa_pk: number, initOverrides?: RequestInit): Promise<void> {
await this.resetValidationRaw({ cloud_pk: cloud_pk, document_pk: document_pk, id: id, project_pk: project_pk, visa_pk: visa_pk }, initOverrides);
}

/**
* Resume a visa of a document after a pause Required scopes: document:write
* Resume a visa of a document after a pause Required scopes: document:read
* Resume a visa of a document
*/
async resumeVisaRaw(requestParameters: ResumeVisaRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>> {
Expand Down Expand Up @@ -6184,7 +6184,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Resume a visa of a document after a pause Required scopes: document:write
* Resume a visa of a document after a pause Required scopes: document:read
* Resume a visa of a document
*/
async resumeVisa(cloud_pk: number, document_pk: number, id: number, project_pk: number, initOverrides?: RequestInit): Promise<void> {
Expand Down Expand Up @@ -6870,7 +6870,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Update the validator of validation. This route is only useful for an App Required scopes: document:write
* Update the validator of validation. This route is only useful for an App Required scopes: document:read
* Update the validator of validation
*/
async updateValidationRaw(requestParameters: UpdateValidationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VisaValidation>> {
Expand Down Expand Up @@ -6930,7 +6930,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Update the validator of validation. This route is only useful for an App Required scopes: document:write
* Update the validator of validation. This route is only useful for an App Required scopes: document:read
* Update the validator of validation
*/
async updateValidation(cloud_pk: number, document_pk: number, id: number, project_pk: number, visa_pk: number, PatchedVisaValidationRequest?: PatchedVisaValidationRequest, initOverrides?: RequestInit): Promise<VisaValidation> {
Expand All @@ -6939,7 +6939,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Update some fields of a visa Required scopes: document:write
* Update some fields of a visa Required scopes: document:read
* Update some fields of a visa
*/
async updateVisaRaw(requestParameters: UpdateVisaRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Visa>> {
Expand Down Expand Up @@ -6995,7 +6995,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Update some fields of a visa Required scopes: document:write
* Update some fields of a visa Required scopes: document:read
* Update some fields of a visa
*/
async updateVisa(cloud_pk: number, document_pk: number, id: number, project_pk: number, PatchedVisaRequest?: PatchedVisaRequest, initOverrides?: RequestInit): Promise<Visa> {
Expand All @@ -7004,7 +7004,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Update some fields of a comment Required scopes: document:write
* Update some fields of a comment Required scopes: document:read
* Update some fields of a comment
*/
async updateVisaCommentRaw(requestParameters: UpdateVisaCommentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VisaComment>> {
Expand Down Expand Up @@ -7064,7 +7064,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Update some fields of a comment Required scopes: document:write
* Update some fields of a comment Required scopes: document:read
* Update some fields of a comment
*/
async updateVisaComment(cloud_pk: number, document_pk: number, id: number, project_pk: number, visa_pk: number, PatchedVisaCommentRequest?: PatchedVisaCommentRequest, initOverrides?: RequestInit): Promise<VisaComment> {
Expand Down
4 changes: 2 additions & 2 deletions package/src/apis/SsoApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class SsoApi extends runtime.BaseAPI {
}

/**
* Create a user, linked to the provider. This route is only useful when used with `ProjetAccessToken`s
* Create a user, linked to the provider. This route is only useful when used with `ProjetAccessToken`s. If user already exists, it responds with a 200 instead of a 201
* Create a user
*/
async createUserRaw(requestParameters: CreateUserOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ShortUser>> {
Expand Down Expand Up @@ -152,7 +152,7 @@ export class SsoApi extends runtime.BaseAPI {
}

/**
* Create a user, linked to the provider. This route is only useful when used with `ProjetAccessToken`s
* Create a user, linked to the provider. This route is only useful when used with `ProjetAccessToken`s. If user already exists, it responds with a 200 instead of a 201
* Create a user
*/
async createUser(CreateUserRequest: CreateUserRequest, initOverrides?: RequestInit): Promise<ShortUser> {
Expand Down
15 changes: 15 additions & 0 deletions package/src/models/PatchedZoneSpaceRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
*/

import { exists, mapValues } from '../runtime';
import {
GeometryPointRequest,
GeometryPointRequestFromJSON,
GeometryPointRequestFromJSONTyped,
GeometryPointRequestToJSON,
} from './GeometryPointRequest';

/**
*
* @export
Expand All @@ -37,6 +44,12 @@ export interface PatchedZoneSpaceRequest {
* @memberof PatchedZoneSpaceRequest
*/
uuid?: string;
/**
*
* @type {Array<GeometryPointRequest>}
* @memberof PatchedZoneSpaceRequest
*/
geometry?: Array<GeometryPointRequest> | null;
/**
*
* @type {number}
Expand All @@ -58,6 +71,7 @@ export function PatchedZoneSpaceRequestFromJSONTyped(json: any, ignoreDiscrimina
'name': !exists(json, 'name') ? undefined : json['name'],
'longname': !exists(json, 'longname') ? undefined : json['longname'],
'uuid': !exists(json, 'uuid') ? undefined : json['uuid'],
'geometry': !exists(json, 'geometry') ? undefined : (json['geometry'] === null ? null : (json['geometry'] as Array<any>).map(GeometryPointRequestFromJSON)),
'order': !exists(json, 'order') ? undefined : json['order'],
};
}
Expand All @@ -74,6 +88,7 @@ export function PatchedZoneSpaceRequestToJSON(value?: PatchedZoneSpaceRequest |
'name': value.name,
'longname': value.longname,
'uuid': value.uuid,
'geometry': value.geometry === undefined ? undefined : (value.geometry === null ? null : (value.geometry as Array<any>).map(GeometryPointRequestToJSON)),
'order': value.order,
};
}
Expand Down
15 changes: 15 additions & 0 deletions package/src/models/ZoneSpace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
*/

import { exists, mapValues } from '../runtime';
import {
GeometryPoint,
GeometryPointFromJSON,
GeometryPointFromJSONTyped,
GeometryPointToJSON,
} from './GeometryPoint';

/**
*
* @export
Expand Down Expand Up @@ -49,6 +56,12 @@ export interface ZoneSpace {
* @memberof ZoneSpace
*/
readonly zone_set: Array<number>;
/**
*
* @type {Array<GeometryPoint>}
* @memberof ZoneSpace
*/
geometry?: Array<GeometryPoint> | null;
/**
*
* @type {number}
Expand Down Expand Up @@ -84,6 +97,7 @@ export function ZoneSpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
'longname': !exists(json, 'longname') ? undefined : json['longname'],
'uuid': json['uuid'],
'zone_set': json['zone_set'],
'geometry': !exists(json, 'geometry') ? undefined : (json['geometry'] === null ? null : (json['geometry'] as Array<any>).map(GeometryPointFromJSON)),
'order': !exists(json, 'order') ? undefined : json['order'],
'created_at': (new Date(json['created_at'])),
'updated_at': (new Date(json['updated_at'])),
Expand All @@ -102,6 +116,7 @@ export function ZoneSpaceToJSON(value?: ZoneSpace | null): any {
'name': value.name,
'longname': value.longname,
'uuid': value.uuid,
'geometry': value.geometry === undefined ? undefined : (value.geometry === null ? null : (value.geometry as Array<any>).map(GeometryPointToJSON)),
'order': value.order,
};
}
Expand Down
Loading

0 comments on commit a9e57df

Please sign in to comment.