Skip to content

Commit ee7977f

Browse files
committed
v1.16.0
1 parent a0fc69e commit ee7977f

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

src/models/project-update-body.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@ export const transformProjectUpdateBodyToJSON = function (value: ProjectUpdateBo
1818
return {
1919
name: value.name,
2020
description: value.description,
21-
workflow_status_id: value.workflowStatusId
21+
workflow_status_id: value.workflowStatusId,
22+
linked_styleguide_id: value.linkedStyleguideId
2223
}
2324
}
2425

2526
export const transformJSONToProjectUpdateBody = function (value: any): ProjectUpdateBody {
2627
return {
2728
name: value.name,
2829
description: value.description,
29-
workflowStatusId: value.workflow_status_id
30+
workflowStatusId: value.workflow_status_id,
31+
linkedStyleguideId: value.linked_styleguide_id
3032
}
3133
}
3234

@@ -54,6 +56,12 @@ export interface ProjectUpdateBody {
5456
* @memberof ProjectUpdateBody
5557
*/
5658
workflowStatusId?: string;
59+
/**
60+
* The unique id of the styleguide to be linked. Set null to unlink the linked styleguide.
61+
* @type {string}
62+
* @memberof ProjectUpdateBody
63+
*/
64+
linkedStyleguideId?: string | null;
5765
}
5866

5967

src/models/styleguide-update-body.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@
1717
export const transformStyleguideUpdateBodyToJSON = function (value: StyleguideUpdateBody): any {
1818
return {
1919
name: value.name,
20-
description: value.description
20+
description: value.description,
21+
linked_parent_styleguide_id: value.linkedParentStyleguideId
2122
}
2223
}
2324

2425
export const transformJSONToStyleguideUpdateBody = function (value: any): StyleguideUpdateBody {
2526
return {
2627
name: value.name,
27-
description: value.description
28+
description: value.description,
29+
linkedParentStyleguideId: value.linked_parent_styleguide_id
2830
}
2931
}
3032

@@ -46,6 +48,12 @@ export interface StyleguideUpdateBody {
4648
* @memberof StyleguideUpdateBody
4749
*/
4850
description?: string;
51+
/**
52+
* The unique id of the styleguide to be linked as parent. Set null to unlink the linked parent styleguide.
53+
* @type {string}
54+
* @memberof StyleguideUpdateBody
55+
*/
56+
linkedParentStyleguideId?: string | null;
4957
}
5058

5159

0 commit comments

Comments
 (0)