@opens/gateways 1.16.16 → 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
@@ -350,32 +350,6 @@ var CustomerServiceGateway = class {
350
350
  });
351
351
  return data;
352
352
  }
353
- /**
354
- * Submits one response to a survey announcement.
355
- * @param announcementId - The unique identifier of the survey announcement.
356
- * @param payload - The subject identifier and validated survey answers.
357
- * @returns The persisted survey response.
358
- */
359
- async submitSurveyResponse(announcementId, payload) {
360
- const { data } = await this.httpClient.post(
361
- `${this.baseUrl}/announcements/${announcementId}/responses`,
362
- payload
363
- );
364
- return data;
365
- }
366
- /**
367
- * Retrieves paginated responses for a survey announcement.
368
- * @param announcementId - The unique identifier of the survey announcement.
369
- * @param query - Pagination options for the administrative list.
370
- * @returns Paginated survey responses.
371
- */
372
- async findSurveyResponses(announcementId, query) {
373
- const { data } = await this.httpClient.get(
374
- `${this.baseUrl}/announcements/admin/${announcementId}/responses`,
375
- { params: query }
376
- );
377
- return data;
378
- }
379
353
  };
380
354
 
381
355
  // src/chat-config/index.ts
@@ -1339,6 +1313,22 @@ var CasesGateway = class {
1339
1313
  );
1340
1314
  return data;
1341
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
+ }
1342
1332
  };
1343
1333
 
1344
1334
  // src/rh/index.ts