@doist/comms-sdk 2.0.0 → 2.0.1

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.
@@ -143,7 +143,7 @@ class ConversationsClient extends base_client_1.BaseClient {
143
143
  * @returns The updated conversation object.
144
144
  */
145
145
  archiveConversation(id) {
146
- return this.simple('GET', 'archive', { id }, this.conversationSchema);
146
+ return this.simple('POST', 'archive', { id }, this.conversationSchema);
147
147
  }
148
148
  /**
149
149
  * Unarchives a conversation.
@@ -152,7 +152,7 @@ class ConversationsClient extends base_client_1.BaseClient {
152
152
  * @returns The updated conversation object.
153
153
  */
154
154
  unarchiveConversation(id) {
155
- return this.simple('GET', 'unarchive', { id }, this.conversationSchema);
155
+ return this.simple('POST', 'unarchive', { id }, this.conversationSchema);
156
156
  }
157
157
  /**
158
158
  * Adds a user to a conversation.
@@ -140,7 +140,7 @@ export class ConversationsClient extends BaseClient {
140
140
  * @returns The updated conversation object.
141
141
  */
142
142
  archiveConversation(id) {
143
- return this.simple('GET', 'archive', { id }, this.conversationSchema);
143
+ return this.simple('POST', 'archive', { id }, this.conversationSchema);
144
144
  }
145
145
  /**
146
146
  * Unarchives a conversation.
@@ -149,7 +149,7 @@ export class ConversationsClient extends BaseClient {
149
149
  * @returns The updated conversation object.
150
150
  */
151
151
  unarchiveConversation(id) {
152
- return this.simple('GET', 'unarchive', { id }, this.conversationSchema);
152
+ return this.simple('POST', 'unarchive', { id }, this.conversationSchema);
153
153
  }
154
154
  /**
155
155
  * Adds a user to a conversation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/comms-sdk",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "A TypeScript wrapper for the Comms REST API.",
5
5
  "author": "Doist developers",
6
6
  "homepage": "https://doist.github.io/comms-sdk-typescript/",