From ee7977f672d510e5774614a6833e9af6f48efebf Mon Sep 17 00:00:00 2001 From: zeplin-dev Date: Mon, 13 Feb 2023 11:23:05 +0000 Subject: [PATCH] v1.16.0 --- src/models/project-update-body.ts | 12 ++++++++++-- src/models/styleguide-update-body.ts | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/models/project-update-body.ts b/src/models/project-update-body.ts index a3d1da6..f7287f3 100644 --- a/src/models/project-update-body.ts +++ b/src/models/project-update-body.ts @@ -18,7 +18,8 @@ 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 } } @@ -26,7 +27,8 @@ export const transformJSONToProjectUpdateBody = function (value: any): ProjectUp return { name: value.name, description: value.description, - workflowStatusId: value.workflow_status_id + workflowStatusId: value.workflow_status_id, + linkedStyleguideId: value.linked_styleguide_id } } @@ -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; } diff --git a/src/models/styleguide-update-body.ts b/src/models/styleguide-update-body.ts index 7ca7216..a35394e 100644 --- a/src/models/styleguide-update-body.ts +++ b/src/models/styleguide-update-body.ts @@ -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 } } @@ -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; }