@parra/parra-js-sdk 0.2.151 → 0.2.152

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.
@@ -1394,6 +1394,8 @@ declare class ParraAPI {
1394
1394
  updateNotificationTemplateById: (tenant_id: string, notification_template_id: string, body?: UpdateNotificationTemplateRequestBody | undefined) => Promise<NotificationTemplate>;
1395
1395
  deleteNotificationTemplateById: (tenant_id: string, notification_template_id: string) => Promise<Response>;
1396
1396
  createChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, body?: CreateChannelRequestBody | undefined) => Promise<Channel>;
1397
+ updateChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string, body?: UpdateChannelRequestBody | undefined) => Promise<Channel>;
1398
+ deleteChannelForNotificationTemplate: (tenant_id: string, notification_template_id: string, channel_id: string) => Promise<Response>;
1397
1399
  createUser: (body: CreateUserRequestBody) => Promise<UserResponse>;
1398
1400
  listUsers: (query?: {
1399
1401
  $select?: string | undefined;
package/dist/ParraAPI.js CHANGED
@@ -639,6 +639,20 @@ var ParraAPI = /** @class */ (function () {
639
639
  },
640
640
  });
641
641
  };
642
+ this.updateChannelForNotificationTemplate = function (tenant_id, notification_template_id, channel_id, body) {
643
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notification-templates/").concat(notification_template_id, "/channels/").concat(channel_id), {
644
+ method: "put",
645
+ body: JSON.stringify(body),
646
+ headers: {
647
+ "content-type": "application/json",
648
+ },
649
+ });
650
+ };
651
+ this.deleteChannelForNotificationTemplate = function (tenant_id, notification_template_id, channel_id) {
652
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notification-templates/").concat(notification_template_id, "/channels/").concat(channel_id), {
653
+ method: "delete",
654
+ });
655
+ };
642
656
  this.createUser = function (body) {
643
657
  return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users"), {
644
658
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.2.151",
3
+ "version": "0.2.152",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",