@@ -146,7 +146,7 @@ export class AtelierAPI {
146
146
type ?: string ;
147
147
filter ?: string ;
148
148
} ) : Promise < any > {
149
- return this . request ( 'GET' , `v2 /${ this . ns } /docnames/${ category } /${ type } ` , null , {
149
+ return this . request ( 'GET' , `v3 /${ this . ns } /docnames/${ category } /${ type } ` , null , {
150
150
filter,
151
151
generated
152
152
} ) ;
@@ -159,47 +159,47 @@ export class AtelierAPI {
159
159
format
160
160
} ;
161
161
}
162
- return this . request ( 'GET' , `v2 /${ this . ns } /doc/${ name } ` , params ) ;
162
+ return this . request ( 'GET' , `v3 /${ this . ns } /doc/${ name } ` , params ) ;
163
163
}
164
164
165
165
putDoc ( name : string , data : { enc : boolean ; content : string [ ] } , ignoreConflict ?: boolean ) : Promise < any > {
166
166
let params = { ignoreConflict } ;
167
- return this . request ( 'PUT' , `v2 /${ this . ns } /doc/${ name } ` , data , params ) ;
167
+ return this . request ( 'PUT' , `v3 /${ this . ns } /doc/${ name } ` , data , params ) ;
168
168
}
169
169
170
170
actionIndex ( docs : string [ ] ) : Promise < any > {
171
- return this . request ( 'POST' , `v2 /${ this . ns } /action/index` , docs ) ;
171
+ return this . request ( 'POST' , `v3 /${ this . ns } /action/index` , docs ) ;
172
172
}
173
173
174
174
actionSearch ( params : { query : string ; files ?: string ; sys ?: boolean ; gen ?: boolean ; max ?: number } ) : Promise < any > {
175
- return this . request ( 'GET' , `v2 /${ this . ns } /action/search` , null , params ) ;
175
+ return this . request ( 'GET' , `v3 /${ this . ns } /action/search` , null , params ) ;
176
176
}
177
177
178
178
actionQuery ( query : string , parameters : string [ ] ) : Promise < any > {
179
- return this . request ( 'POST' , `v2 /${ this . ns } /action/query` , {
179
+ return this . request ( 'POST' , `v3 /${ this . ns } /action/query` , {
180
180
query,
181
181
parameters
182
182
} ) ;
183
183
}
184
184
185
185
actionCompile ( docs : string [ ] , flags ?: string , source = false ) : Promise < any > {
186
- return this . request ( 'POST' , `v2 /${ this . ns } /action/compile` , docs , { flags, source } ) ;
186
+ return this . request ( 'POST' , `v3 /${ this . ns } /action/compile` , docs , { flags, source } ) ;
187
187
}
188
188
189
189
cvtXmlUdl ( source : string ) : Promise < any > {
190
- return this . request ( 'POST' , `v2 /${ this . ns } /cvt/xml/doc` , source , { } , { 'Content-Type' : 'application/xml' } ) ;
190
+ return this . request ( 'POST' , `v3 /${ this . ns } /cvt/xml/doc` , source , { } , { 'Content-Type' : 'application/xml' } ) ;
191
191
}
192
192
193
193
getmacrodefinition ( docname : string , macroname : string , includes : string [ ] ) {
194
- return this . request ( 'POST' , `v2 /${ this . ns } /action/getmacrodefinition` , {
194
+ return this . request ( 'POST' , `v3 /${ this . ns } /action/getmacrodefinition` , {
195
195
docname,
196
196
macroname,
197
197
includes
198
198
} ) ;
199
199
}
200
200
201
201
getmacrolocation ( docname : string , macroname : string , includes : string [ ] ) {
202
- return this . request ( 'POST' , `v2 /${ this . ns } /action/getmacrolocation` , {
202
+ return this . request ( 'POST' , `v3 /${ this . ns } /action/getmacrolocation` , {
203
203
docname,
204
204
macroname,
205
205
includes
0 commit comments