Skip to content

Commit

Permalink
v1.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zeplin-dev committed Feb 13, 2023
1 parent a0fc69e commit ee7977f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions src/models/project-update-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ export const transformProjectUpdateBodyToJSON = function (value: ProjectUpdateBo
return {
name: value.name,
description: value.description,
workflow_status_id: value.workflowStatusId
workflow_status_id: value.workflowStatusId,
linked_styleguide_id: value.linkedStyleguideId
}
}

export const transformJSONToProjectUpdateBody = function (value: any): ProjectUpdateBody {
return {
name: value.name,
description: value.description,
workflowStatusId: value.workflow_status_id
workflowStatusId: value.workflow_status_id,
linkedStyleguideId: value.linked_styleguide_id
}
}

Expand Down Expand Up @@ -54,6 +56,12 @@ export interface ProjectUpdateBody {
* @memberof ProjectUpdateBody
*/
workflowStatusId?: string;
/**
* The unique id of the styleguide to be linked. Set null to unlink the linked styleguide.
* @type {string}
* @memberof ProjectUpdateBody
*/
linkedStyleguideId?: string | null;
}


12 changes: 10 additions & 2 deletions src/models/styleguide-update-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@
export const transformStyleguideUpdateBodyToJSON = function (value: StyleguideUpdateBody): any {
return {
name: value.name,
description: value.description
description: value.description,
linked_parent_styleguide_id: value.linkedParentStyleguideId
}
}

export const transformJSONToStyleguideUpdateBody = function (value: any): StyleguideUpdateBody {
return {
name: value.name,
description: value.description
description: value.description,
linkedParentStyleguideId: value.linked_parent_styleguide_id
}
}

Expand All @@ -46,6 +48,12 @@ export interface StyleguideUpdateBody {
* @memberof StyleguideUpdateBody
*/
description?: string;
/**
* The unique id of the styleguide to be linked as parent. Set null to unlink the linked parent styleguide.
* @type {string}
* @memberof StyleguideUpdateBody
*/
linkedParentStyleguideId?: string | null;
}


0 comments on commit ee7977f

Please sign in to comment.