Skip to content

Commit 5c88bbf

Browse files
author
Kenneth Shepherd
committed
return version number namespace to v3 so we can PR this.
1 parent b40ef78 commit 5c88bbf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

api/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class AtelierAPI {
146146
type?: string;
147147
filter?: string;
148148
}): 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, {
150150
filter,
151151
generated
152152
});
@@ -159,47 +159,47 @@ export class AtelierAPI {
159159
format
160160
};
161161
}
162-
return this.request('GET', `v2/${this.ns}/doc/${name}`, params);
162+
return this.request('GET', `v3/${this.ns}/doc/${name}`, params);
163163
}
164164

165165
putDoc(name: string, data: { enc: boolean; content: string[] }, ignoreConflict?: boolean): Promise<any> {
166166
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);
168168
}
169169

170170
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);
172172
}
173173

174174
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);
176176
}
177177

178178
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`, {
180180
query,
181181
parameters
182182
});
183183
}
184184

185185
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 });
187187
}
188188

189189
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' });
191191
}
192192

193193
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`, {
195195
docname,
196196
macroname,
197197
includes
198198
});
199199
}
200200

201201
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`, {
203203
docname,
204204
macroname,
205205
includes

0 commit comments

Comments
 (0)