@opens/gateways 1.16.16 → 1.16.18

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
@@ -388,32 +388,6 @@ var CustomerServiceGateway = class {
388
388
  });
389
389
  return data;
390
390
  }
391
- /**
392
- * Submits one response to a survey announcement.
393
- * @param announcementId - The unique identifier of the survey announcement.
394
- * @param payload - The subject identifier and validated survey answers.
395
- * @returns The persisted survey response.
396
- */
397
- async submitSurveyResponse(announcementId, payload) {
398
- const { data } = await this.httpClient.post(
399
- `${this.baseUrl}/announcements/${announcementId}/responses`,
400
- payload
401
- );
402
- return data;
403
- }
404
- /**
405
- * Retrieves paginated responses for a survey announcement.
406
- * @param announcementId - The unique identifier of the survey announcement.
407
- * @param query - Pagination options for the administrative list.
408
- * @returns Paginated survey responses.
409
- */
410
- async findSurveyResponses(announcementId, query) {
411
- const { data } = await this.httpClient.get(
412
- `${this.baseUrl}/announcements/admin/${announcementId}/responses`,
413
- { params: query }
414
- );
415
- return data;
416
- }
417
391
  };
418
392
 
419
393
  // src/chat-config/index.ts
@@ -552,6 +526,17 @@ var ChatConfigGateway = class {
552
526
  });
553
527
  return data;
554
528
  }
529
+ /**
530
+ * Retrieves paginated rules with dynamic filters.
531
+ * @param params - Query parameters for filtering and pagination.
532
+ * @returns The paginated rules matching the given filters.
533
+ */
534
+ async getRules(params) {
535
+ const { data } = await this.httpClient.get(`${this.baseUrl}/rules/paginated`, {
536
+ params
537
+ });
538
+ return data;
539
+ }
555
540
  };
556
541
 
557
542
  // src/campaigns/index.ts
@@ -1377,6 +1362,22 @@ var CasesGateway = class {
1377
1362
  );
1378
1363
  return data;
1379
1364
  }
1365
+ /** Lists case statuses for the current company. */
1366
+ async listCaseStatuses(params) {
1367
+ const { data } = await this.httpClient.get(`${this.baseUrl}/case-statuses`, { params });
1368
+ return data;
1369
+ }
1370
+ /** Creates a case status linked to a fixed stage. */
1371
+ async createCaseStatus(payload) {
1372
+ const { data } = await this.httpClient.post(`${this.baseUrl}/case-statuses`, payload);
1373
+ return data;
1374
+ }
1375
+ /** Updates a case status (name, color and/or stage). */
1376
+ async updateCaseStatus(payload) {
1377
+ const { statusId, ...body } = payload;
1378
+ const { data } = await this.httpClient.patch(`${this.baseUrl}/case-statuses/${statusId}`, body);
1379
+ return data;
1380
+ }
1380
1381
  };
1381
1382
 
1382
1383
  // src/rh/index.ts