Skip to content

Commit

Permalink
PATCH: fix project-access-token nullable fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimdata-io committed Jul 30, 2024
1 parent efc339d commit 0c16ab6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"prepare": "npm run build"
},
"devDependencies": {
"typescript": "3.5"
"typescript": "^2.4"
}
}
4 changes: 2 additions & 2 deletions package/src/apis/CollaborationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'OBJ\', \'IFC\', \'DXF\', \'GLTF\', \'DWG\', \'POINT_CLOUD\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {\'DWG\', \'OBJ\', \'DXF\', \'POINT_CLOUD\', \'IFC\', \'GLTF\'}, 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 @@ -1777,7 +1777,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'OBJ\', \'IFC\', \'DXF\', \'GLTF\', \'DWG\', \'POINT_CLOUD\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {\'DWG\', \'OBJ\', \'DXF\', \'POINT_CLOUD\', \'IFC\', \'GLTF\'}, 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
5 changes: 3 additions & 2 deletions package/src/models/CheckProjectAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface CheckProjectAccess {
* @type {User}
* @memberof CheckProjectAccess
*/
user?: User;
user?: User | null;
}

/**
Expand All @@ -79,7 +79,8 @@ export interface CheckProjectAccess {
export enum CheckProjectAccessUserRoleEnum {
NUMBER_100 = 100,
NUMBER_50 = 50,
NUMBER_25 = 25
NUMBER_25 = 25,
NUMBER_null = null
}

export function CheckProjectAccessFromJSON(json: any): CheckProjectAccess {
Expand Down
20 changes: 10 additions & 10 deletions package/src/models/WriteFolderRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ import { exists, mapValues } from '../runtime';
*/
export interface WriteFolderRequest {
/**
* Permission for a Folder
*
* * `1` - denied
* * `50` - read_only
* * `100` - read_write
* @type {number}
* @memberof WriteFolderRequest
*/
parent_id?: number | null;
default_permission?: WriteFolderRequestDefaultPermissionEnum;
/**
* Name of the folder
* @type {string}
* @memberof WriteFolderRequest
*/
name: string;
/**
* Permission for a Folder
*
* * `1` - denied
* * `50` - read_only
* * `100` - read_write
* @type {number}
* @memberof WriteFolderRequest
*/
default_permission?: WriteFolderRequestDefaultPermissionEnum;
parent_id?: number | null;
/**
*
* @type {Array<WriteFolderRequest>}
Expand Down Expand Up @@ -69,9 +69,9 @@ export function WriteFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
}
return {

'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
'name': json['name'],
'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
'name': json['name'],
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
'children': !exists(json, 'children') ? undefined : (json['children'] === null ? null : (json['children'] as Array<any>).map(WriteFolderRequestFromJSON)),
};
}
Expand All @@ -85,9 +85,9 @@ export function WriteFolderRequestToJSON(value?: WriteFolderRequest | null): any
}
return {

'parent_id': value.parent_id,
'name': value.name,
'default_permission': value.default_permission,
'name': value.name,
'parent_id': value.parent_id,
'children': value.children === undefined ? undefined : (value.children === null ? null : (value.children as Array<any>).map(WriteFolderRequestToJSON)),
};
}
Expand Down

0 comments on commit 0c16ab6

Please sign in to comment.