@@ -13,6 +13,13 @@ export class Beta extends APIResource {
1313 return this . _client . get ( path `/v1/workbooks/${ id } /labels` , options ) ;
1414 }
1515
16+ /**
17+ * Retrieve labels automatically detected for cells and ranges in the workbook.
18+ */
19+ getWorkbookParameters ( id : string , options ?: RequestOptions ) : APIPromise < BetaGetWorkbookParametersResponse > {
20+ return this . _client . get ( path `/v1/workbooks/${ id } /parameters` , options ) ;
21+ }
22+
1623 /**
1724 * Search data labels across all spreadsheets uploaded to an account
1825 */
@@ -67,6 +74,66 @@ export namespace BetaGetWorkbookLabelsResponse {
6774 }
6875}
6976
77+ export interface BetaGetWorkbookParametersResponse {
78+ /**
79+ * The date/time the parameters were detected and stored
80+ */
81+ created : string ;
82+
83+ /**
84+ * The parameters associated with the workbook
85+ */
86+ parameters : Array < BetaGetWorkbookParametersResponse . Parameter > ;
87+
88+ /**
89+ * The id of the workbook the labels belong to
90+ */
91+ workbook_id : string ;
92+
93+ /**
94+ * The version of the workbook the labels belong to
95+ */
96+ workbook_version : number ;
97+ }
98+
99+ export namespace BetaGetWorkbookParametersResponse {
100+ export interface Parameter {
101+ /**
102+ * The labels associated with the parameter
103+ */
104+ labels : Array < Parameter . Label > ;
105+
106+ /**
107+ * The cell address/reference containing the parameter
108+ */
109+ ref : string ;
110+
111+ /**
112+ * The type of value found in the parameter cell
113+ */
114+ type : 'blank' | 'date' | 'number' | 'string' | 'boolean' | 'error' ;
115+
116+ /**
117+ * The value in the parameter cell, type is determined by the type field
118+ */
119+ value ?: string | number | boolean | null ;
120+ }
121+
122+ export namespace Parameter {
123+ export interface Label {
124+ /**
125+ * The cell address/reference which the label applies to
126+ */
127+ at : string ;
128+
129+ /**
130+ * The label string
131+ */
132+ text : string ;
133+ }
134+ }
135+ }
136+
70137/**
71138 * The results of a spreadsheet data label search.
72139 */
@@ -166,6 +233,7 @@ export interface BetaSearchLabelsParams {
166233export declare namespace Beta {
167234 export {
168235 type BetaGetWorkbookLabelsResponse as BetaGetWorkbookLabelsResponse ,
236+ type BetaGetWorkbookParametersResponse as BetaGetWorkbookParametersResponse ,
169237 type BetaSearchLabelsResponse as BetaSearchLabelsResponse ,
170238 type BetaSearchLabelsParams as BetaSearchLabelsParams ,
171239 } ;
0 commit comments