@parra/parra-js-sdk 0.2.150 → 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.
@@ -994,6 +994,15 @@ export declare enum ApnsPushType {
994
994
  voip = "voip",
995
995
  mdm = "mdm"
996
996
  }
997
+ export interface UpdateApnsChannelRequestBody {
998
+ application_id: string;
999
+ environment: ApnsEnvironment;
1000
+ push_type: ApnsPushType;
1001
+ expiration?: string | null;
1002
+ collapse_id?: string | null;
1003
+ priority?: number | null;
1004
+ payload: object;
1005
+ }
997
1006
  export interface CreateApnsChannelRequestBody {
998
1007
  application_id: string;
999
1008
  environment: ApnsEnvironment;
@@ -1385,6 +1394,8 @@ declare class ParraAPI {
1385
1394
  updateNotificationTemplateById: (tenant_id: string, notification_template_id: string, body?: UpdateNotificationTemplateRequestBody | undefined) => Promise<NotificationTemplate>;
1386
1395
  deleteNotificationTemplateById: (tenant_id: string, notification_template_id: string) => Promise<Response>;
1387
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>;
1388
1399
  createUser: (body: CreateUserRequestBody) => Promise<UserResponse>;
1389
1400
  listUsers: (query?: {
1390
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.150",
3
+ "version": "0.2.152",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",