File tree Expand file tree Collapse file tree 4 files changed +68
-2
lines changed
Expand file tree Collapse file tree 4 files changed +68
-2
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ export {
261261 UserWebhookCreateBody ,
262262 UserWebhookEventEnum ,
263263 UserWebhookUpdateBody ,
264+ VariableInfo ,
264265 VersionCommit ,
265266 VersionCommitColor ,
266267 VerticalGrid ,
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ import {
1717 transformResourceSourceToJSON ,
1818 transformJSONToResourceSource
1919} from './resource-source' ;
20+ import {
21+ VariableInfo ,
22+ transformVariableInfoToJSON ,
23+ transformJSONToVariableInfo
24+ } from './variable-info' ;
2025
2126
2227export const transformColorToJSON = function ( value : Color ) : any {
@@ -29,7 +34,8 @@ export const transformColorToJSON = function (value: Color): any {
2934 g : value . g ,
3035 b : value . b ,
3136 a : value . a ,
32- source : value . source && transformResourceSourceToJSON ( value . source )
37+ source : value . source && transformResourceSourceToJSON ( value . source ) ,
38+ variable_info : value . variableInfo && transformVariableInfoToJSON ( value . variableInfo )
3339 }
3440}
3541
@@ -43,7 +49,8 @@ export const transformJSONToColor = function (value: any): Color {
4349 g : value . g ,
4450 b : value . b ,
4551 a : value . a ,
46- source : value . source && transformJSONToResourceSource ( value . source )
52+ source : value . source && transformJSONToResourceSource ( value . source ) ,
53+ variableInfo : value . variable_info && transformJSONToVariableInfo ( value . variable_info )
4754 }
4855}
4956
@@ -107,6 +114,12 @@ export interface Color {
107114 * @memberof Color
108115 */
109116 source ?: ResourceSource ;
117+ /**
118+ *
119+ * @type {VariableInfo }
120+ * @memberof Color
121+ */
122+ variableInfo ?: VariableInfo ;
110123}
111124
112125
Original file line number Diff line number Diff line change @@ -247,6 +247,7 @@ export * from './user-webhook';
247247export * from './user-webhook-create-body' ;
248248export * from './user-webhook-event-enum' ;
249249export * from './user-webhook-update-body' ;
250+ export * from './variable-info' ;
250251export * from './version-commit' ;
251252export * from './version-commit-color' ;
252253export * from './vertical-grid' ;
Original file line number Diff line number Diff line change 1+ /* tslint:disable */
2+ /* eslint-disable */
3+ /**
4+ * Zeplin API
5+ * Access your resources in Zeplin
6+ *
7+ 8+ *
9+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10+ * https://openapi-generator.tech
11+ * Do not edit the class manually.
12+ */
13+
14+
15+
16+
17+ export const transformVariableInfoToJSON = function ( value : VariableInfo ) : any {
18+ return {
19+ source_id : value . sourceId ,
20+ collection_source_id : value . collectionSourceId
21+ }
22+ }
23+
24+ export const transformJSONToVariableInfo = function ( value : any ) : VariableInfo {
25+ return {
26+ sourceId : value . source_id ,
27+ collectionSourceId : value . collection_source_id
28+ }
29+ }
30+
31+ /**
32+ *
33+ * @export
34+ * @interface VariableInfo
35+ */
36+ export interface VariableInfo {
37+ /**
38+ * The source id of the variable
39+ * @type {string }
40+ * @memberof VariableInfo
41+ */
42+ sourceId : string ;
43+ /**
44+ * The source id of the collection that the variable belongs to
45+ * @type {string }
46+ * @memberof VariableInfo
47+ */
48+ collectionSourceId : string ;
49+ }
50+
51+
You can’t perform that action at this time.
0 commit comments