@code.store/arcxp-sdk-ts 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ArcAbstractAPI, ArcAPIOptions } from '../abstract-api';
|
|
2
|
+
import { AuthorANS } from '../migration-center/types';
|
|
2
3
|
export declare class ArcAuthor extends ArcAbstractAPI {
|
|
3
4
|
constructor(options: ArcAPIOptions);
|
|
5
|
+
listAuthors(): Promise<AuthorANS[]>;
|
|
4
6
|
delete(userId: string): Promise<void>;
|
|
5
7
|
}
|
package/dist/api/author/index.js
CHANGED
|
@@ -6,6 +6,10 @@ class ArcAuthor extends abstract_api_1.ArcAbstractAPI {
|
|
|
6
6
|
constructor(options) {
|
|
7
7
|
super({ ...options, apiPath: 'author' });
|
|
8
8
|
}
|
|
9
|
+
async listAuthors() {
|
|
10
|
+
const { data } = await this.client.get(`/v2/author-service`);
|
|
11
|
+
return data.authors;
|
|
12
|
+
}
|
|
9
13
|
async delete(userId) {
|
|
10
14
|
const { data } = await this.client.delete(`/v2/author-service/${userId}`);
|
|
11
15
|
return data;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/author/index.ts"],"names":[],"mappings":";;;AAAA,kDAAgE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/author/index.ts"],"names":[],"mappings":";;;AAAA,kDAAgE;AAGhE,MAAa,SAAU,SAAQ,6BAAc;IAC3C,YAAY,OAAsB;QAChC,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QAE7D,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAc;QACzB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,sBAAsB,MAAM,EAAE,CAAC,CAAC;QAE1E,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAhBD,8BAgBC"}
|