@code.store/arcxp-sdk-ts 5.4.0 → 5.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.
package/dist/index.js CHANGED
@@ -104,12 +104,27 @@ class ArcAuthor extends ArcAbstractAPI {
104
104
  constructor(options) {
105
105
  super({ ...options, apiPath: 'author' });
106
106
  }
107
+ async getAuthor(params) {
108
+ const { data } = await this.client.get('/v1/author-service', { params });
109
+ return data;
110
+ }
107
111
  async listAuthors(params) {
108
112
  const { data } = await this.client.get('/v2/author-service', { params });
109
113
  return data;
110
114
  }
111
- async delete(userId) {
112
- const { data } = await this.client.delete(`/v2/author-service/${userId}`);
115
+ async createAuthor(payload) {
116
+ const { data } = await this.client.post('/v2/author-service', payload);
117
+ return data;
118
+ }
119
+ async updateAuthor(id, payload) {
120
+ const { data } = await this.client.post(`/v2/author-service/${id}`, payload);
121
+ return data;
122
+ }
123
+ async deleteAuthor(id) {
124
+ await this.client.delete(`/v2/author-service/${id}`);
125
+ }
126
+ async getConfiguration() {
127
+ const { data } = await this.client.get('/v1/configuration');
113
128
  return data;
114
129
  }
115
130
  }