@@ -511,6 +511,7 @@ export interface GetDocumentsRequest {
511511 file_name__contains ?: string ;
512512 file_name__endswith ?: string ;
513513 file_name__startswith ?: string ;
514+ file_type ?: string ;
514515 has__visa ?: boolean ;
515516 id__in ?: Array < number > ;
516517 name ?: string ;
@@ -555,6 +556,7 @@ export interface GetFolderDocumentsRequest {
555556 file_name__contains ?: string ;
556557 file_name__endswith ?: string ;
557558 file_name__startswith ?: string ;
559+ file_type ?: string ;
558560 has__visa ?: boolean ;
559561 id__in ?: Array < number > ;
560562 name ?: string ;
@@ -1691,7 +1693,7 @@ export class CollaborationApi extends runtime.BaseAPI {
16911693 }
16921694
16931695 /**
1694- * Create a document. If the document is one of {\'DXF\', \'GLTF \', \'POINT_CLOUD\', \'OBJ \', \'DWG \', \'IFC\'}, a model will be created and attached to this document Required scopes: document:write
1696+ * Create a document. If the document is one of {\'DXF\', \'OBJ \', \'POINT_CLOUD\', \'DWG \', \'GLTF \', \'IFC\'}, a model will be created and attached to this document Required scopes: document:write
16951697 * Create a document
16961698 */
16971699 async createDocumentRaw ( requestParameters : CreateDocumentRequest , initOverrides ?: RequestInit ) : Promise < runtime . ApiResponse < Document > > {
@@ -1798,7 +1800,7 @@ export class CollaborationApi extends runtime.BaseAPI {
17981800 }
17991801
18001802 /**
1801- * Create a document. If the document is one of {\'DXF\', \'GLTF \', \'POINT_CLOUD\', \'OBJ \', \'DWG \', \'IFC\'}, a model will be created and attached to this document Required scopes: document:write
1803+ * Create a document. If the document is one of {\'DXF\', \'OBJ \', \'POINT_CLOUD\', \'DWG \', \'GLTF \', \'IFC\'}, a model will be created and attached to this document Required scopes: document:write
18021804 * Create a document
18031805 */
18041806 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 , process_hint ?: CreateDocumentProcessHintEnum , initOverrides ?: RequestInit ) : Promise < Document > {
@@ -3967,6 +3969,10 @@ export class CollaborationApi extends runtime.BaseAPI {
39673969 queryParameters [ 'file_name__startswith' ] = requestParameters . file_name__startswith ;
39683970 }
39693971
3972+ if ( requestParameters . file_type !== undefined ) {
3973+ queryParameters [ 'file_type' ] = requestParameters . file_type ;
3974+ }
3975+
39703976 if ( requestParameters . has__visa !== undefined ) {
39713977 queryParameters [ 'has__visa' ] = requestParameters . has__visa ;
39723978 }
@@ -4085,8 +4091,8 @@ export class CollaborationApi extends runtime.BaseAPI {
40854091 * Retrieve all documents in the project. Filters are case insentive. Search filter only works if AI features are enabled. Required scopes: document:read
40864092 * Retrieve all documents
40874093 */
4088- async getDocuments ( cloud_pk : number , project_pk : number , created_after ?: Date , created_before ?: Date , creator_email ?: string , description ?: string , description__contains ?: string , description__endswith ?: string , description__startswith ?: string , file_name ?: string , file_name__contains ?: string , file_name__endswith ?: string , file_name__startswith ?: string , has__visa ?: boolean , id__in ?: Array < number > , name ?: string , name__contains ?: string , name__endswith ?: string , name__startswith ?: string , parent_id__in ?: Array < number > , search ?: string , size_max ?: number | null , size_min ?: number | null , tags ?: Array < string > , text ?: boolean , visa__creator_email ?: string , visa__deadline_after ?: Date , visa__deadline_before ?: Date , visa__past__deadline ?: boolean , visa__past__deadline__strict ?: boolean , visa__status ?: GetDocumentsVisaStatusEnum , visa__status__strict ?: GetDocumentsVisaStatusStrictEnum , visa__validation_status ?: string , visa__validator_email ?: string , initOverrides ?: RequestInit ) : Promise < Array < Document > > {
4089- const response = await this . getDocumentsRaw ( { cloud_pk : cloud_pk , project_pk : project_pk , created_after : created_after , created_before : created_before , creator_email : creator_email , description : description , description__contains : description__contains , description__endswith : description__endswith , description__startswith : description__startswith , file_name : file_name , file_name__contains : file_name__contains , file_name__endswith : file_name__endswith , file_name__startswith : file_name__startswith , has__visa : has__visa , id__in : id__in , name : name , name__contains : name__contains , name__endswith : name__endswith , name__startswith : name__startswith , parent_id__in : parent_id__in , search : search , size_max : size_max , size_min : size_min , tags : tags , text : text , visa__creator_email : visa__creator_email , visa__deadline_after : visa__deadline_after , visa__deadline_before : visa__deadline_before , visa__past__deadline : visa__past__deadline , visa__past__deadline__strict : visa__past__deadline__strict , visa__status : visa__status , visa__status__strict : visa__status__strict , visa__validation_status : visa__validation_status , visa__validator_email : visa__validator_email } , initOverrides ) ;
4094+ async getDocuments ( cloud_pk : number , project_pk : number , created_after ?: Date , created_before ?: Date , creator_email ?: string , description ?: string , description__contains ?: string , description__endswith ?: string , description__startswith ?: string , file_name ?: string , file_name__contains ?: string , file_name__endswith ?: string , file_name__startswith ?: string , file_type ?: string , has__visa ?: boolean , id__in ?: Array < number > , name ?: string , name__contains ?: string , name__endswith ?: string , name__startswith ?: string , parent_id__in ?: Array < number > , search ?: string , size_max ?: number | null , size_min ?: number | null , tags ?: Array < string > , text ?: boolean , visa__creator_email ?: string , visa__deadline_after ?: Date , visa__deadline_before ?: Date , visa__past__deadline ?: boolean , visa__past__deadline__strict ?: boolean , visa__status ?: GetDocumentsVisaStatusEnum , visa__status__strict ?: GetDocumentsVisaStatusStrictEnum , visa__validation_status ?: string , visa__validator_email ?: string , initOverrides ?: RequestInit ) : Promise < Array < Document > > {
4095+ const response = await this . getDocumentsRaw ( { cloud_pk : cloud_pk , project_pk : project_pk , created_after : created_after , created_before : created_before , creator_email : creator_email , description : description , description__contains : description__contains , description__endswith : description__endswith , description__startswith : description__startswith , file_name : file_name , file_name__contains : file_name__contains , file_name__endswith : file_name__endswith , file_name__startswith : file_name__startswith , file_type : file_type , has__visa : has__visa , id__in : id__in , name : name , name__contains : name__contains , name__endswith : name__endswith , name__startswith : name__startswith , parent_id__in : parent_id__in , search : search , size_max : size_max , size_min : size_min , tags : tags , text : text , visa__creator_email : visa__creator_email , visa__deadline_after : visa__deadline_after , visa__deadline_before : visa__deadline_before , visa__past__deadline : visa__past__deadline , visa__past__deadline__strict : visa__past__deadline__strict , visa__status : visa__status , visa__status__strict : visa__status__strict , visa__validation_status : visa__validation_status , visa__validator_email : visa__validator_email } , initOverrides ) ;
40904096 return await response . value ( ) ;
40914097 }
40924098
@@ -4211,6 +4217,10 @@ export class CollaborationApi extends runtime.BaseAPI {
42114217 queryParameters [ 'file_name__startswith' ] = requestParameters . file_name__startswith ;
42124218 }
42134219
4220+ if ( requestParameters . file_type !== undefined ) {
4221+ queryParameters [ 'file_type' ] = requestParameters . file_type ;
4222+ }
4223+
42144224 if ( requestParameters . has__visa !== undefined ) {
42154225 queryParameters [ 'has__visa' ] = requestParameters . has__visa ;
42164226 }
@@ -4325,8 +4335,8 @@ export class CollaborationApi extends runtime.BaseAPI {
43254335 * Get all documents of a folder Required scopes: document:read
43264336 * Get all documents of a folder
43274337 */
4328- async getFolderDocuments ( cloud_pk : number , folder_pk : number , project_pk : number , created_after ?: Date , created_before ?: Date , creator_email ?: string , description ?: string , description__contains ?: string , description__endswith ?: string , description__startswith ?: string , file_name ?: string , file_name__contains ?: string , file_name__endswith ?: string , file_name__startswith ?: string , has__visa ?: boolean , id__in ?: Array < number > , name ?: string , name__contains ?: string , name__endswith ?: string , name__startswith ?: string , parent_id__in ?: Array < number > , search ?: string , size_max ?: number | null , size_min ?: number | null , tags ?: Array < string > , visa__creator_email ?: string , visa__deadline_after ?: Date , visa__deadline_before ?: Date , visa__past__deadline ?: boolean , visa__past__deadline__strict ?: boolean , visa__status ?: GetFolderDocumentsVisaStatusEnum , visa__status__strict ?: GetFolderDocumentsVisaStatusStrictEnum , visa__validation_status ?: string , visa__validator_email ?: string , initOverrides ?: RequestInit ) : Promise < Array < Document > > {
4329- const response = await this . getFolderDocumentsRaw ( { cloud_pk : cloud_pk , folder_pk : folder_pk , project_pk : project_pk , created_after : created_after , created_before : created_before , creator_email : creator_email , description : description , description__contains : description__contains , description__endswith : description__endswith , description__startswith : description__startswith , file_name : file_name , file_name__contains : file_name__contains , file_name__endswith : file_name__endswith , file_name__startswith : file_name__startswith , has__visa : has__visa , id__in : id__in , name : name , name__contains : name__contains , name__endswith : name__endswith , name__startswith : name__startswith , parent_id__in : parent_id__in , search : search , size_max : size_max , size_min : size_min , tags : tags , visa__creator_email : visa__creator_email , visa__deadline_after : visa__deadline_after , visa__deadline_before : visa__deadline_before , visa__past__deadline : visa__past__deadline , visa__past__deadline__strict : visa__past__deadline__strict , visa__status : visa__status , visa__status__strict : visa__status__strict , visa__validation_status : visa__validation_status , visa__validator_email : visa__validator_email } , initOverrides ) ;
4338+ async getFolderDocuments ( cloud_pk : number , folder_pk : number , project_pk : number , created_after ?: Date , created_before ?: Date , creator_email ?: string , description ?: string , description__contains ?: string , description__endswith ?: string , description__startswith ?: string , file_name ?: string , file_name__contains ?: string , file_name__endswith ?: string , file_name__startswith ?: string , file_type ?: string , has__visa ?: boolean , id__in ?: Array < number > , name ?: string , name__contains ?: string , name__endswith ?: string , name__startswith ?: string , parent_id__in ?: Array < number > , search ?: string , size_max ?: number | null , size_min ?: number | null , tags ?: Array < string > , visa__creator_email ?: string , visa__deadline_after ?: Date , visa__deadline_before ?: Date , visa__past__deadline ?: boolean , visa__past__deadline__strict ?: boolean , visa__status ?: GetFolderDocumentsVisaStatusEnum , visa__status__strict ?: GetFolderDocumentsVisaStatusStrictEnum , visa__validation_status ?: string , visa__validator_email ?: string , initOverrides ?: RequestInit ) : Promise < Array < Document > > {
4339+ const response = await this . getFolderDocumentsRaw ( { cloud_pk : cloud_pk , folder_pk : folder_pk , project_pk : project_pk , created_after : created_after , created_before : created_before , creator_email : creator_email , description : description , description__contains : description__contains , description__endswith : description__endswith , description__startswith : description__startswith , file_name : file_name , file_name__contains : file_name__contains , file_name__endswith : file_name__endswith , file_name__startswith : file_name__startswith , file_type : file_type , has__visa : has__visa , id__in : id__in , name : name , name__contains : name__contains , name__endswith : name__endswith , name__startswith : name__startswith , parent_id__in : parent_id__in , search : search , size_max : size_max , size_min : size_min , tags : tags , visa__creator_email : visa__creator_email , visa__deadline_after : visa__deadline_after , visa__deadline_before : visa__deadline_before , visa__past__deadline : visa__past__deadline , visa__past__deadline__strict : visa__past__deadline__strict , visa__status : visa__status , visa__status__strict : visa__status__strict , visa__validation_status : visa__validation_status , visa__validator_email : visa__validator_email } , initOverrides ) ;
43304340 return await response . value ( ) ;
43314341 }
43324342
0 commit comments