Skip to content

Commit

Permalink
MINOR: Add filters and document and some utility routes (#710)
Browse files Browse the repository at this point in the history
* add folder:id/document route and visa validation attachment

* add filter on first level

* add document advanced filters and folder-tree route

* remove uselesss unpacking operator
  • Loading branch information
Bimdata-io committed Dec 13, 2023
1 parent 3d2f60d commit 9698dc5
Show file tree
Hide file tree
Showing 6 changed files with 520 additions and 22 deletions.
1 change: 1 addition & 0 deletions package/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ src/models/ViewSetupHintsRequest.ts
src/models/Viewpoint.ts
src/models/ViewpointRequest.ts
src/models/Visa.ts
src/models/VisaAttachment.ts
src/models/VisaComment.ts
src/models/VisaCommentRequest.ts
src/models/VisaRequest.ts
Expand Down
464 changes: 448 additions & 16 deletions package/src/apis/CollaborationApi.ts

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions package/src/models/FolderTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,22 @@ import { exists, mapValues } from '../runtime';
export interface FolderTree {
/**
*
* @type {Array<FolderTree>}
* @type {number}
* @memberof FolderTree
*/
children: Array<FolderTree>;
id: number;
/**
*
* @type {string}
* @memberof FolderTree
*/
name: string;
/**
*
* @type {Array<FolderTree>}
* @memberof FolderTree
*/
children: Array<FolderTree>;
}

export function FolderTreeFromJSON(json: any): FolderTree {
Expand All @@ -43,8 +49,9 @@ export function FolderTreeFromJSONTyped(json: any, ignoreDiscriminator: boolean)
}
return {

'children': ((json['children'] as Array<any>).map(FolderTreeFromJSON)),
'id': json['id'],
'name': json['name'],
'children': ((json['children'] as Array<any>).map(FolderTreeFromJSON)),
};
}

Expand All @@ -57,8 +64,9 @@ export function FolderTreeToJSON(value?: FolderTree | null): any {
}
return {

'children': ((value.children as Array<any>).map(FolderTreeToJSON)),
'id': value.id,
'name': value.name,
'children': ((value.children as Array<any>).map(FolderTreeToJSON)),
};
}

4 changes: 2 additions & 2 deletions package/src/models/Visa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface Visa {
readonly document_id: number;
/**
* * `O` - opened
* * `A` - paused
* * `P` - paused
* * `C` - closed
* @type {string}
* @memberof Visa
Expand Down Expand Up @@ -114,7 +114,7 @@ export interface Visa {
*/
export enum VisaStatusEnum {
O = 'O',
A = 'A',
P = 'P',
C = 'C'
}

Expand Down
56 changes: 56 additions & 0 deletions package/src/models/VisaAttachment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/* tslint:disable */
/* eslint-disable */
/**
* BIMData API
* BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints.
*
* The version of the OpenAPI document: v1 (v1)
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface VisaAttachment
*/
export interface VisaAttachment {
/**
*
* @type {string}
* @memberof VisaAttachment
*/
attachment?: string | null;
}

export function VisaAttachmentFromJSON(json: any): VisaAttachment {
return VisaAttachmentFromJSONTyped(json, false);
}

export function VisaAttachmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): VisaAttachment {
if ((json === undefined) || (json === null)) {
return json;
}
return {

'attachment': !exists(json, 'attachment') ? undefined : json['attachment'],
};
}

export function VisaAttachmentToJSON(value?: VisaAttachment | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {

'attachment': value.attachment,
};
}

1 change: 1 addition & 0 deletions package/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export * from './ViewSetupHintsRequest';
export * from './Viewpoint';
export * from './ViewpointRequest';
export * from './Visa';
export * from './VisaAttachment';
export * from './VisaComment';
export * from './VisaCommentRequest';
export * from './VisaRequest';
Expand Down

0 comments on commit 9698dc5

Please sign in to comment.