@opens/gateways 1.16.15 → 1.16.17

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.mjs CHANGED
@@ -1313,6 +1313,22 @@ var CasesGateway = class {
1313
1313
  );
1314
1314
  return data;
1315
1315
  }
1316
+ /** Lists case statuses for the current company. */
1317
+ async listCaseStatuses(params) {
1318
+ const { data } = await this.httpClient.get(`${this.baseUrl}/case-statuses`, { params });
1319
+ return data;
1320
+ }
1321
+ /** Creates a case status linked to a fixed stage. */
1322
+ async createCaseStatus(payload) {
1323
+ const { data } = await this.httpClient.post(`${this.baseUrl}/case-statuses`, payload);
1324
+ return data;
1325
+ }
1326
+ /** Updates a case status (name, color and/or stage). */
1327
+ async updateCaseStatus(payload) {
1328
+ const { statusId, ...body } = payload;
1329
+ const { data } = await this.httpClient.patch(`${this.baseUrl}/case-statuses/${statusId}`, body);
1330
+ return data;
1331
+ }
1316
1332
  };
1317
1333
 
1318
1334
  // src/rh/index.ts