Skip to content

Commit

Permalink
MINOR: remove bcf project id in response
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimdata-io committed Jun 20, 2024
1 parent f5de6fb commit 8d772e3
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 58 deletions.
146 changes: 136 additions & 10 deletions package/src/apis/CollaborationApi.ts

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions package/src/models/Label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ export interface Label {
* @memberof Label
*/
label: string;
/**
* This field is automatically provided by the route, you don't need to provide it in the body
* @type {number}
* @memberof Label
*/
project?: number;
}

export function LabelFromJSON(json: any): Label {
Expand All @@ -51,7 +45,6 @@ export function LabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): Lab

'id': json['id'],
'label': json['label'],
'project': !exists(json, 'project') ? undefined : json['project'],
};
}

Expand All @@ -65,7 +58,6 @@ export function LabelToJSON(value?: Label | null): any {
return {

'label': value.label,
'project': value.project,
};
}

8 changes: 0 additions & 8 deletions package/src/models/Priority.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ export interface Priority {
* @memberof Priority
*/
color?: string | null;
/**
* This field is automatically provided by the route, you don't need to provide it in the body
* @type {number}
* @memberof Priority
*/
project?: number;
}

export function PriorityFromJSON(json: any): Priority {
Expand All @@ -58,7 +52,6 @@ export function PriorityFromJSONTyped(json: any, ignoreDiscriminator: boolean):
'id': json['id'],
'priority': json['priority'],
'color': !exists(json, 'color') ? undefined : json['color'],
'project': !exists(json, 'project') ? undefined : json['project'],
};
}

Expand All @@ -73,7 +66,6 @@ export function PriorityToJSON(value?: Priority | null): any {

'priority': value.priority,
'color': value.color,
'project': value.project,
};
}

8 changes: 0 additions & 8 deletions package/src/models/Stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ export interface Stage {
* @memberof Stage
*/
stage: string;
/**
* This field is automatically provided by the route, you don't need to provide it in the body
* @type {number}
* @memberof Stage
*/
project?: number;
}

export function StageFromJSON(json: any): Stage {
Expand All @@ -51,7 +45,6 @@ export function StageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sta

'id': json['id'],
'stage': json['stage'],
'project': !exists(json, 'project') ? undefined : json['project'],
};
}

Expand All @@ -65,7 +58,6 @@ export function StageToJSON(value?: Stage | null): any {
return {

'stage': value.stage,
'project': value.project,
};
}

8 changes: 0 additions & 8 deletions package/src/models/TopicStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ export interface TopicStatus {
* @memberof TopicStatus
*/
color?: string | null;
/**
* This field is automatically provided by the route, you don't need to provide it in the body
* @type {number}
* @memberof TopicStatus
*/
project?: number;
}

export function TopicStatusFromJSON(json: any): TopicStatus {
Expand All @@ -58,7 +52,6 @@ export function TopicStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean
'id': json['id'],
'topic_status': json['topic_status'],
'color': !exists(json, 'color') ? undefined : json['color'],
'project': !exists(json, 'project') ? undefined : json['project'],
};
}

Expand All @@ -73,7 +66,6 @@ export function TopicStatusToJSON(value?: TopicStatus | null): any {

'topic_status': value.topic_status,
'color': value.color,
'project': value.project,
};
}

8 changes: 0 additions & 8 deletions package/src/models/TopicType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ export interface TopicType {
* @memberof TopicType
*/
topic_type: string;
/**
* This field is automatically provided by the route, you don't need to provide it in the body
* @type {number}
* @memberof TopicType
*/
project?: number;
}

export function TopicTypeFromJSON(json: any): TopicType {
Expand All @@ -51,7 +45,6 @@ export function TopicTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean):

'id': json['id'],
'topic_type': json['topic_type'],
'project': !exists(json, 'project') ? undefined : json['project'],
};
}

Expand All @@ -65,7 +58,6 @@ export function TopicTypeToJSON(value?: TopicType | null): any {
return {

'topic_type': value.topic_type,
'project': value.project,
};
}

16 changes: 8 additions & 8 deletions package/src/models/WriteFolderRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
* @interface WriteFolderRequest
*/
export interface WriteFolderRequest {
/**
*
* @type {number}
* @memberof WriteFolderRequest
*/
parent_id?: number | null;
/**
* Name of the folder
* @type {string}
Expand All @@ -35,12 +41,6 @@ export interface WriteFolderRequest {
* @memberof WriteFolderRequest
*/
default_permission?: WriteFolderRequestDefaultPermissionEnum;
/**
*
* @type {number}
* @memberof WriteFolderRequest
*/
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'],
'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,
'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 8d772e3

Please sign in to comment.